Home
last modified time | relevance | path

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

/crypto/asymmetric_keys/
Dpublic_key.c68 const char *encoding, const char *hash_algo, in software_key_determine_akcipher() argument
86 if (!hash_algo) { in software_key_determine_akcipher()
93 pkey->pkey_algo, hash_algo); in software_key_determine_akcipher()
103 if (hash_algo) in software_key_determine_akcipher()
116 if (!hash_algo) in software_key_determine_akcipher()
118 if (strcmp(hash_algo, "sha1") != 0 && in software_key_determine_akcipher()
119 strcmp(hash_algo, "sha224") != 0 && in software_key_determine_akcipher()
120 strcmp(hash_algo, "sha256") != 0 && in software_key_determine_akcipher()
121 strcmp(hash_algo, "sha384") != 0 && in software_key_determine_akcipher()
122 strcmp(hash_algo, "sha512") != 0 && in software_key_determine_akcipher()
[all …]
Dx509_cert_parser.c190 ctx->cert->sig->hash_algo = "sha1"; in x509_note_sig_algo()
194 ctx->cert->sig->hash_algo = "sha256"; in x509_note_sig_algo()
198 ctx->cert->sig->hash_algo = "sha384"; in x509_note_sig_algo()
202 ctx->cert->sig->hash_algo = "sha512"; in x509_note_sig_algo()
206 ctx->cert->sig->hash_algo = "sha224"; in x509_note_sig_algo()
210 ctx->cert->sig->hash_algo = "sha1"; in x509_note_sig_algo()
214 ctx->cert->sig->hash_algo = "sha3-256"; in x509_note_sig_algo()
218 ctx->cert->sig->hash_algo = "sha3-384"; in x509_note_sig_algo()
222 ctx->cert->sig->hash_algo = "sha3-512"; in x509_note_sig_algo()
226 ctx->cert->sig->hash_algo = "sha224"; in x509_note_sig_algo()
[all …]
Dpkcs7_parser.c231 ctx->sinfo->sig->hash_algo = "sha1"; in pkcs7_sig_note_digest_algo()
234 ctx->sinfo->sig->hash_algo = "sha256"; in pkcs7_sig_note_digest_algo()
237 ctx->sinfo->sig->hash_algo = "sha384"; in pkcs7_sig_note_digest_algo()
240 ctx->sinfo->sig->hash_algo = "sha512"; in pkcs7_sig_note_digest_algo()
243 ctx->sinfo->sig->hash_algo = "sha224"; in pkcs7_sig_note_digest_algo()
246 ctx->sinfo->sig->hash_algo = "sm3"; in pkcs7_sig_note_digest_algo()
249 ctx->sinfo->sig->hash_algo = "streebog256"; in pkcs7_sig_note_digest_algo()
252 ctx->sinfo->sig->hash_algo = "streebog512"; in pkcs7_sig_note_digest_algo()
255 ctx->sinfo->sig->hash_algo = "sha3-256"; in pkcs7_sig_note_digest_algo()
258 ctx->sinfo->sig->hash_algo = "sha3-384"; in pkcs7_sig_note_digest_algo()
[all …]
Dpkcs7_verify.c31 kenter(",%u,%s", sinfo->index, sinfo->sig->hash_algo); in pkcs7_digest()
37 if (!sinfo->sig->hash_algo) in pkcs7_digest()
43 tfm = crypto_alloc_shash(sinfo->sig->hash_algo, 0, 0); in pkcs7_digest()
126 enum hash_algo *hash_algo) in pkcs7_get_digest() argument
145 sinfo->sig->hash_algo); in pkcs7_get_digest()
147 *hash_algo = i; in pkcs7_get_digest()
Dx509_public_key.c43 tfm = crypto_alloc_shash(sig->hash_algo, 0, 0); in x509_get_sig_params()
173 cert->sig->pkey_algo, cert->sig->hash_algo); in x509_key_preparse()
Dasymmetric_type.c602 .hash_algo = params->hash_algo, in asymmetric_key_verify_signature()