Home
last modified time | relevance | path

Searched refs:digest_size (Results 1 – 9 of 9) sorted by relevance

/crypto/asymmetric_keys/
Dverify_pefile.c323 size_t digest_size, desc_size; in pefile_digest_pe() local
337 digest_size = crypto_shash_digestsize(tfm); in pefile_digest_pe()
339 if (digest_size != ctx->digest_len) { in pefile_digest_pe()
341 digest_size, ctx->digest_len); in pefile_digest_pe()
345 pr_debug("Digest: desc=%zu size=%zu\n", desc_size, digest_size); in pefile_digest_pe()
348 desc = kzalloc(desc_size + digest_size, GFP_KERNEL); in pefile_digest_pe()
Dx509_public_key.c64 sig->digest_size = crypto_shash_digestsize(tfm); in x509_get_sig_params()
67 sig->digest = kmalloc(sig->digest_size, GFP_KERNEL); in x509_get_sig_params()
81 ret = is_hash_blacklisted(sig->digest, sig->digest_size, "tbs"); in x509_get_sig_params()
84 sig->digest_size, sig->digest); in x509_get_sig_params()
Dpkcs7_verify.c48 sig->digest_size = crypto_shash_digestsize(tfm); in pkcs7_digest()
51 sig->digest = kmalloc(sig->digest_size, GFP_KERNEL); in pkcs7_digest()
81 if (sinfo->msgdigest_len != sig->digest_size) { in pkcs7_digest()
101 memset(sig->digest, 0, sig->digest_size); in pkcs7_digest()
142 *len = sinfo->sig->digest_size; in pkcs7_get_digest()
Dpublic_key.c303 sg_set_buf(&src_sg[1], sig->digest, sig->digest_size); in public_key_verify_signature()
305 sig->digest_size); in public_key_verify_signature()
Dasym_tpm.c792 sg_set_buf(&src_sg[1], sig->digest, sig->digest_size); in tpm_key_verify_signature()
794 sig->digest_size); in tpm_key_verify_signature()
Dasymmetric_type.c567 .digest_size = params->in_len, in asymmetric_key_verify_signature()
/crypto/
Dsha3_generic.c164 unsigned int digest_size = crypto_shash_digestsize(desc->tfm); in crypto_sha3_init() local
166 sctx->rsiz = 200 - 2 * digest_size; in crypto_sha3_init()
217 unsigned int digest_size = crypto_shash_digestsize(desc->tfm); in crypto_sha3_final() local
229 for (i = 0; i < digest_size / 8; i++) in crypto_sha3_final()
232 if (digest_size & 4) in crypto_sha3_final()
Drsa-pkcs1pad.c387 unsigned int ps_end, digest_size = 0; in pkcs1pad_sign() local
393 digest_size = digest_info->size; in pkcs1pad_sign()
395 if (req->src_len + digest_size > ctx->key_size - 11) in pkcs1pad_sign()
408 ps_end = ctx->key_size - digest_size - req->src_len - 2; in pkcs1pad_sign()
Dstreebog_generic.c911 unsigned int digest_size = crypto_shash_digestsize(desc->tfm); in streebog_init() local
916 if (digest_size == STREEBOG256_DIGEST_SIZE) in streebog_init()