Lines Matching refs:outbuf
77 u_char *inbuf = NULL, *outbuf = NULL; in rsa_public_encrypt() local
84 if ((outbuf = malloc(olen)) == NULL) { in rsa_public_encrypt()
96 if ((len = RSA_public_encrypt(ilen, inbuf, outbuf, key, in rsa_public_encrypt()
102 if (BN_bin2bn(outbuf, len, out) == NULL) { in rsa_public_encrypt()
109 if (outbuf != NULL) { in rsa_public_encrypt()
110 explicit_bzero(outbuf, olen); in rsa_public_encrypt()
111 free(outbuf); in rsa_public_encrypt()
123 u_char *inbuf = NULL, *outbuf = NULL; in rsa_private_decrypt() local
127 if ((outbuf = malloc(olen)) == NULL) { in rsa_private_decrypt()
139 if ((len = RSA_private_decrypt(ilen, inbuf, outbuf, key, in rsa_private_decrypt()
143 } else if (BN_bin2bn(outbuf, len, out) == NULL) { in rsa_private_decrypt()
149 if (outbuf != NULL) { in rsa_private_decrypt()
150 explicit_bzero(outbuf, olen); in rsa_private_decrypt()
151 free(outbuf); in rsa_private_decrypt()