Home
last modified time | relevance | path

Searched refs:rsa_buffer (Results 1 – 1 of 1) sorted by relevance

/external/iperf3/src/
Diperf_auth.c229 unsigned char *rsa_buffer = NULL, pad = RSA_PKCS1_PADDING; in encrypt_rsa_message() local
235 rsa_buffer = OPENSSL_malloc(keysize * 2); in encrypt_rsa_message()
239 rsa_buffer_len = BIO_read(bioBuff, rsa_buffer, keysize * 2); in encrypt_rsa_message()
240 encryptedtext_len = RSA_public_encrypt(rsa_buffer_len, rsa_buffer, *encryptedtext, rsa, pad); in encrypt_rsa_message()
243 OPENSSL_free(rsa_buffer); in encrypt_rsa_message()
256 unsigned char *rsa_buffer = NULL, pad = RSA_PKCS1_PADDING; in decrypt_rsa_message() local
262 rsa_buffer = OPENSSL_malloc(keysize * 2); in decrypt_rsa_message()
266 rsa_buffer_len = BIO_read(bioBuff, rsa_buffer, keysize * 2); in decrypt_rsa_message()
267 plaintext_len = RSA_private_decrypt(rsa_buffer_len, rsa_buffer, *plaintext, rsa, pad); in decrypt_rsa_message()
270 OPENSSL_free(rsa_buffer); in decrypt_rsa_message()