/linux-4.1.27/security/keys/ |
H A D | trusted.c | 127 unsigned char paramdigest[SHA1_DIGEST_SIZE]; TSS_authhmac() 163 ret = TSS_rawhmac(digest, key, keylen, SHA1_DIGEST_SIZE, TSS_authhmac() 187 unsigned char testhmac[SHA1_DIGEST_SIZE]; TSS_checkhmac1() 188 unsigned char paramdigest[SHA1_DIGEST_SIZE]; TSS_checkhmac1() 203 authdata = buffer + bufsize - SHA1_DIGEST_SIZE; TSS_checkhmac1() 239 ret = TSS_rawhmac(testhmac, key, keylen, SHA1_DIGEST_SIZE, paramdigest, TSS_checkhmac1() 245 if (memcmp(testhmac, authdata, SHA1_DIGEST_SIZE)) TSS_checkhmac1() 273 unsigned char testhmac1[SHA1_DIGEST_SIZE]; TSS_checkhmac2() 274 unsigned char testhmac2[SHA1_DIGEST_SIZE]; TSS_checkhmac2() 275 unsigned char paramdigest[SHA1_DIGEST_SIZE]; TSS_checkhmac2() 291 authdata1 = buffer + bufsize - (SHA1_DIGEST_SIZE + 1 TSS_checkhmac2() 292 + SHA1_DIGEST_SIZE + SHA1_DIGEST_SIZE); TSS_checkhmac2() 293 authdata2 = buffer + bufsize - (SHA1_DIGEST_SIZE); TSS_checkhmac2() 332 ret = TSS_rawhmac(testhmac1, key1, keylen1, SHA1_DIGEST_SIZE, TSS_checkhmac2() 337 if (memcmp(testhmac1, authdata1, SHA1_DIGEST_SIZE)) { TSS_checkhmac2() 341 ret = TSS_rawhmac(testhmac2, key2, keylen2, SHA1_DIGEST_SIZE, TSS_checkhmac2() 346 if (memcmp(testhmac2, authdata2, SHA1_DIGEST_SIZE)) TSS_checkhmac2() 379 unsigned char hash[SHA1_DIGEST_SIZE]; pcrlock() 384 ret = tpm_get_random(TPM_ANY_NUM, hash, SHA1_DIGEST_SIZE); pcrlock() 385 if (ret != SHA1_DIGEST_SIZE) pcrlock() 421 return TSS_rawhmac(s->secret, key, SHA1_DIGEST_SIZE, TPM_NONCE_SIZE, osap() 447 unsigned char encauth[SHA1_DIGEST_SIZE]; 448 unsigned char pubauth[SHA1_DIGEST_SIZE]; 449 unsigned char xorwork[SHA1_DIGEST_SIZE * 2]; 450 unsigned char xorhash[SHA1_DIGEST_SIZE]; 489 memcpy(td->xorwork, sess.secret, SHA1_DIGEST_SIZE); tpm_seal() 490 memcpy(td->xorwork + SHA1_DIGEST_SIZE, sess.enonce, SHA1_DIGEST_SIZE); tpm_seal() 491 ret = TSS_sha1(td->xorwork, SHA1_DIGEST_SIZE * 2, td->xorhash); tpm_seal() 504 for (i = 0; i < SHA1_DIGEST_SIZE; ++i) tpm_seal() 510 ret = TSS_authhmac(td->pubauth, sess.secret, SHA1_DIGEST_SIZE, tpm_seal() 512 sizeof(uint32_t), &ordinal, SHA1_DIGEST_SIZE, tpm_seal() 518 ret = TSS_authhmac(td->pubauth, sess.secret, SHA1_DIGEST_SIZE, tpm_seal() 520 sizeof(uint32_t), &ordinal, SHA1_DIGEST_SIZE, tpm_seal() 534 storebytes(tb, td->encauth, SHA1_DIGEST_SIZE); tpm_seal() 542 storebytes(tb, td->pubauth, SHA1_DIGEST_SIZE); tpm_seal() 557 SHA1_DIGEST_SIZE, storedsize, TPM_DATA_OFFSET, 0, tpm_seal() 582 unsigned char authdata1[SHA1_DIGEST_SIZE]; tpm_unseal() 583 unsigned char authdata2[SHA1_DIGEST_SIZE]; tpm_unseal() 631 storebytes(tb, authdata1, SHA1_DIGEST_SIZE); tpm_unseal() 635 storebytes(tb, authdata2, SHA1_DIGEST_SIZE); tpm_unseal() 645 keyauth, SHA1_DIGEST_SIZE, tpm_unseal() 646 blobauth, SHA1_DIGEST_SIZE, tpm_unseal() 763 if (strlen(args[0].from) != 2 * SHA1_DIGEST_SIZE) getoptions() 766 SHA1_DIGEST_SIZE); getoptions() 771 if (strlen(args[0].from) != 2 * SHA1_DIGEST_SIZE) getoptions() 774 SHA1_DIGEST_SIZE); getoptions()
|
H A D | trusted.h | 29 unsigned char secret[SHA1_DIGEST_SIZE]; 42 unsigned char keyauth[SHA1_DIGEST_SIZE]; 43 unsigned char blobauth[SHA1_DIGEST_SIZE]; 79 16, 1, &s->secret, SHA1_DIGEST_SIZE, 0); dump_sess() 82 16, 1, &s->enonce, SHA1_DIGEST_SIZE, 0); dump_sess()
|
/linux-4.1.27/include/crypto/ |
H A D | sha.h | 10 #define SHA1_DIGEST_SIZE 20 macro 68 u32 state[SHA1_DIGEST_SIZE / 4];
|
H A D | sha1_base.h | 101 for (i = 0; i < SHA1_DIGEST_SIZE / sizeof(__be32); i++) sha1_base_finish()
|
/linux-4.1.27/crypto/ |
H A D | hash_info.c | 40 [HASH_ALGO_SHA1] = SHA1_DIGEST_SIZE,
|
H A D | sha1_generic.c | 63 .digestsize = SHA1_DIGEST_SIZE,
|
/linux-4.1.27/arch/arm/crypto/ |
H A D | sha1-ce-glue.c | 72 .digestsize = SHA1_DIGEST_SIZE,
|
H A D | sha1_glue.c | 60 .digestsize = SHA1_DIGEST_SIZE,
|
H A D | sha1_neon_glue.c | 76 .digestsize = SHA1_DIGEST_SIZE,
|
/linux-4.1.27/arch/s390/crypto/ |
H A D | sha1_s390.c | 73 .digestsize = SHA1_DIGEST_SIZE,
|
/linux-4.1.27/arch/arm64/crypto/ |
H A D | sha1-ce-glue.c | 92 .digestsize = SHA1_DIGEST_SIZE,
|
/linux-4.1.27/drivers/crypto/ |
H A D | padlock-sha.c | 121 memcpy(result, &state.state, SHA1_DIGEST_SIZE); padlock_sha1_finup() 245 .digestsize = SHA1_DIGEST_SIZE, 321 memcpy(dst, (u8 *)(sctx->state), SHA1_DIGEST_SIZE); padlock_sha1_update_nano() 353 memcpy((u8 *)(sctx->state), dst, SHA1_DIGEST_SIZE); padlock_sha1_update_nano() 493 .digestsize = SHA1_DIGEST_SIZE,
|
H A D | atmel-sha.c | 284 case SHA1_DIGEST_SIZE: atmel_sha_init() 719 for (i = 0; i < SHA1_DIGEST_SIZE / sizeof(u32); i++) atmel_sha_copy_hash() 743 memcpy(req->result, ctx->digest, SHA1_DIGEST_SIZE); atmel_sha_copy_ready_hash() 1000 .digestsize = SHA1_DIGEST_SIZE,
|
H A D | ixp4xx_crypto.c | 470 BUILD_BUG_ON(SHA1_DIGEST_SIZE > sizeof(struct buffer_desc)); init_ixp_crypto() 1353 .maxauthsize = SHA1_DIGEST_SIZE, 1366 .maxauthsize = SHA1_DIGEST_SIZE, 1392 .maxauthsize = SHA1_DIGEST_SIZE,
|
H A D | mv_cesa.c | 130 u32 ivs[2 * SHA1_DIGEST_SIZE / 4]; 137 u32 state[SHA1_DIGEST_SIZE / 4]; 980 .digestsize = SHA1_DIGEST_SIZE, 1005 .digestsize = SHA1_DIGEST_SIZE,
|
H A D | omap-sham.c | 337 d = SHA1_DIGEST_SIZE / sizeof(u32); omap_sham_copy_ready_hash() 861 case SHA1_DIGEST_SIZE: omap_sham_init() 1323 .halg.digestsize = SHA1_DIGEST_SIZE, 1370 .halg.digestsize = SHA1_DIGEST_SIZE, 1695 .digest_size = SHA1_DIGEST_SIZE,
|
H A D | img-hash.c | 617 case SHA1_DIGEST_SIZE: img_hash_digest() 739 .digestsize = SHA1_DIGEST_SIZE,
|
H A D | n2_core.c | 1289 static const char sha1_zero[SHA1_DIGEST_SIZE] = { 1294 static const u32 sha1_init[SHA1_DIGEST_SIZE / 4] = { 1332 .hw_op_hashsz = SHA1_DIGEST_SIZE, 1333 .digest_size = SHA1_DIGEST_SIZE,
|
H A D | sahara.c | 1177 case SHA1_DIGEST_SIZE: sahara_sha_init() 1179 rctx->digest_size = SHA1_DIGEST_SIZE; sahara_sha_init() 1326 .halg.digestsize = SHA1_DIGEST_SIZE,
|
H A D | mxs-dcp.c | 838 .digestsize = SHA1_DIGEST_SIZE,
|
H A D | talitos.c | 1928 .maxauthsize = SHA1_DIGEST_SIZE, 1947 .maxauthsize = SHA1_DIGEST_SIZE, 2208 .halg.digestsize = SHA1_DIGEST_SIZE, 2298 .halg.digestsize = SHA1_DIGEST_SIZE,
|
H A D | picoxcell_crypto.c | 1483 .maxauthsize = SHA1_DIGEST_SIZE, 1571 .maxauthsize = SHA1_DIGEST_SIZE,
|
/linux-4.1.27/arch/powerpc/crypto/ |
H A D | sha1.c | 124 .digestsize = SHA1_DIGEST_SIZE,
|
H A D | sha1-spe-glue.c | 175 .digestsize = SHA1_DIGEST_SIZE,
|
/linux-4.1.27/security/integrity/ima/ |
H A D | ima_init.c | 69 iint->ima_hash->length = SHA1_DIGEST_SIZE; ima_add_boot_aggregate()
|
H A D | ima.h | 34 #define IMA_DIGEST_SIZE SHA1_DIGEST_SIZE
|
/linux-4.1.27/drivers/crypto/ux500/hash/ |
H A D | hash_core.c | 47 static const u8 zero_message_hash_sha1[SHA1_DIGEST_SIZE] = { 61 static const u8 zero_message_hmac_sha1[SHA1_DIGEST_SIZE] = { 246 SHA1_DIGEST_SIZE); get_empty_message_digest() 247 *zero_hash_size = SHA1_DIGEST_SIZE; get_empty_message_digest() 265 SHA1_DIGEST_SIZE); get_empty_message_digest() 266 *zero_hash_size = SHA1_DIGEST_SIZE; get_empty_message_digest() 1286 loop_ctr = SHA1_DIGEST_SIZE / sizeof(u32); hash_get_digest() 1374 ctx->digestsize = SHA1_DIGEST_SIZE; ahash_sha1_init() 1430 ctx->digestsize = SHA1_DIGEST_SIZE; hmac_sha1_init() 1526 .halg.digestsize = SHA1_DIGEST_SIZE, 1572 .halg.digestsize = SHA1_DIGEST_SIZE,
|
/linux-4.1.27/drivers/crypto/qce/ |
H A D | sha.c | 389 if (digestsize == SHA1_DIGEST_SIZE) qce_ahash_hmac_setkey() 465 .digestsize = SHA1_DIGEST_SIZE, 483 .digestsize = SHA1_DIGEST_SIZE,
|
/linux-4.1.27/arch/sparc/crypto/ |
H A D | sha1_glue.c | 130 .digestsize = SHA1_DIGEST_SIZE,
|
/linux-4.1.27/arch/x86/crypto/ |
H A D | sha1_ssse3_glue.c | 107 .digestsize = SHA1_DIGEST_SIZE,
|
/linux-4.1.27/arch/mips/cavium-octeon/crypto/ |
H A D | octeon-sha1.c | 206 .digestsize = SHA1_DIGEST_SIZE,
|
/linux-4.1.27/lib/ |
H A D | digsig.c | 195 unsigned char hash[SHA1_DIGEST_SIZE]; digsig_verify()
|
/linux-4.1.27/security/integrity/ |
H A D | integrity.h | 69 u8 digest[SHA1_DIGEST_SIZE];
|
/linux-4.1.27/arch/x86/crypto/sha-mb/ |
H A D | sha1_mb.c | 680 .digestsize = SHA1_DIGEST_SIZE, 803 .digestsize = SHA1_DIGEST_SIZE,
|
/linux-4.1.27/drivers/crypto/ccp/ |
H A D | ccp-crypto-sha.c | 346 .digest_size = SHA1_DIGEST_SIZE,
|
H A D | ccp-ops.c | 1506 digest_size = SHA1_DIGEST_SIZE; ccp_run_sha_cmd()
|
/linux-4.1.27/drivers/crypto/caam/ |
H A D | caamalg.c | 3427 .maxauthsize = SHA1_DIGEST_SIZE, 3545 .maxauthsize = SHA1_DIGEST_SIZE, 3664 .maxauthsize = SHA1_DIGEST_SIZE, 3782 .maxauthsize = SHA1_DIGEST_SIZE, 3900 .maxauthsize = SHA1_DIGEST_SIZE,
|
H A D | caamhash.c | 1628 .digestsize = SHA1_DIGEST_SIZE, 1761 HASH_MSG_LEN + SHA1_DIGEST_SIZE, caam_hash_cra_init()
|
/linux-4.1.27/drivers/crypto/qat/qat_common/ |
H A D | qat_algs.c | 1202 .maxauthsize = SHA1_DIGEST_SIZE,
|