summaryrefslogtreecommitdiff
path: root/srcs/crypto_service.c
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/crypto_service.c')
-rw-r--r--srcs/crypto_service.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/srcs/crypto_service.c b/srcs/crypto_service.c
index dcc172e..a5a91f9 100644
--- a/srcs/crypto_service.c
+++ b/srcs/crypto_service.c
@@ -41,17 +41,6 @@
crypto_element_s *dek_kek = NULL;
-static bool __initialized = false;
-
-void _initialize()
-{
- if (!__initialized) {
- ERR_load_crypto_strings();
- OpenSSL_add_all_algorithms();
- __initialized = true;
- }
-}
-
int _generate_dek_kek()
{
int ret = WAE_ERROR_NONE;
@@ -131,8 +120,6 @@ int encrypt_aes_cbc(const crypto_element_s *ce, const raw_buffer_s *data,
raw_buffer_s *encrypted_data = NULL;
int ret = WAE_ERROR_NONE;
- _initialize();
-
WAE_SLOGI("Encryption Started. size=%zu", data->size);
/* check input paramter */
@@ -215,8 +202,6 @@ int decrypt_aes_cbc(const crypto_element_s *ce, const raw_buffer_s *encrypted_da
raw_buffer_s *data = NULL;
int ret = WAE_ERROR_NONE;
- _initialize();
-
WAE_SLOGI("Decryption Started. size=%zu", encrypted_data->size);
/* check input paramter */