Home
last modified time | relevance | path

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

/third_party/openssl/providers/implementations/signature/
Drsa_sig.c113 #define rsa_pss_restricted(prsactx) (prsactx->min_saltlen != -1) argument
115 static size_t rsa_get_md_size(const PROV_RSA_CTX *prsactx) in rsa_get_md_size() argument
117 if (prsactx->md != NULL) in rsa_get_md_size()
118 return EVP_MD_get_size(prsactx->md); in rsa_get_md_size()
122 static int rsa_check_padding(const PROV_RSA_CTX *prsactx, in rsa_check_padding() argument
126 switch(prsactx->pad_mode) { in rsa_check_padding()
140 if (rsa_pss_restricted(prsactx)) in rsa_check_padding()
141 if ((mdname != NULL && !EVP_MD_is_a(prsactx->md, mdname)) in rsa_check_padding()
143 && !EVP_MD_is_a(prsactx->mgf1_md, mgf1_mdname))) { in rsa_check_padding()
155 static int rsa_check_parameters(PROV_RSA_CTX *prsactx, int min_saltlen) in rsa_check_parameters() argument
[all …]
/third_party/node/deps/openssl/openssl/providers/implementations/signature/
Drsa_sig.c113 #define rsa_pss_restricted(prsactx) (prsactx->min_saltlen != -1) argument
115 static size_t rsa_get_md_size(const PROV_RSA_CTX *prsactx) in rsa_get_md_size() argument
117 if (prsactx->md != NULL) in rsa_get_md_size()
118 return EVP_MD_get_size(prsactx->md); in rsa_get_md_size()
122 static int rsa_check_padding(const PROV_RSA_CTX *prsactx, in rsa_check_padding() argument
126 switch(prsactx->pad_mode) { in rsa_check_padding()
140 if (rsa_pss_restricted(prsactx)) in rsa_check_padding()
141 if ((mdname != NULL && !EVP_MD_is_a(prsactx->md, mdname)) in rsa_check_padding()
143 && !EVP_MD_is_a(prsactx->mgf1_md, mgf1_mdname))) { in rsa_check_padding()
155 static int rsa_check_parameters(PROV_RSA_CTX *prsactx, int min_saltlen) in rsa_check_parameters() argument
[all …]
/third_party/openssl/providers/implementations/asymciphers/
Drsa_enc.c82 PROV_RSA_CTX *prsactx; in rsa_newctx() local
86 prsactx = OPENSSL_zalloc(sizeof(PROV_RSA_CTX)); in rsa_newctx()
87 if (prsactx == NULL) in rsa_newctx()
89 prsactx->libctx = PROV_LIBCTX_OF(provctx); in rsa_newctx()
91 return prsactx; in rsa_newctx()
97 PROV_RSA_CTX *prsactx = (PROV_RSA_CTX *)vprsactx; in rsa_init() local
99 if (!ossl_prov_is_running() || prsactx == NULL || vrsa == NULL) in rsa_init()
102 if (!ossl_rsa_check_key(prsactx->libctx, vrsa, operation)) in rsa_init()
107 RSA_free(prsactx->rsa); in rsa_init()
108 prsactx->rsa = vrsa; in rsa_init()
[all …]
/third_party/node/deps/openssl/openssl/providers/implementations/asymciphers/
Drsa_enc.c82 PROV_RSA_CTX *prsactx; in rsa_newctx() local
86 prsactx = OPENSSL_zalloc(sizeof(PROV_RSA_CTX)); in rsa_newctx()
87 if (prsactx == NULL) in rsa_newctx()
89 prsactx->libctx = PROV_LIBCTX_OF(provctx); in rsa_newctx()
91 return prsactx; in rsa_newctx()
97 PROV_RSA_CTX *prsactx = (PROV_RSA_CTX *)vprsactx; in rsa_init() local
99 if (!ossl_prov_is_running() || prsactx == NULL || vrsa == NULL) in rsa_init()
102 if (!ossl_rsa_check_key(prsactx->libctx, vrsa, operation)) in rsa_init()
107 RSA_free(prsactx->rsa); in rsa_init()
108 prsactx->rsa = vrsa; in rsa_init()
[all …]
/third_party/openssl/providers/implementations/kem/
Drsa_kem.c85 PROV_RSA_CTX *prsactx = OPENSSL_zalloc(sizeof(PROV_RSA_CTX)); in rsakem_newctx() local
87 if (prsactx == NULL) in rsakem_newctx()
89 prsactx->libctx = PROV_LIBCTX_OF(provctx); in rsakem_newctx()
90 prsactx->op = KEM_OP_UNDEFINED; in rsakem_newctx()
92 return prsactx; in rsakem_newctx()
97 PROV_RSA_CTX *prsactx = (PROV_RSA_CTX *)vprsactx; in rsakem_freectx() local
99 RSA_free(prsactx->rsa); in rsakem_freectx()
100 OPENSSL_free(prsactx); in rsakem_freectx()
123 PROV_RSA_CTX *prsactx = (PROV_RSA_CTX *)vprsactx; in rsakem_init() local
125 if (prsactx == NULL || vrsa == NULL) in rsakem_init()
[all …]
/third_party/node/deps/openssl/openssl/providers/implementations/kem/
Drsa_kem.c85 PROV_RSA_CTX *prsactx = OPENSSL_zalloc(sizeof(PROV_RSA_CTX)); in rsakem_newctx() local
87 if (prsactx == NULL) in rsakem_newctx()
89 prsactx->libctx = PROV_LIBCTX_OF(provctx); in rsakem_newctx()
90 prsactx->op = KEM_OP_UNDEFINED; in rsakem_newctx()
92 return prsactx; in rsakem_newctx()
97 PROV_RSA_CTX *prsactx = (PROV_RSA_CTX *)vprsactx; in rsakem_freectx() local
99 RSA_free(prsactx->rsa); in rsakem_freectx()
100 OPENSSL_free(prsactx); in rsakem_freectx()
123 PROV_RSA_CTX *prsactx = (PROV_RSA_CTX *)vprsactx; in rsakem_init() local
125 if (prsactx == NULL || vrsa == NULL) in rsakem_init()
[all …]