Lines Matching refs:tbslen
137 size_t tbslen) in pkey_rsa_sign() argument
156 if (tbslen != (size_t)md_size) { in pkey_rsa_sign()
165 ret = RSA_sign_ASN1_OCTET_STRING(0, tbs, tbslen, sig, &sltmp, rsa); in pkey_rsa_sign()
171 if ((size_t)RSA_size(rsa) < tbslen + 1) { in pkey_rsa_sign()
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()
186 tbs, tbslen, sig, &sltmp, rsa); in pkey_rsa_sign()
204 ret = RSA_private_encrypt(tbslen, tbs, sig, rsa, rctx->pad_mode); in pkey_rsa_sign()
266 const unsigned char *tbs, size_t tbslen) in pkey_rsa_verify() argument
280 return RSA_verify(EVP_MD_get_type(rctx->md), tbs, tbslen, in pkey_rsa_verify()
287 if (tbslen != (size_t)md_size) { in pkey_rsa_verify()
320 if ((rslen != tbslen) || memcmp(tbs, rctx->tbuf, rslen)) in pkey_rsa_verify()