Searched refs:dstctx (Results 1 – 14 of 14) sorted by relevance
174 PROV_MAC_CTX *dstctx; in mac_dupctx() local179 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in mac_dupctx()180 if (dstctx == NULL) in mac_dupctx()183 *dstctx = *srcctx; in mac_dupctx()184 dstctx->propq = NULL; in mac_dupctx()185 dstctx->key = NULL; in mac_dupctx()186 dstctx->macctx = NULL; in mac_dupctx()193 dstctx->key = srcctx->key; in mac_dupctx()197 if (dstctx->macctx == NULL) in mac_dupctx()201 return dstctx; in mac_dupctx()[all …]
354 PROV_SM2_CTX *dstctx; local357 if (dstctx == NULL)360 *dstctx = *srcctx;361 dstctx->ec = NULL;362 dstctx->propq = NULL;363 dstctx->md = NULL;364 dstctx->mdctx = NULL;365 dstctx->id = NULL;369 dstctx->ec = srcctx->ec;396 return dstctx;[all …]
102 PROV_ML_DSA_CTX *dstctx; local111 dstctx = OPENSSL_memdup(srcctx, sizeof(*srcctx));113 if (dstctx == NULL)117 dstctx->sig = OPENSSL_memdup(srcctx->sig, srcctx->siglen);118 if (dstctx->sig == NULL) {123 OPENSSL_free(dstctx);129 dstctx->md_ctx = EVP_MD_CTX_dup(srcctx->md_ctx);130 if (dstctx->md_ctx == NULL) {131 ml_dsa_freectx(dstctx);136 return dstctx;
635 PROV_DSA_CTX *dstctx; local641 if (dstctx == NULL)644 *dstctx = *srcctx;645 dstctx->dsa = NULL;646 dstctx->propq = NULL;650 dstctx->dsa = srcctx->dsa;654 dstctx->md = srcctx->md;658 if (dstctx->mdctx == NULL665 if (dstctx->propq == NULL)669 return dstctx;[all …]
635 PROV_ECDSA_CTX *dstctx; local641 if (dstctx == NULL)644 *dstctx = *srcctx;645 dstctx->ec = NULL;646 dstctx->propq = NULL;653 dstctx->ec = srcctx->ec;657 dstctx->md = srcctx->md;661 if (dstctx->mdctx == NULL668 if (dstctx->propq == NULL)672 return dstctx;[all …]
1340 PROV_RSA_CTX *dstctx; local1346 if (dstctx == NULL)1349 *dstctx = *srcctx;1350 dstctx->rsa = NULL;1351 dstctx->md = NULL;1352 dstctx->mgf1_md = NULL;1353 dstctx->mdctx = NULL;1354 dstctx->tbuf = NULL;1355 dstctx->propq = NULL;1382 return dstctx;[all …]
757 PROV_EDDSA_CTX *dstctx; local762 dstctx = OPENSSL_zalloc(sizeof(*srcctx));763 if (dstctx == NULL)766 *dstctx = *srcctx;767 dstctx->key = NULL;773 dstctx->key = srcctx->key;775 return dstctx;777 eddsa_freectx(dstctx);
144 PROV_KDF_CTX *dstctx; in kdf_dupctx() local149 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in kdf_dupctx()150 if (dstctx == NULL) in kdf_dupctx()153 *dstctx = *srcctx; in kdf_dupctx()155 dstctx->kdfctx = EVP_KDF_CTX_dup(srcctx->kdfctx); in kdf_dupctx()156 if (dstctx->kdfctx == NULL) { in kdf_dupctx()157 OPENSSL_free(dstctx); in kdf_dupctx()160 if (!ossl_kdf_data_up_ref(dstctx->kdfdata)) { in kdf_dupctx()161 EVP_KDF_CTX_free(dstctx->kdfctx); in kdf_dupctx()162 OPENSSL_free(dstctx); in kdf_dupctx()[all …]
157 PROV_ECX_CTX *dstctx; local162 dstctx = OPENSSL_zalloc(sizeof(*srcctx));163 if (dstctx == NULL)166 *dstctx = *srcctx;167 if (dstctx->key != NULL && !ossl_ecx_key_up_ref(dstctx->key)) {169 OPENSSL_free(dstctx);173 if (dstctx->peerkey != NULL && !ossl_ecx_key_up_ref(dstctx->peerkey)) {175 ossl_ecx_key_free(dstctx->key);176 OPENSSL_free(dstctx);180 return dstctx;
293 PROV_DH_CTX *dstctx; local299 if (dstctx == NULL)302 *dstctx = *srcctx;303 dstctx->dh = NULL;304 dstctx->dhpeer = NULL;305 dstctx->kdf_md = NULL;306 dstctx->kdf_ukm = NULL;307 dstctx->kdf_cekalg = NULL;312 dstctx->dh = srcctx->dh;338 return dstctx;[all …]
200 PROV_ECDH_CTX *dstctx; local206 if (dstctx == NULL)209 *dstctx = *srcctx;213 dstctx->k= NULL;214 dstctx->peerk = NULL;215 dstctx->kdf_md = NULL;216 dstctx->kdf_ukm = NULL;223 dstctx->k = srcctx->k;239 if (dstctx->kdf_ukm == NULL)243 return dstctx;[all …]
139 PROV_SM2_CTX *dstctx; local141 dstctx = OPENSSL_zalloc(sizeof(*srcctx));142 if (dstctx == NULL)145 *dstctx = *srcctx;146 memset(&dstctx->md, 0, sizeof(dstctx->md));148 if (dstctx->key != NULL && !EC_KEY_up_ref(dstctx->key)) {149 OPENSSL_free(dstctx);153 if (!ossl_prov_digest_copy(&dstctx->md, &srcctx->md)) {154 sm2_freectx(dstctx);158 return dstctx;
335 PROV_RSA_CTX *dstctx; local341 if (dstctx == NULL)344 *dstctx = *srcctx;345 if (dstctx->rsa != NULL && !RSA_up_ref(dstctx->rsa)) {346 OPENSSL_free(dstctx);350 if (dstctx->oaep_md != NULL && !EVP_MD_up_ref(dstctx->oaep_md)) {351 RSA_free(dstctx->rsa);352 OPENSSL_free(dstctx);356 if (dstctx->mgf1_md != NULL && !EVP_MD_up_ref(dstctx->mgf1_md)) {359 OPENSSL_free(dstctx);[all …]
116 PROV_RSA_CTX *dstctx; local121 dstctx = OPENSSL_zalloc(sizeof(*srcctx));122 if (dstctx == NULL)125 *dstctx = *srcctx;126 if (dstctx->rsa != NULL && !RSA_up_ref(dstctx->rsa)) {127 OPENSSL_free(dstctx);130 return dstctx;
Completed in 42 milliseconds