| /linux/security/keys/trusted-keys/ |
| H A D | trusted_tpm1.c | 39 unsigned char secret[SHA1_DIGEST_SIZE]; 68 16, 1, &s->secret, SHA1_DIGEST_SIZE, 0); in dump_sess() 71 16, 1, &s->enonce, SHA1_DIGEST_SIZE, 0); in dump_sess() 132 unsigned char paramdigest[SHA1_DIGEST_SIZE]; in TSS_authhmac() 161 ret = TSS_rawhmac(digest, key, keylen, SHA1_DIGEST_SIZE, in TSS_authhmac() 183 unsigned char testhmac[SHA1_DIGEST_SIZE]; in TSS_checkhmac1() 184 unsigned char paramdigest[SHA1_DIGEST_SIZE]; in TSS_checkhmac1() 202 authdata = buffer + bufsize - SHA1_DIGEST_SIZE; in TSS_checkhmac1() 220 ret = TSS_rawhmac(testhmac, key, keylen, SHA1_DIGEST_SIZE, paramdigest, in TSS_checkhmac1() 226 if (crypto_memneq(testhmac, authdata, SHA1_DIGEST_SIZE)) in TSS_checkhmac1() [all …]
|
| /linux/lib/crypto/tests/ |
| H A D | sha1-testvecs.h | 6 u8 digest[SHA1_DIGEST_SIZE]; 202 static const u8 hash_testvec_consolidated[SHA1_DIGEST_SIZE] = { 208 static const u8 hmac_testvec_consolidated[SHA1_DIGEST_SIZE] = {
|
| H A D | sha1_kunit.c | 10 #define HASH_SIZE SHA1_DIGEST_SIZE
|
| /linux/crypto/ |
| H A D | sha1.c | 64 const u8 sha1_zero_message_hash[SHA1_DIGEST_SIZE] = { 188 .digestsize = SHA1_DIGEST_SIZE, 207 .digestsize = SHA1_DIGEST_SIZE,
|
| /linux/net/ipv6/ |
| H A D | seg6_hmac.c | 152 static_assert(SEG6_HMAC_FIELD_LEN > SHA1_DIGEST_SIZE); in seg6_hmac_compute() 153 memset(&output[SHA1_DIGEST_SIZE], 0, in seg6_hmac_compute() 154 SEG6_HMAC_FIELD_LEN - SHA1_DIGEST_SIZE); in seg6_hmac_compute()
|
| /linux/drivers/crypto/chelsio/ |
| H A D | chcr_algo.h | 214 _bs == SHA1_DIGEST_SIZE ? 12 : 0; }) 303 static const u32 chcr_sha1_init[SHA1_DIGEST_SIZE / 4] = { 336 case SHA1_DIGEST_SIZE: in copy_hash_init_values()
|
| /linux/lib/crypto/ |
| H A D | hash_info.c | 41 [HASH_ALGO_SHA1] = SHA1_DIGEST_SIZE,
|
| /linux/drivers/crypto/ |
| H A D | padlock-sha.c | 193 .digestsize = SHA1_DIGEST_SIZE, 280 .digestsize = SHA1_DIGEST_SIZE,
|
| /linux/security/integrity/ |
| H A D | integrity.h | 47 u8 digest[SHA1_DIGEST_SIZE];
|
| /linux/lib/ |
| H A D | digsig.c | 199 unsigned char hash[SHA1_DIGEST_SIZE]; in digsig_verify()
|
| /linux/security/integrity/ima/ |
| H A D | ima_queue.c | 284 digest_size = SHA1_DIGEST_SIZE; in ima_init_digests()
|
| H A D | ima.h | 32 #define IMA_DIGEST_SIZE SHA1_DIGEST_SIZE
|
| /linux/drivers/crypto/inside-secure/ |
| H A D | safexcel_hash.c | 783 SHA1_DIGEST_SIZE); in safexcel_ahash_final() 942 req->state_sz = SHA1_DIGEST_SIZE; in safexcel_sha1_init() 943 req->digest_sz = SHA1_DIGEST_SIZE; in safexcel_sha1_init() 991 .digestsize = SHA1_DIGEST_SIZE, 1018 memcpy(req->state, &ctx->base.ipad, SHA1_DIGEST_SIZE); in safexcel_hmac_sha1_init() 1025 req->state_sz = SHA1_DIGEST_SIZE; in safexcel_hmac_sha1_init() 1026 req->digest_sz = SHA1_DIGEST_SIZE; in safexcel_hmac_sha1_init() 1201 SHA1_DIGEST_SIZE); in safexcel_hmac_sha1_setkey() 1217 .digestsize = SHA1_DIGEST_SIZE,
|
| /linux/drivers/crypto/caam/ |
| H A D | caamalg.c | 2281 .maxauthsize = SHA1_DIGEST_SIZE, 2450 .maxauthsize = SHA1_DIGEST_SIZE, 2475 .maxauthsize = SHA1_DIGEST_SIZE, 2751 .maxauthsize = SHA1_DIGEST_SIZE, 2777 .maxauthsize = SHA1_DIGEST_SIZE, 3060 .maxauthsize = SHA1_DIGEST_SIZE, 3085 .maxauthsize = SHA1_DIGEST_SIZE, 3366 .maxauthsize = SHA1_DIGEST_SIZE, 3393 .maxauthsize = SHA1_DIGEST_SIZE,
|
| H A D | caamalg_qi.c | 1707 .maxauthsize = SHA1_DIGEST_SIZE, 1729 .maxauthsize = SHA1_DIGEST_SIZE, 1975 .maxauthsize = SHA1_DIGEST_SIZE, 1998 .maxauthsize = SHA1_DIGEST_SIZE, 2248 .maxauthsize = SHA1_DIGEST_SIZE, 2270 .maxauthsize = SHA1_DIGEST_SIZE,
|
| H A D | caamalg_qi2.c | 1918 .maxauthsize = SHA1_DIGEST_SIZE, 1940 .maxauthsize = SHA1_DIGEST_SIZE, 2186 .maxauthsize = SHA1_DIGEST_SIZE, 2209 .maxauthsize = SHA1_DIGEST_SIZE, 2459 .maxauthsize = SHA1_DIGEST_SIZE, 2481 .maxauthsize = SHA1_DIGEST_SIZE, 2733 .maxauthsize = SHA1_DIGEST_SIZE, 2757 .maxauthsize = SHA1_DIGEST_SIZE, 4434 .digestsize = SHA1_DIGEST_SIZE, 4568 HASH_MSG_LEN + SHA1_DIGEST_SIZE, in caam_hash_cra_init()
|
| H A D | caamhash.c | 1604 .digestsize = SHA1_DIGEST_SIZE, 1775 HASH_MSG_LEN + SHA1_DIGEST_SIZE, in caam_hash_cra_init()
|
| /linux/tools/testing/selftests/tpm2/ |
| H A D | tpm2.py | 69 SHA1_DIGEST_SIZE = 20 variable 188 TPM2_ALG_SHA1: SHA1_DIGEST_SIZE,
|
| /linux/drivers/crypto/marvell/octeontx/ |
| H A D | otx_cptvf_algs.c | 638 if (authsize != SHA1_DIGEST_SIZE && in otx_cpt_aead_set_authsize() 728 swap_data32(sha1->state, SHA1_DIGEST_SIZE); in swap_pad() 1327 .maxauthsize = SHA1_DIGEST_SIZE, 1403 .maxauthsize = SHA1_DIGEST_SIZE,
|
| /linux/drivers/crypto/ccp/ |
| H A D | ccp-ops.c | 23 static const __be32 ccp_sha1_init[SHA1_DIGEST_SIZE / sizeof(__be32)] = { 1515 if (sha->ctx_len < SHA1_DIGEST_SIZE) in ccp_run_sha_cmd() 1577 digest_len = SHA1_DIGEST_SIZE; in ccp_run_sha_cmd() 1601 digest_size = SHA1_DIGEST_SIZE; in ccp_run_sha_cmd() 1603 ctx_size = SHA1_DIGEST_SIZE; in ccp_run_sha_cmd() 1606 ooffset = ioffset = CCP_SB_BYTES - SHA1_DIGEST_SIZE; in ccp_run_sha_cmd()
|
| /linux/security/integrity/evm/ |
| H A D | evm_crypto.c | 399 SHA1_DIGEST_SIZE + 1, 0); in evm_init_hmac()
|
| H A D | evm_main.c | 254 SHA1_DIGEST_SIZE); in evm_verify_hmac()
|
| /linux/drivers/net/ppp/ |
| H A D | ppp_mppe.c | 77 unsigned char sha1_digest[SHA1_DIGEST_SIZE];
|
| /linux/net/sctp/ |
| H A D | auth.c | 29 .hmac_len = SHA1_DIGEST_SIZE,
|
| /linux/drivers/crypto/bcm/ |
| H A D | cipher.c | 3176 .maxauthsize = SHA1_DIGEST_SIZE, 3251 .maxauthsize = SHA1_DIGEST_SIZE, 3401 .maxauthsize = SHA1_DIGEST_SIZE, 3711 .halg.digestsize = SHA1_DIGEST_SIZE, 3729 .halg.digestsize = SHA1_DIGEST_SIZE,
|