Lines Matching refs:inbuf
77 u_char *inbuf = NULL, *outbuf = NULL; in rsa_public_encrypt() local
90 if ((inbuf = malloc(ilen)) == NULL) { in rsa_public_encrypt()
94 BN_bn2bin(in, inbuf); in rsa_public_encrypt()
96 if ((len = RSA_public_encrypt(ilen, inbuf, outbuf, key, in rsa_public_encrypt()
113 if (inbuf != NULL) { in rsa_public_encrypt()
114 explicit_bzero(inbuf, ilen); in rsa_public_encrypt()
115 free(inbuf); in rsa_public_encrypt()
123 u_char *inbuf = NULL, *outbuf = NULL; in rsa_private_decrypt() local
133 if ((inbuf = malloc(ilen)) == NULL) { in rsa_private_decrypt()
137 BN_bn2bin(in, inbuf); in rsa_private_decrypt()
139 if ((len = RSA_private_decrypt(ilen, inbuf, outbuf, key, in rsa_private_decrypt()
153 if (inbuf != NULL) { in rsa_private_decrypt()
154 explicit_bzero(inbuf, ilen); in rsa_private_decrypt()
155 free(inbuf); in rsa_private_decrypt()