Searched refs:SHA1_DIGEST_SIZE (Results 1 - 39 of 39) sorted by relevance

/linux-4.1.27/security/keys/
H A Dtrusted.c127 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 Dtrusted.h29 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 Dsha.h10 #define SHA1_DIGEST_SIZE 20 macro
68 u32 state[SHA1_DIGEST_SIZE / 4];
H A Dsha1_base.h101 for (i = 0; i < SHA1_DIGEST_SIZE / sizeof(__be32); i++) sha1_base_finish()
/linux-4.1.27/crypto/
H A Dhash_info.c40 [HASH_ALGO_SHA1] = SHA1_DIGEST_SIZE,
H A Dsha1_generic.c63 .digestsize = SHA1_DIGEST_SIZE,
/linux-4.1.27/arch/arm/crypto/
H A Dsha1-ce-glue.c72 .digestsize = SHA1_DIGEST_SIZE,
H A Dsha1_glue.c60 .digestsize = SHA1_DIGEST_SIZE,
H A Dsha1_neon_glue.c76 .digestsize = SHA1_DIGEST_SIZE,
/linux-4.1.27/arch/s390/crypto/
H A Dsha1_s390.c73 .digestsize = SHA1_DIGEST_SIZE,
/linux-4.1.27/arch/arm64/crypto/
H A Dsha1-ce-glue.c92 .digestsize = SHA1_DIGEST_SIZE,
/linux-4.1.27/drivers/crypto/
H A Dpadlock-sha.c121 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 Datmel-sha.c284 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 Dixp4xx_crypto.c470 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 Dmv_cesa.c130 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 Domap-sham.c337 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 Dimg-hash.c617 case SHA1_DIGEST_SIZE: img_hash_digest()
739 .digestsize = SHA1_DIGEST_SIZE,
H A Dn2_core.c1289 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 Dsahara.c1177 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 Dmxs-dcp.c838 .digestsize = SHA1_DIGEST_SIZE,
H A Dtalitos.c1928 .maxauthsize = SHA1_DIGEST_SIZE,
1947 .maxauthsize = SHA1_DIGEST_SIZE,
2208 .halg.digestsize = SHA1_DIGEST_SIZE,
2298 .halg.digestsize = SHA1_DIGEST_SIZE,
H A Dpicoxcell_crypto.c1483 .maxauthsize = SHA1_DIGEST_SIZE,
1571 .maxauthsize = SHA1_DIGEST_SIZE,
/linux-4.1.27/arch/powerpc/crypto/
H A Dsha1.c124 .digestsize = SHA1_DIGEST_SIZE,
H A Dsha1-spe-glue.c175 .digestsize = SHA1_DIGEST_SIZE,
/linux-4.1.27/security/integrity/ima/
H A Dima_init.c69 iint->ima_hash->length = SHA1_DIGEST_SIZE; ima_add_boot_aggregate()
H A Dima.h34 #define IMA_DIGEST_SIZE SHA1_DIGEST_SIZE
/linux-4.1.27/drivers/crypto/ux500/hash/
H A Dhash_core.c47 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 Dsha.c389 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 Dsha1_glue.c130 .digestsize = SHA1_DIGEST_SIZE,
/linux-4.1.27/arch/x86/crypto/
H A Dsha1_ssse3_glue.c107 .digestsize = SHA1_DIGEST_SIZE,
/linux-4.1.27/arch/mips/cavium-octeon/crypto/
H A Docteon-sha1.c206 .digestsize = SHA1_DIGEST_SIZE,
/linux-4.1.27/lib/
H A Ddigsig.c195 unsigned char hash[SHA1_DIGEST_SIZE]; digsig_verify()
/linux-4.1.27/security/integrity/
H A Dintegrity.h69 u8 digest[SHA1_DIGEST_SIZE];
/linux-4.1.27/arch/x86/crypto/sha-mb/
H A Dsha1_mb.c680 .digestsize = SHA1_DIGEST_SIZE,
803 .digestsize = SHA1_DIGEST_SIZE,
/linux-4.1.27/drivers/crypto/ccp/
H A Dccp-crypto-sha.c346 .digest_size = SHA1_DIGEST_SIZE,
H A Dccp-ops.c1506 digest_size = SHA1_DIGEST_SIZE; ccp_run_sha_cmd()
/linux-4.1.27/drivers/crypto/caam/
H A Dcaamalg.c3427 .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 Dcaamhash.c1628 .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 Dqat_algs.c1202 .maxauthsize = SHA1_DIGEST_SIZE,

Completed in 537 milliseconds