summaryrefslogtreecommitdiff
path: root/srcs/decrypt_migrated_wgt.h
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/decrypt_migrated_wgt.h')
-rw-r--r--srcs/decrypt_migrated_wgt.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/srcs/decrypt_migrated_wgt.h b/srcs/decrypt_migrated_wgt.h
index 95f481e..42f99ad 100644
--- a/srcs/decrypt_migrated_wgt.h
+++ b/srcs/decrypt_migrated_wgt.h
@@ -22,10 +22,18 @@
#ifndef __WAE_SS_KEY_GENERATOR_H
#define __WAE_SS_KEY_GENERATOR_H
-#include <stddef.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
-int decrypt_by_old_ss_algo(const char *pkg_id,
- const unsigned char *encrypted, size_t encrypted_len,
- unsigned char **pdecrypted, size_t *pdecrypted_len);
+#include "types.h"
+
+int get_old_ss_crypto_element(const char *pkg_id, crypto_element_s **pce);
+int decrypt_by_old_ss_algo(const crypto_element_s *ce, const raw_buffer_s *encrypted,
+ raw_buffer_s **pdecrypted);
+
+#ifdef __cplusplus
+}
+#endif
#endif /* __WAE_SS_KEY_GENERATOR_H */