libdvr: support encrypted PVR for FTA. [1/1]
PD#SWPL-63361
Problem:
Need to support pvr encrypt.
Solution:
Support pvr encrypt.
Verify:
Build.
Signed-off-by: Yahui Han <yahui.han@amlogic.com>
Change-Id: Ia8b07f10fa56b3423ac47ed4b7c5663736f64e09
diff --git a/include/am_crypt.h b/include/am_crypt.h
new file mode 100644
index 0000000..db67008
--- /dev/null
+++ b/include/am_crypt.h
@@ -0,0 +1,32 @@
+/***************************************************************************
+ * Copyright (c) 2019 Amlogic, Inc. All rights reserved.
+ *
+ * This source code is subject to the terms and conditions defined in the
+ * file 'LICENSE' which is part of this source code package.
+ ***************************************************************************/
+
+#ifndef _AM_CRYPT_H
+#define _AM_CRYPT_H
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/****************************************************************************
+ * Function prototypes
+ ***************************************************************************/
+
+void *am_crypt_des_open(const uint8_t *key, const uint8_t *iv, int key_bits);
+
+int am_crypt_des_close(void *cryptor);
+
+int am_crypt_des_crypt(void* cryptor, uint8_t* dst,
+ const uint8_t *src, uint32_t *len, int decrypt);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+