Lines Matching refs:entropy
190 mbedtls_entropy_context *entropy = os_zalloc(sizeof(*entropy)); in crypto_public_key_encrypt_pkcs1_v15() local
193 if (!pkey || !entropy || !ctr_drbg) { in crypto_public_key_encrypt_pkcs1_v15()
194 if (entropy) in crypto_public_key_encrypt_pkcs1_v15()
195 os_free(entropy); in crypto_public_key_encrypt_pkcs1_v15()
202 mbedtls_entropy_init( entropy ); in crypto_public_key_encrypt_pkcs1_v15()
206 entropy, (const unsigned char *) pers, in crypto_public_key_encrypt_pkcs1_v15()
225 mbedtls_entropy_free( entropy ); in crypto_public_key_encrypt_pkcs1_v15()
226 os_free(entropy); in crypto_public_key_encrypt_pkcs1_v15()
241 mbedtls_entropy_context *entropy = os_malloc(sizeof(*entropy)); in crypto_private_key_decrypt_pkcs1_v15() local
244 if (!pkey || !entropy || !ctr_drbg) { in crypto_private_key_decrypt_pkcs1_v15()
245 if (entropy) in crypto_private_key_decrypt_pkcs1_v15()
246 os_free(entropy); in crypto_private_key_decrypt_pkcs1_v15()
252 mbedtls_entropy_init( entropy ); in crypto_private_key_decrypt_pkcs1_v15()
254 entropy, (const unsigned char *) pers, in crypto_private_key_decrypt_pkcs1_v15()
268 mbedtls_entropy_free( entropy ); in crypto_private_key_decrypt_pkcs1_v15()
269 os_free(entropy); in crypto_private_key_decrypt_pkcs1_v15()
324 mbedtls_entropy_context entropy; in crypto_public_key_decrypt_pkcs1() local
327 mbedtls_entropy_init( &entropy ); in crypto_public_key_decrypt_pkcs1()
331 &entropy, (const unsigned char *) pers, in crypto_public_key_decrypt_pkcs1()
351 mbedtls_entropy_free( &entropy ); in crypto_public_key_decrypt_pkcs1()