Lines Matching refs:rsa
71 unsigned char *sigret, unsigned int *siglen, RSA *rsa) in RSA_sign() argument
81 if (FIPS_mode() && !(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) in RSA_sign()
82 && !(rsa->flags & RSA_FLAG_NON_FIPS_ALLOW)) in RSA_sign()
88 if((rsa->flags & RSA_FLAG_SIGN_VER) && rsa->meth->rsa_sign) in RSA_sign()
90 return rsa->meth->rsa_sign(type, m, m_len, in RSA_sign()
91 sigret, siglen, rsa); in RSA_sign()
124 j=RSA_size(rsa); in RSA_sign()
141 i=RSA_private_encrypt(i,s,sigret,rsa,RSA_PKCS1_PADDING); in RSA_sign()
158 RSA *rsa) in int_rsa_verify() argument
165 if (FIPS_mode() && !(rsa->meth->flags & RSA_FLAG_FIPS_METHOD) in int_rsa_verify()
166 && !(rsa->flags & RSA_FLAG_NON_FIPS_ALLOW)) in int_rsa_verify()
173 if (siglen != (unsigned int)RSA_size(rsa)) in int_rsa_verify()
182 sigbuf,rm,rsa,RSA_PKCS1_PADDING); in int_rsa_verify()
199 i=RSA_public_decrypt((int)siglen,sigbuf,s,rsa,RSA_PKCS1_PADDING); in int_rsa_verify()
308 RSA *rsa) in RSA_verify() argument
311 if((rsa->flags & RSA_FLAG_SIGN_VER) && rsa->meth->rsa_verify) in RSA_verify()
313 return rsa->meth->rsa_verify(dtype, m, m_len, in RSA_verify()
314 sigbuf, siglen, rsa); in RSA_verify()
317 return int_rsa_verify(dtype, m, m_len, NULL, NULL, sigbuf, siglen, rsa); in RSA_verify()