Lines Matching refs:rsa
288 unsigned char *sigret, unsigned int *siglen, RSA *rsa) in RSA_sign() argument
296 if (rsa->meth->rsa_sign != NULL) in RSA_sign()
297 return rsa->meth->rsa_sign(type, m, m_len, sigret, siglen, rsa) > 0; in RSA_sign()
319 if (encoded_len + RSA_PKCS1_PADDING_SIZE > (size_t)RSA_size(rsa)) { in RSA_sign()
323 encrypt_len = RSA_private_encrypt((int)encoded_len, encoded, sigret, rsa, in RSA_sign()
347 const unsigned char *sigbuf, size_t siglen, RSA *rsa) in ossl_rsa_verify() argument
353 if (siglen != (size_t)RSA_size(rsa)) { in ossl_rsa_verify()
363 len = RSA_public_decrypt((int)siglen, sigbuf, decrypt_buf, rsa, in ossl_rsa_verify()
462 const unsigned char *sigbuf, unsigned int siglen, RSA *rsa) in RSA_verify() argument
465 if (rsa->meth->rsa_verify != NULL) in RSA_verify()
466 return rsa->meth->rsa_verify(type, m, m_len, sigbuf, siglen, rsa); in RSA_verify()
468 return ossl_rsa_verify(type, m, m_len, NULL, NULL, sigbuf, siglen, rsa); in RSA_verify()