Lines Matching refs:tbuf
184 unsigned char *tbuf; in rsa_encrypt() local
186 if ((tbuf = OPENSSL_malloc(rsasize)) == NULL) in rsa_encrypt()
191 OPENSSL_free(tbuf); in rsa_encrypt()
197 ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(prsactx->libctx, tbuf, in rsa_encrypt()
205 OPENSSL_free(tbuf); in rsa_encrypt()
208 ret = RSA_public_encrypt(rsasize, tbuf, out, prsactx->rsa, in rsa_encrypt()
210 OPENSSL_free(tbuf); in rsa_encrypt()
260 unsigned char *tbuf; in rsa_decrypt() local
262 if ((tbuf = OPENSSL_malloc(len)) == NULL) in rsa_decrypt()
264 ret = RSA_private_decrypt(inlen, in, tbuf, prsactx->rsa, in rsa_decrypt()
271 OPENSSL_free(tbuf); in rsa_decrypt()
279 OPENSSL_free(tbuf); in rsa_decrypt()
284 ret = RSA_padding_check_PKCS1_OAEP_mgf1(out, outsize, tbuf, in rsa_decrypt()
294 OPENSSL_free(tbuf); in rsa_decrypt()
298 prsactx->libctx, out, outsize, tbuf, len, in rsa_decrypt()
301 OPENSSL_free(tbuf); in rsa_decrypt()