| /linux/security/keys/trusted-keys/ |
| H A D | trusted_tpm1.c | 38 unsigned char secret[SHA1_DIGEST_SIZE]; 71 16, 1, &s->secret, SHA1_DIGEST_SIZE, 0); in dump_sess() 74 16, 1, &s->enonce, SHA1_DIGEST_SIZE, 0); in dump_sess() 137 unsigned char paramdigest[SHA1_DIGEST_SIZE]; in TSS_authhmac() 166 ret = TSS_rawhmac(digest, key, keylen, SHA1_DIGEST_SIZE, in TSS_authhmac() 188 unsigned char testhmac[SHA1_DIGEST_SIZE]; in TSS_checkhmac1() 189 unsigned char paramdigest[SHA1_DIGEST_SIZE]; in TSS_checkhmac1() 207 authdata = buffer + bufsize - SHA1_DIGEST_SIZE; in TSS_checkhmac1() 225 ret = TSS_rawhmac(testhmac, key, keylen, SHA1_DIGEST_SIZE, paramdigest, in TSS_checkhmac1() 231 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] = {
|
| /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,
|
| H A D | atmel-sha.c | 433 case SHA1_DIGEST_SIZE: in atmel_sha_init() 484 hashsize = SHA1_DIGEST_SIZE; in atmel_sha_write_ctrl() 922 hashsize = SHA1_DIGEST_SIZE; in atmel_sha_copy_hash() 955 memcpy(req->result, ctx->digest, SHA1_DIGEST_SIZE); in atmel_sha_copy_ready_hash() 1272 .halg.digestsize = SHA1_DIGEST_SIZE, 1690 ctx->hash_size = SHA1_DIGEST_SIZE; in atmel_sha_hmac_setup() 2060 .halg.digestsize = SHA1_DIGEST_SIZE, 2349 authctx->digestlen = SHA1_DIGEST_SIZE; in atmel_sha_authenc_final()
|
| H A D | img-hash.c | 643 case SHA1_DIGEST_SIZE: in img_hash_digest() 783 .digestsize = SHA1_DIGEST_SIZE,
|
| H A D | talitos.c | 2355 .maxauthsize = SHA1_DIGEST_SIZE, 2377 .maxauthsize = SHA1_DIGEST_SIZE, 2399 .maxauthsize = SHA1_DIGEST_SIZE, 2424 .maxauthsize = SHA1_DIGEST_SIZE, 2944 .halg.digestsize = SHA1_DIGEST_SIZE, 3040 .halg.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/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/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/security/integrity/ima/ |
| H A D | ima_queue.c | 570 digest_size = SHA1_DIGEST_SIZE; in ima_init_digests()
|
| H A D | ima.h | 41 #define IMA_DIGEST_SIZE SHA1_DIGEST_SIZE
|
| /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/char/tpm/ |
| H A D | tpm2-sessions.c | 153 return SHA1_DIGEST_SIZE + 2; in name_size()
|
| /linux/net/ipv4/ |
| H A D | tcp_ao.c | 32 .digest_size = SHA1_DIGEST_SIZE, 80 SHA1_DIGEST_SIZE); in tcp_ao_mac_init()
|
| /linux/drivers/crypto/tegra/ |
| H A D | tegra-se-hash.c | 761 .halg.digestsize = SHA1_DIGEST_SIZE,
|