Home
last modified time | relevance | path

Searched refs:SHA1_DIGEST_SIZE (Results 1 – 25 of 28) sorted by relevance

12

/linux/security/keys/trusted-keys/
H A Dtrusted_tpm1.c39 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 Dsha1-testvecs.h6 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 Dsha1_kunit.c10 #define HASH_SIZE SHA1_DIGEST_SIZE
/linux/crypto/
H A Dsha1.c64 const u8 sha1_zero_message_hash[SHA1_DIGEST_SIZE] = {
188 .digestsize = SHA1_DIGEST_SIZE,
207 .digestsize = SHA1_DIGEST_SIZE,
/linux/net/ipv6/
H A Dseg6_hmac.c152 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 Dchcr_algo.h214 _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 Dhash_info.c41 [HASH_ALGO_SHA1] = SHA1_DIGEST_SIZE,
/linux/drivers/crypto/
H A Dpadlock-sha.c193 .digestsize = SHA1_DIGEST_SIZE,
280 .digestsize = SHA1_DIGEST_SIZE,
/linux/security/integrity/
H A Dintegrity.h47 u8 digest[SHA1_DIGEST_SIZE];
/linux/lib/
H A Ddigsig.c199 unsigned char hash[SHA1_DIGEST_SIZE]; in digsig_verify()
/linux/security/integrity/ima/
H A Dima_queue.c284 digest_size = SHA1_DIGEST_SIZE; in ima_init_digests()
H A Dima.h32 #define IMA_DIGEST_SIZE SHA1_DIGEST_SIZE
/linux/drivers/crypto/inside-secure/
H A Dsafexcel_hash.c783 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 Dcaamalg.c2281 .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 Dcaamalg_qi.c1707 .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 Dcaamalg_qi2.c1918 .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 Dcaamhash.c1604 .digestsize = SHA1_DIGEST_SIZE,
1775 HASH_MSG_LEN + SHA1_DIGEST_SIZE, in caam_hash_cra_init()
/linux/tools/testing/selftests/tpm2/
H A Dtpm2.py69 SHA1_DIGEST_SIZE = 20 variable
188 TPM2_ALG_SHA1: SHA1_DIGEST_SIZE,
/linux/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.c638 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 Dccp-ops.c23 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 Devm_crypto.c399 SHA1_DIGEST_SIZE + 1, 0); in evm_init_hmac()
H A Devm_main.c254 SHA1_DIGEST_SIZE); in evm_verify_hmac()
/linux/drivers/net/ppp/
H A Dppp_mppe.c77 unsigned char sha1_digest[SHA1_DIGEST_SIZE];
/linux/net/sctp/
H A Dauth.c29 .hmac_len = SHA1_DIGEST_SIZE,
/linux/drivers/crypto/bcm/
H A Dcipher.c3176 .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,

12