Lines Matching refs:LibCryptoHandle
32 static void *LibCryptoHandle = NULL; variable
128 LibCryptoHandle = dlopen(lib_name, RTLD_NOW); in BLECrypt_if_enable_real_encryption()
129 if (!LibCryptoHandle) { //Not found in BLECrypt_if_enable_real_encryption()
131 LibCryptoHandle = dlopen(lib_name, RTLD_NOW); in BLECrypt_if_enable_real_encryption()
132 if (!LibCryptoHandle) { in BLECrypt_if_enable_real_encryption()
145 *(void **) (&blecrypt_packet_encrypt) = dlsym(LibCryptoHandle, "blecrypt_packet_encrypt"); in BLECrypt_if_enable_real_encryption()
149 *(void **) (&blecrypt_packet_decrypt) = dlsym(LibCryptoHandle, "blecrypt_packet_decrypt"); in BLECrypt_if_enable_real_encryption()
153 *(void **) (&blecrypt_aes_128) = dlsym(LibCryptoHandle, "blecrypt_aes_128"); in BLECrypt_if_enable_real_encryption()
157 *(void **) (&blecrypt_aes_ecb) = dlsym(LibCryptoHandle, "blecrypt_aes_ecb"); in BLECrypt_if_enable_real_encryption()
161 *(void **) (&blecrypt_packet_encrypt_v3) = dlsym(LibCryptoHandle, "blecrypt_packet_encrypt_v3"); in BLECrypt_if_enable_real_encryption()
168 *(void **) (&blecrypt_packet_decrypt_v3) = dlsym(LibCryptoHandle, "blecrypt_packet_decrypt_v3"); in BLECrypt_if_enable_real_encryption()
181 if ( LibCryptoHandle != NULL ){ in BLECrypt_if_free()
184 dlclose(LibCryptoHandle); in BLECrypt_if_free()
185 LibCryptoHandle = NULL; in BLECrypt_if_free()