Searched refs:hash_algo (Results 1 – 7 of 7) sorted by relevance
/crypto/asymmetric_keys/ |
D | public_key.c | 66 const char *hash_algo, in software_key_determine_akcipher() argument 77 if (!hash_algo) in software_key_determine_akcipher() 84 pkey->pkey_algo, hash_algo); in software_key_determine_akcipher() 115 params->hash_algo, in software_key_query() 181 params->hash_algo, in software_key_eds_op() 264 if (!sig->hash_algo || strcmp(sig->hash_algo, "sm3") != 0) in cert_sig_digest_update() 272 tfm = crypto_alloc_shash(sig->hash_algo, 0, 0); in cert_sig_digest_update() 332 sig->hash_algo, in public_key_verify_signature()
|
D | pkcs7_verify.c | 31 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 if (!strcmp(hash_algo_name[i], sinfo->sig->hash_algo)) { in pkcs7_get_digest() 146 *hash_algo = i; in pkcs7_get_digest()
|
D | x509_cert_parser.c | 207 ctx->cert->sig->hash_algo = "md4"; in x509_note_pkey_algo() 211 ctx->cert->sig->hash_algo = "sha1"; in x509_note_pkey_algo() 215 ctx->cert->sig->hash_algo = "sha256"; in x509_note_pkey_algo() 219 ctx->cert->sig->hash_algo = "sha384"; in x509_note_pkey_algo() 223 ctx->cert->sig->hash_algo = "sha512"; in x509_note_pkey_algo() 227 ctx->cert->sig->hash_algo = "sha224"; in x509_note_pkey_algo() 231 ctx->cert->sig->hash_algo = "streebog256"; in x509_note_pkey_algo() 235 ctx->cert->sig->hash_algo = "streebog512"; in x509_note_pkey_algo() 239 ctx->cert->sig->hash_algo = "sm3"; in x509_note_pkey_algo()
|
D | pkcs7_parser.c | 231 ctx->sinfo->sig->hash_algo = "md4"; in pkcs7_sig_note_digest_algo() 234 ctx->sinfo->sig->hash_algo = "md5"; in pkcs7_sig_note_digest_algo() 237 ctx->sinfo->sig->hash_algo = "sha1"; in pkcs7_sig_note_digest_algo() 240 ctx->sinfo->sig->hash_algo = "sha256"; in pkcs7_sig_note_digest_algo() 243 ctx->sinfo->sig->hash_algo = "sha384"; in pkcs7_sig_note_digest_algo() 246 ctx->sinfo->sig->hash_algo = "sha512"; in pkcs7_sig_note_digest_algo() 249 ctx->sinfo->sig->hash_algo = "sha224"; in pkcs7_sig_note_digest_algo()
|
D | asym_tpm.c | 365 static int determine_akcipher(const char *encoding, const char *hash_algo, in determine_akcipher() argument 369 if (!hash_algo) { in determine_akcipher() 375 hash_algo) >= CRYPTO_MAX_ALG_NAME) in determine_akcipher() 404 ret = determine_akcipher(params->encoding, params->hash_algo, alg_name); in tpm_key_query() 458 ret = determine_akcipher(params->encoding, params->hash_algo, alg_name); in tpm_key_encrypt() 515 if (params->hash_algo) in tpm_key_decrypt() 644 if (params->hash_algo) { in tpm_key_sign() 646 lookup_asn1(params->hash_algo); in tpm_key_sign() 753 ret = determine_akcipher(sig->encoding, sig->hash_algo, alg_name); in tpm_key_verify_signature()
|
D | x509_public_key.c | 43 if (!sig->hash_algo) { in x509_get_sig_params() 57 tfm = crypto_alloc_shash(sig->hash_algo, 0, 0); in x509_get_sig_params() 195 cert->sig->pkey_algo, cert->sig->hash_algo); in x509_key_preparse()
|
D | asymmetric_type.c | 569 .hash_algo = params->hash_algo, in asymmetric_key_verify_signature()
|