Lines Matching refs:tbuf
51 unsigned char *tbuf; member
116 if (ctx->tbuf != NULL) in setup_tbuf()
118 if ((ctx->tbuf = in setup_tbuf()
129 OPENSSL_free(rctx->tbuf); in pkey_rsa_cleanup()
179 memcpy(rctx->tbuf, tbs, tbslen); in pkey_rsa_sign()
180 rctx->tbuf[tbslen] = RSA_X931_hash_id(EVP_MD_get_type(rctx->md)); in pkey_rsa_sign()
181 ret = RSA_private_encrypt(tbslen + 1, rctx->tbuf, in pkey_rsa_sign()
194 rctx->tbuf, tbs, in pkey_rsa_sign()
198 ret = RSA_private_encrypt(RSA_size(rsa), rctx->tbuf, in pkey_rsa_sign()
229 ret = RSA_public_decrypt(siglen, sig, rctx->tbuf, rsa, in pkey_rsa_verifyrecover()
234 if (rctx->tbuf[ret] != RSA_X931_hash_id(EVP_MD_get_type(rctx->md))) { in pkey_rsa_verifyrecover()
243 memcpy(rout, rctx->tbuf, ret); in pkey_rsa_verifyrecover()
298 ret = RSA_public_decrypt(siglen, sig, rctx->tbuf, in pkey_rsa_verify()
304 rctx->tbuf, rctx->saltlen); in pkey_rsa_verify()
314 rslen = RSA_public_decrypt(siglen, sig, rctx->tbuf, in pkey_rsa_verify()
320 if ((rslen != tbslen) || memcmp(tbs, rctx->tbuf, rslen)) in pkey_rsa_verify()
344 if (!RSA_padding_add_PKCS1_OAEP_mgf1(rctx->tbuf, klen, in pkey_rsa_encrypt()
350 ret = RSA_public_encrypt(klen, rctx->tbuf, out, rsa, RSA_NO_PADDING); in pkey_rsa_encrypt()
377 ret = RSA_private_decrypt(inlen, in, rctx->tbuf, rsa, RSA_NO_PADDING); in pkey_rsa_decrypt()
380 ret = RSA_padding_check_PKCS1_OAEP_mgf1(out, ret, rctx->tbuf, in pkey_rsa_decrypt()