Lines Matching refs:tbuf
155 unsigned char *tbuf; member
612 if (ctx->tbuf != NULL) in setup_tbuf()
614 if ((ctx->tbuf = OPENSSL_malloc(RSA_size(ctx->rsa))) == NULL) in setup_tbuf()
621 if (ctx->tbuf != NULL) in clean_tbuf()
622 OPENSSL_cleanse(ctx->tbuf, RSA_size(ctx->rsa)); in clean_tbuf()
628 OPENSSL_free(ctx->tbuf); in free_tbuf()
629 ctx->tbuf = NULL; in free_tbuf()
736 memcpy(prsactx->tbuf, tbs, tbslen); in rsa_sign_directly()
737 prsactx->tbuf[tbslen] = RSA_X931_hash_id(prsactx->mdnid); in rsa_sign_directly()
738 ret = RSA_private_encrypt(tbslen + 1, prsactx->tbuf, in rsa_sign_directly()
792 prsactx->tbuf, tbs, in rsa_sign_directly()
802 ret = RSA_private_encrypt(RSA_size(prsactx->rsa), prsactx->tbuf, in rsa_sign_directly()
953 ret = RSA_public_decrypt(siglen, sig, prsactx->tbuf, prsactx->rsa, in rsa_verify_recover()
960 if (prsactx->tbuf[ret] != RSA_X931_hash_id(prsactx->mdnid)) { in rsa_verify_recover()
972 if (rout != prsactx->tbuf) { in rsa_verify_recover()
979 memcpy(rout, prsactx->tbuf, ret); in rsa_verify_recover()
1048 if (rsa_verify_recover(prsactx, prsactx->tbuf, &rslen, 0, in rsa_verify_directly()
1072 ret = RSA_public_decrypt(siglen, sig, prsactx->tbuf, in rsa_verify_directly()
1081 prsactx->tbuf, in rsa_verify_directly()
1103 ret = RSA_public_decrypt(siglen, sig, prsactx->tbuf, prsactx->rsa, in rsa_verify_directly()
1112 if ((rslen != tbslen) || memcmp(tbs, prsactx->tbuf, rslen)) in rsa_verify_directly()
1351 dstctx->tbuf = NULL; in rsa_dupctx()