Home
last modified time | relevance | path

Searched refs:prsactx (Results 1 – 3 of 3) sorted by relevance

/src/crypto/openssl/providers/implementations/signature/
H A Drsa_sig.c161 #define rsa_pss_restricted(prsactx) (prsactx->min_saltlen != -1) argument
163 static size_t rsa_get_md_size(const PROV_RSA_CTX *prsactx) in rsa_get_md_size() argument
167 if (prsactx->md != NULL) { in rsa_get_md_size()
168 md_size = EVP_MD_get_size(prsactx->md); in rsa_get_md_size()
176 static int rsa_check_padding(const PROV_RSA_CTX *prsactx, in rsa_check_padding() argument
180 switch (prsactx->pad_mode) { in rsa_check_padding()
194 if (rsa_pss_restricted(prsactx)) in rsa_check_padding()
195 if ((mdname != NULL && !EVP_MD_is_a(prsactx->md, mdname)) in rsa_check_padding()
197 && !EVP_MD_is_a(prsactx->mgf1_md, mgf1_mdname))) { in rsa_check_padding()
209 static int rsa_check_parameters(PROV_RSA_CTX *prsactx, int min_saltlen) in rsa_check_parameters() argument
[all …]
/src/crypto/openssl/providers/implementations/asymciphers/
H A Drsa_enc.c83 PROV_RSA_CTX *prsactx; in rsa_newctx() local
87 prsactx = OPENSSL_zalloc(sizeof(PROV_RSA_CTX)); in rsa_newctx()
88 if (prsactx == NULL) in rsa_newctx()
90 prsactx->libctx = PROV_LIBCTX_OF(provctx); in rsa_newctx()
91 OSSL_FIPS_IND_INIT(prsactx) in rsa_newctx()
93 return prsactx; in rsa_newctx()
99 PROV_RSA_CTX *prsactx = (PROV_RSA_CTX *)vprsactx; in rsa_init() local
102 if (!ossl_prov_is_running() || prsactx == NULL || vrsa == NULL) in rsa_init()
109 RSA_free(prsactx->rsa); in rsa_init()
110 prsactx->rsa = vrsa; in rsa_init()
[all …]
/src/crypto/openssl/providers/implementations/kem/
H A Drsa_kem.c86 PROV_RSA_CTX *prsactx; in rsakem_newctx() local
91 prsactx = OPENSSL_zalloc(sizeof(PROV_RSA_CTX)); in rsakem_newctx()
92 if (prsactx == NULL) in rsakem_newctx()
94 prsactx->libctx = PROV_LIBCTX_OF(provctx); in rsakem_newctx()
95 prsactx->op = KEM_OP_RSASVE; in rsakem_newctx()
96 OSSL_FIPS_IND_INIT(prsactx) in rsakem_newctx()
98 return prsactx; in rsakem_newctx()
103 PROV_RSA_CTX *prsactx = (PROV_RSA_CTX *)vprsactx; in rsakem_freectx() local
105 RSA_free(prsactx->rsa); in rsakem_freectx()
106 OPENSSL_free(prsactx); in rsakem_freectx()
[all …]