Lines Matching refs:rsa
31 int RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash, in RSA_verify_PKCS1_PSS() argument
35 return RSA_verify_PKCS1_PSS_mgf1(rsa, mHash, Hash, NULL, EM, sLen); in RSA_verify_PKCS1_PSS()
38 int RSA_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash, in RSA_verify_PKCS1_PSS_mgf1() argument
42 return ossl_rsa_verify_PKCS1_PSS_mgf1(rsa, mHash, Hash, mgf1Hash, EM, &sLen); in RSA_verify_PKCS1_PSS_mgf1()
45 int ossl_rsa_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash, in ossl_rsa_verify_PKCS1_PSS_mgf1() argument
82 MSBits = (BN_num_bits(rsa->n) - 1) & 0x7; in ossl_rsa_verify_PKCS1_PSS_mgf1()
83 emLen = RSA_size(rsa); in ossl_rsa_verify_PKCS1_PSS_mgf1()
158 int RSA_padding_add_PKCS1_PSS(RSA *rsa, unsigned char *EM, in RSA_padding_add_PKCS1_PSS() argument
162 return RSA_padding_add_PKCS1_PSS_mgf1(rsa, EM, mHash, Hash, NULL, sLen); in RSA_padding_add_PKCS1_PSS()
165 int RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM, in RSA_padding_add_PKCS1_PSS_mgf1() argument
170 return ossl_rsa_padding_add_PKCS1_PSS_mgf1(rsa, EM, mHash, Hash, mgf1Hash, &sLen); in RSA_padding_add_PKCS1_PSS_mgf1()
173 int ossl_rsa_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM, in ossl_rsa_padding_add_PKCS1_PSS_mgf1() argument
220 MSBits = (BN_num_bits(rsa->n) - 1) & 0x7; in ossl_rsa_padding_add_PKCS1_PSS_mgf1()
221 emLen = RSA_size(rsa); in ossl_rsa_padding_add_PKCS1_PSS_mgf1()
242 if (RAND_bytes_ex(rsa->libctx, salt, sLen, 0) <= 0) in ossl_rsa_padding_add_PKCS1_PSS_mgf1()