Home
last modified time | relevance | path

Searched refs:algorithm (Results 1 – 25 of 75) sorted by relevance

123

/crypto/asn1/
A Dx_algor.c40 ASN1_OBJECT_free(alg->algorithm);
41 alg->algorithm = aobj;
76 *paobj = algor->algorithm; in X509_ALGOR_get0()
100 rv = OBJ_cmp(a->algorithm, b->algorithm); in X509_ALGOR_cmp()
113 if (dest->algorithm) in X509_ALGOR_copy()
114 ASN1_OBJECT_free(dest->algorithm); in X509_ALGOR_copy()
115 dest->algorithm = NULL; in X509_ALGOR_copy()
121 if (src->algorithm) in X509_ALGOR_copy()
122 if ((dest->algorithm = OBJ_dup(src->algorithm)) == NULL) in X509_ALGOR_copy()
163 md = EVP_get_digestbyobj(alg->algorithm); in ossl_x509_algor_get_md()
[all …]
A Da_sign.c62 ASN1_OBJECT_free(a->algorithm); in ASN1_sign()
63 a->algorithm = OBJ_nid2obj(type->pkey_type); in ASN1_sign()
64 if (a->algorithm == NULL) { in ASN1_sign()
68 if (a->algorithm->length == 0) { in ASN1_sign()
A Dp5_pbev2.c75 scheme->algorithm = OBJ_nid2obj(alg_nid);
142 ret->algorithm = OBJ_nid2obj(NID_pbes2);
259 keyfunc->algorithm = OBJ_nid2obj(NID_id_pbkdf2); in PKCS5_pbkdf2_set_ex()
A Dp5_scrypt.c78 scheme->algorithm = OBJ_nid2obj(alg_nid); in PKCS5_pbe2_set_scrypt()
133 ret->algorithm = OBJ_nid2obj(NID_pbes2); in PKCS5_pbe2_set_scrypt()
217 keyfunc->algorithm = OBJ_nid2obj(NID_id_scrypt); in pkcs5_scrypt_set()
/crypto/ocsp/
A Docsp_lib.c57 ASN1_OBJECT_free(alg->algorithm); in OCSP_cert_id_new()
62 if ((alg->algorithm = OBJ_nid2obj(nid)) == NULL) in OCSP_cert_id_new()
95 ret = OBJ_cmp(a->hashAlgorithm.algorithm, b->hashAlgorithm.algorithm); in OCSP_id_issuer_cmp()
/crypto/crmf/
A Dcrmf_pbm.c133 || pbmp->mac->algorithm == NULL || msg == NULL || sec == NULL) { in OSSL_CRMF_pbm_new()
145 OBJ_obj2txt(mdname, sizeof(mdname), pbmp->owf->algorithm, 0); in OSSL_CRMF_pbm_new()
187 mac_nid = OBJ_obj2nid(pbmp->mac->algorithm); in OSSL_CRMF_pbm_new()
217 if (OBJ_obj2txt(buf, sizeof(buf), pbmp->mac->algorithm, 0)) in OSSL_CRMF_pbm_new()
/crypto/evp/
A Dmac_meth.c178 EVP_MAC *EVP_MAC_fetch(OSSL_LIB_CTX *libctx, const char *algorithm, in EVP_MAC_fetch() argument
181 return evp_generic_fetch(libctx, OSSL_OP_MAC, algorithm, properties, in EVP_MAC_fetch()
258 const char *algorithm, in evp_mac_fetch_from_prov() argument
262 algorithm, properties, in evp_mac_fetch_from_prov()
A Dp5_crpt2.c132 if (!EVP_PBE_find_ex(EVP_PBE_TYPE_KDF, OBJ_obj2nid(pbe2->keyfunc->algorithm), in PKCS5_v2_PBE_keyivgen_ex()
141 if (OBJ_obj2txt(ciph_name, sizeof(ciph_name), pbe2->encryption->algorithm, 0) <= 0) { in PKCS5_v2_PBE_keyivgen_ex()
225 prf_nid = OBJ_obj2nid(kdf->prf->algorithm); in PKCS5_v2_PBKDF2_keyivgen_ex()
A Dkem.c461 EVP_KEM *EVP_KEM_fetch(OSSL_LIB_CTX *ctx, const char *algorithm, in EVP_KEM_fetch() argument
464 return evp_generic_fetch(ctx, OSSL_OP_KEM, algorithm, properties, in EVP_KEM_fetch()
470 EVP_KEM *evp_kem_fetch_from_prov(OSSL_PROVIDER *prov, const char *algorithm, in evp_kem_fetch_from_prov() argument
473 return evp_generic_fetch_from_prov(prov, OSSL_OP_KEM, algorithm, properties, in evp_kem_fetch_from_prov()
A Dexchange.c181 EVP_KEYEXCH *EVP_KEYEXCH_fetch(OSSL_LIB_CTX *ctx, const char *algorithm, in EVP_KEYEXCH_fetch() argument
184 return evp_generic_fetch(ctx, OSSL_OP_KEYEXCH, algorithm, properties, in EVP_KEYEXCH_fetch()
191 const char *algorithm, in evp_keyexch_fetch_from_prov() argument
195 algorithm, properties, in evp_keyexch_fetch_from_prov()
A Devp_local.h344 const char *algorithm,
347 const char *algorithm,
350 const char *algorithm,
A Dasymcipher.c514 EVP_ASYM_CIPHER *EVP_ASYM_CIPHER_fetch(OSSL_LIB_CTX *ctx, const char *algorithm, in EVP_ASYM_CIPHER_fetch() argument
517 return evp_generic_fetch(ctx, OSSL_OP_ASYM_CIPHER, algorithm, properties, in EVP_ASYM_CIPHER_fetch()
524 const char *algorithm, in evp_asym_cipher_fetch_from_prov() argument
528 algorithm, properties, in evp_asym_cipher_fetch_from_prov()
A Dkdf_meth.c162 EVP_KDF *EVP_KDF_fetch(OSSL_LIB_CTX *libctx, const char *algorithm, in EVP_KDF_fetch() argument
165 return evp_generic_fetch(libctx, OSSL_OP_KDF, algorithm, properties, in EVP_KDF_fetch()
/crypto/property/
A DREADME.md1 Selecting algorithm implementations by properties
19 * There are a lot of algorithm implementations, therefore property
46 properties are used and not algorithm properties, or at least these are
52 algorithm identifier and the entire query string and it would map to
53 the chosen algorithm. When a provider is loaded or unloaded, this cache
63 per algorithm locking being used for longer intervals.
/crypto/cms/
A Dcms_kem.c43 OBJ_obj2txt(name, sizeof(name), wrap->algorithm, 0); in kem_cms_decrypt()
132 ASN1_OBJECT_free(wrap->algorithm); in kem_cms_encrypt()
134 wrap->algorithm = OBJ_nid2obj(wrap_nid); in kem_cms_encrypt()
A Dcms_enc.c63 cipher = EVP_get_cipherbyobj(calg->algorithm); in ossl_cms_EncryptedContent_init_bio()
84 calg->algorithm = OBJ_nid2obj(EVP_CIPHER_CTX_get_type(ctx)); in ossl_cms_EncryptedContent_init_bio()
85 if (calg->algorithm == NULL || calg->algorithm->nid == NID_undef) { in ossl_cms_EncryptedContent_init_bio()
A Dcms_pwri.c124 encalg->algorithm = OBJ_nid2obj(EVP_CIPHER_CTX_get_type(ctx)); in CMS_add0_recipient_password()
152 pwri->keyEncryptionAlgorithm->algorithm = OBJ_nid2obj(wrap_nid); in CMS_add0_recipient_password()
333 if (!algtmp || OBJ_obj2nid(algtmp->algorithm) != NID_id_alg_PWRI_KEK) { in ossl_cms_RecipientInfo_pwri_crypt()
346 OBJ_obj2txt(name, sizeof(name), kekalg->algorithm, 0); in ossl_cms_RecipientInfo_pwri_crypt()
373 if (EVP_PBE_CipherInit_ex(algtmp->algorithm, in ossl_cms_RecipientInfo_pwri_crypt()
A Dcms_rsa.c55 nid = OBJ_obj2nid(cmsalg->algorithm); in rsa_cms_decrypt()
80 if (OBJ_obj2nid(plab->algorithm) != NID_pSpecified) { in rsa_cms_decrypt()
252 nid = OBJ_obj2nid(alg->algorithm); in rsa_cms_verify()
A Dcms_dh.c101 if (OBJ_obj2nid(alg->algorithm) != NID_id_smime_alg_ESDH) { in dh_cms_set_shared_info()
122 if (OBJ_obj2txt(name, sizeof(name), kekalg->algorithm, 0) <= 0) in dh_cms_set_shared_info()
281 wrap_alg->algorithm = OBJ_nid2obj(wrap_nid); in dh_cms_encrypt()
/crypto/pkcs7/
A Dpk7_lib.c216 obj = psi->digest_alg->algorithm; in PKCS7_add_signer()
221 if (OBJ_cmp(obj, alg->algorithm) == 0) { in PKCS7_add_signer()
240 alg->algorithm = OBJ_nid2obj(nid); in PKCS7_add_signer()
242 alg->algorithm = OBJ_dup(obj); in PKCS7_add_signer()
244 if (alg->algorithm == NULL || !sk_X509_ALGOR_push(md_sk, alg)) { in PKCS7_add_signer()
320 if (alg1 == NULL || alg1->algorithm == NULL) in pkcs7_ecdsa_or_dsa_sign_verify_setup()
322 hnid = OBJ_obj2nid(alg1->algorithm); in pkcs7_ecdsa_or_dsa_sign_verify_setup()
535 p7->d.digest->md->algorithm = OBJ_nid2obj(EVP_MD_nid(md)); in PKCS7_set_digest()
A Dpk7_doit.c108 OBJ_obj2txt(name, sizeof(name), alg->algorithm, 0); in pkcs7_bio_add_digest()
285 xalg = p7->d.signed_and_enveloped->enc_data->algorithm; in PKCS7_dataInit()
294 xalg = p7->d.enveloped->enc_data->algorithm; in PKCS7_dataInit()
498 enc_alg = p7->d.signed_and_enveloped->enc_data->algorithm; in PKCS7_dataDecode()
500 OBJ_obj2txt(name, sizeof(name), enc_alg->algorithm, 0); in PKCS7_dataDecode()
518 enc_alg = p7->d.enveloped->enc_data->algorithm; in PKCS7_dataDecode()
521 OBJ_obj2txt(name, sizeof(name), enc_alg->algorithm, 0); in PKCS7_dataDecode()
557 OBJ_obj2txt(name, sizeof(name), xa->algorithm, 0); in PKCS7_dataDecode()
865 j = OBJ_obj2nid(si->digest_alg->algorithm); in PKCS7_dataFinal()
959 md = EVP_get_digestbyobj(si->digest_alg->algorithm); in PKCS7_SIGNER_INFO_sign()
[all …]
A Dpk7_attr.c67 ASN1_OBJECT_free(alg->algorithm); in PKCS7_simple_smimecap()
68 alg->algorithm = OBJ_nid2obj(nid); in PKCS7_simple_smimecap()
/crypto/pkcs12/
A Dp12_add.c129 X509_ALGOR_free(p7->d.encrypted->enc_data->algorithm); in PKCS12_pack_p7encdata_ex()
130 p7->d.encrypted->enc_data->algorithm = pbe; in PKCS12_pack_p7encdata_ex()
167 return PKCS12_item_decrypt_d2i_ex(p7->d.encrypted->enc_data->algorithm, in STACK_OF()
/crypto/err/
A Dopenssl.txt292 CMP_R_UNKNOWN_ALGORITHM_ID:134:unknown algorithm id
296 CMP_R_UNSUPPORTED_ALGORITHM:136:unsupported algorithm
303 CMP_R_WRONG_ALGORITHM_OID:138:wrong algorithm oid
401 unsupported content encryption algorithm
407 unsupported key encryption algorithm
486 CRYPTO_R_BAD_ALGORITHM_NAME:117:bad algorithm name
724 EVP_R_BAD_ALGORITHM_NAME:200:bad algorithm name
1054 PROV_R_ALGORITHM_MISMATCH:173:algorithm mismatch
1252 RSA_R_ALGORITHM_MISMATCH:100:algorithm mismatch
1565 old session compression algorithm not returned
[all …]
/crypto/rsa/
A Drsa_ameth.c237 if (i2a_ASN1_OBJECT(bp, pss->hashAlgorithm->algorithm) <= 0) in rsa_pss_param_print()
252 if (i2a_ASN1_OBJECT(bp, pss->maskGenAlgorithm->algorithm) <= 0) in rsa_pss_param_print()
258 if (i2a_ASN1_OBJECT(bp, maskHash->algorithm) <= 0) in rsa_pss_param_print()
404 if (OBJ_obj2nid(sigalg->algorithm) == EVP_PKEY_RSA_PSS) { in rsa_sig_print()
550 if (OBJ_obj2nid(sigalg->algorithm) != EVP_PKEY_RSA_PSS) { in ossl_rsa_pss_to_ctx()
638 if (OBJ_obj2nid(sigalg->algorithm) != EVP_PKEY_RSA_PSS) { in rsa_item_verify()
733 if (OBJ_obj2nid(sigalg->algorithm) != EVP_PKEY_RSA_PSS) in rsa_sig_info_set()

Completed in 90 milliseconds

123