Lines Matching refs:tbslen
186 const unsigned char *tbs, size_t tbslen) in pkey_rsa_sign() argument
203 if (tbslen != (size_t)EVP_MD_size(rctx->md)) in pkey_rsa_sign()
213 ret = FIPS_rsa_sign_digest(rsa, tbs, tbslen, rctx->md, in pkey_rsa_sign()
232 tbs, tbslen, sig, &sltmp, rsa); in pkey_rsa_sign()
242 memcpy(rctx->tbuf, tbs, tbslen); in pkey_rsa_sign()
243 rctx->tbuf[tbslen] = in pkey_rsa_sign()
245 ret = RSA_private_encrypt(tbslen + 1, rctx->tbuf, in pkey_rsa_sign()
252 tbs, tbslen, sig, &sltmp, rsa); in pkey_rsa_sign()
273 ret = RSA_private_encrypt(tbslen, tbs, sig, ctx->pkey->pkey.rsa, in pkey_rsa_sign()
341 const unsigned char *tbs, size_t tbslen) in pkey_rsa_verify() argument
361 tbs, tbslen, in pkey_rsa_verify()
371 return RSA_verify(EVP_MD_type(rctx->md), tbs, tbslen, in pkey_rsa_verify()
408 if ((rslen != tbslen) || memcmp(tbs, rctx->tbuf, rslen)) in pkey_rsa_verify()