Lines Matching refs:tbuf
89 uint8_t *tbuf; member
155 OPENSSL_free(rctx->tbuf); in pkey_rsa_cleanup()
161 if (ctx->tbuf) { in setup_tbuf()
164 ctx->tbuf = OPENSSL_malloc(EVP_PKEY_size(pk->pkey)); in setup_tbuf()
165 if (!ctx->tbuf) { in setup_tbuf()
232 !RSA_verify_raw(rsa, &rslen, rctx->tbuf, key_len, sig, siglen, in pkey_rsa_verify()
235 CRYPTO_memcmp(tbs, rctx->tbuf, rslen) != 0) { in pkey_rsa_verify()
283 if (!RSA_verify_raw(rsa, &rslen, rctx->tbuf, key_len, sig, sig_len, in pkey_rsa_verify_recover()
287 CRYPTO_memcmp(rctx->tbuf, asn1_prefix, asn1_prefix_len - hash_len) != 0) { in pkey_rsa_verify_recover()
300 OPENSSL_memcpy(out, rctx->tbuf + rslen - hash_len, hash_len); in pkey_rsa_verify_recover()
325 !RSA_padding_add_PKCS1_OAEP_mgf1(rctx->tbuf, key_len, in, inlen, in pkey_rsa_encrypt()
328 !RSA_encrypt(rsa, outlen, out, *outlen, rctx->tbuf, key_len, in pkey_rsa_encrypt()
358 !RSA_decrypt(rsa, &padded_len, rctx->tbuf, key_len, in, inlen, in pkey_rsa_decrypt()
361 out, outlen, key_len, rctx->tbuf, padded_len, rctx->oaep_label, in pkey_rsa_decrypt()