| /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/include/crypto/ |
| H A D | sha1.h | 11 #define SHA1_DIGEST_SIZE 20 macro 21 extern const u8 sha1_zero_message_hash[SHA1_DIGEST_SIZE]; 24 u32 state[SHA1_DIGEST_SIZE / 4]; 31 u32 h[SHA1_DIGEST_SIZE / 4]; 77 void sha1_final(struct sha1_ctx *ctx, u8 out[at_least SHA1_DIGEST_SIZE]); 87 void sha1(const u8 *data, size_t len, u8 out[at_least SHA1_DIGEST_SIZE]); 175 u8 out[at_least SHA1_DIGEST_SIZE]); 190 u8 out[at_least SHA1_DIGEST_SIZE]); 207 u8 out[at_least SHA1_DIGEST_SIZE]);
|
| /linux/lib/crypto/ |
| H A D | sha1.c | 174 static void __sha1_final(struct sha1_ctx *ctx, u8 out[SHA1_DIGEST_SIZE]) in __sha1_final() argument 189 for (size_t i = 0; i < SHA1_DIGEST_SIZE; i += 4) in __sha1_final() 193 void sha1_final(struct sha1_ctx *ctx, u8 out[SHA1_DIGEST_SIZE]) in sha1_final() argument 200 void sha1(const u8 *data, size_t len, u8 out[SHA1_DIGEST_SIZE]) in sha1() argument 263 void hmac_sha1_final(struct hmac_sha1_ctx *ctx, u8 out[SHA1_DIGEST_SIZE]) in hmac_sha1_final() argument 267 memset(&ctx->sha_ctx.buf[SHA1_DIGEST_SIZE], 0, in hmac_sha1_final() 268 SHA1_BLOCK_SIZE - SHA1_DIGEST_SIZE); in hmac_sha1_final() 269 ctx->sha_ctx.buf[SHA1_DIGEST_SIZE] = 0x80; in hmac_sha1_final() 271 cpu_to_be32(8 * (SHA1_BLOCK_SIZE + SHA1_DIGEST_SIZE)); in hmac_sha1_final() 275 for (size_t i = 0; i < SHA1_DIGEST_SIZE; i += 4) in hmac_sha1_final() [all …]
|
| H A D | hash_info.c | 41 [HASH_ALGO_SHA1] = SHA1_DIGEST_SIZE,
|
| /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/drivers/crypto/inside-secure/eip93/ |
| H A D | eip93-aead.c | 298 .maxauthsize = SHA1_DIGEST_SIZE, 412 .maxauthsize = SHA1_DIGEST_SIZE, 526 .maxauthsize = SHA1_DIGEST_SIZE, 638 .maxauthsize = SHA1_DIGEST_SIZE,
|
| H A D | eip93-hash.c | 461 SHA1_DIGEST_SIZE); in __eip93_hash_final() 675 .digestsize = SHA1_DIGEST_SIZE, 797 .digestsize = SHA1_DIGEST_SIZE,
|
| /linux/drivers/crypto/rockchip/ |
| H A D | rk3288_crypto_ahash.c | 70 case SHA1_DIGEST_SIZE: in zero_message_process() 287 case SHA1_DIGEST_SIZE: in rk_hash_run() 388 .digestsize = 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 | 441 case SHA1_DIGEST_SIZE: in atmel_sha_init() 492 hashsize = SHA1_DIGEST_SIZE; in atmel_sha_write_ctrl() 930 hashsize = SHA1_DIGEST_SIZE; in atmel_sha_copy_hash() 963 memcpy(req->result, ctx->digest, SHA1_DIGEST_SIZE); in atmel_sha_copy_ready_hash() 1280 .halg.digestsize = SHA1_DIGEST_SIZE, 1698 ctx->hash_size = SHA1_DIGEST_SIZE; in atmel_sha_hmac_setup() 2069 .halg.digestsize = SHA1_DIGEST_SIZE, 2358 authctx->digestlen = SHA1_DIGEST_SIZE; in atmel_sha_authenc_final()
|
| /linux/drivers/crypto/qce/ |
| H A D | sha.c | 351 if (digestsize == SHA1_DIGEST_SIZE) in qce_ahash_hmac_setkey() 418 .digestsize = SHA1_DIGEST_SIZE, 436 .digestsize = SHA1_DIGEST_SIZE,
|
| /linux/drivers/nfc/s3fwrn5/ |
| H A D | firmware.c | 412 u8 hash_data[SHA1_DIGEST_SIZE]; in s3fwrn5_fw_download() 426 SHA1_DIGEST_SIZE, fw_info->sig, fw_info->sig_size); in s3fwrn5_fw_download()
|
| /linux/security/integrity/ |
| H A D | integrity.h | 46 u8 digest[SHA1_DIGEST_SIZE];
|
| /linux/drivers/crypto/aspeed/ |
| H A D | aspeed-hace-hash.c | 548 case SHA1_DIGEST_SIZE: in aspeed_sham_init() 551 rctx->digsize = SHA1_DIGEST_SIZE; in aspeed_sham_init() 631 .digestsize = 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/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()
|
| /linux/drivers/crypto/ccp/ |
| H A D | ccp-crypto-sha.c | 141 rctx->cmd.u.sha.ctx_len = SHA1_DIGEST_SIZE; in ccp_do_sha_update() 374 .digest_size = 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,
|
| /linux/tools/testing/selftests/tpm2/ |
| H A D | tpm2.py | 69 SHA1_DIGEST_SIZE = 20 variable 188 TPM2_ALG_SHA1: SHA1_DIGEST_SIZE,
|