Home
last modified time | relevance | path

Searched refs:SHA512_DIGEST_SIZE (Results 1 – 24 of 24) sorted by relevance

/external/vboot_reference/firmware/lib/cryptolib/
Dpadding.c48 const uint8_t paddingRSA1024_SHA512[RSA1024NUMBYTES - SHA512_DIGEST_SIZE] = {
63 const uint8_t paddingRSA2048_SHA512[RSA2048NUMBYTES - SHA512_DIGEST_SIZE] = {
78 const uint8_t paddingRSA4096_SHA512[RSA4096NUMBYTES - SHA512_DIGEST_SIZE] = {
93 const uint8_t paddingRSA8192_SHA512[RSA8192NUMBYTES - SHA512_DIGEST_SIZE] = {
169 RSA1024NUMBYTES - SHA512_DIGEST_SIZE,
172 RSA2048NUMBYTES - SHA512_DIGEST_SIZE,
175 RSA4096NUMBYTES - SHA512_DIGEST_SIZE,
178 RSA8192NUMBYTES - SHA512_DIGEST_SIZE,
199 SHA512_DIGEST_SIZE,
202 SHA512_DIGEST_SIZE,
[all …]
Dsha_utility.c71 digest = (uint8_t*) VbExMalloc(SHA512_DIGEST_SIZE); in DigestFinal()
72 Memcpy(digest, SHA512_final(ctx->sha512_ctx), SHA512_DIGEST_SIZE); in DigestFinal()
82 uint8_t* digest = (uint8_t*) VbExMalloc(SHA512_DIGEST_SIZE); in DigestBuf()
Dsha512.c361 for (i = 0; i < SHA512_DIGEST_SIZE; ++i) { in internal_SHA512()
/external/vboot_reference/host/lib/
Dhost_keyblock.c21 uint64_t block_size = (signed_size + SHA512_DIGEST_SIZE + in KeyBlockCreate()
35 block_sig_dest = block_chk_dest + SHA512_DIGEST_SIZE; in KeyBlockCreate()
49 SHA512_DIGEST_SIZE, signed_size); in KeyBlockCreate()
82 uint64_t block_size = (signed_size + SHA512_DIGEST_SIZE + in KeyBlockCreate_external()
98 block_sig_dest = block_chk_dest + SHA512_DIGEST_SIZE; in KeyBlockCreate_external()
112 SHA512_DIGEST_SIZE, signed_size); in KeyBlockCreate_external()
Dhost_signature.c63 sig = SignatureAlloc(SHA512_DIGEST_SIZE, 0); in CalculateChecksum()
69 sig->sig_size = SHA512_DIGEST_SIZE; in CalculateChecksum()
73 Memcpy(GetSignatureData(sig), header_checksum, SHA512_DIGEST_SIZE); in CalculateChecksum()
/external/mmc-utils/3rdparty/hmac_sha/
Dhmac_sha2.c309 unsigned char key_temp[SHA512_DIGEST_SIZE]; in hmac_sha512_init()
317 num = SHA512_DIGEST_SIZE; in hmac_sha512_init()
366 unsigned char digest_inside[SHA512_DIGEST_SIZE]; in hmac_sha512_final()
367 unsigned char mac_temp[SHA512_DIGEST_SIZE]; in hmac_sha512_final()
370 sha512_update(&ctx->ctx_outside, digest_inside, SHA512_DIGEST_SIZE); in hmac_sha512_final()
396 char output[2 * SHA512_DIGEST_SIZE + 1]; in test()
475 unsigned char mac[SHA512_DIGEST_SIZE]; in main()
520 mac_512_size = SHA512_DIGEST_SIZE; in main()
Dsha2.h44 #define SHA512_DIGEST_SIZE ( 512 / 8) macro
Dsha2.c838 char output[2 * SHA512_DIGEST_SIZE + 1]; in test()
897 unsigned char digest[SHA512_DIGEST_SIZE]; in main()
940 test(vectors[3][0], digest, SHA512_DIGEST_SIZE); in main()
942 test(vectors[3][1], digest, SHA512_DIGEST_SIZE); in main()
944 test(vectors[3][2], digest, SHA512_DIGEST_SIZE); in main()
/external/vboot_reference/tests/
Dsha_tests.c62 uint8_t sha512_digest[SHA512_DIGEST_SIZE]; in SHA512_tests()
71 if (!memcmp(sha512_digest, sha512_results[i], SHA512_DIGEST_SIZE)) { in SHA512_tests()
Dsha_test_vectors.h60 uint8_t sha512_results[][SHA512_DIGEST_SIZE] = {
Dsha_benchmark.c35 uint8_t* digest = (uint8_t*) malloc(SHA512_DIGEST_SIZE); /* Maximum size of in main()
Dvboot_common3_tests.c26 SHA512_DIGEST_SIZE); in ReChecksumKeyBlock()
/external/vboot_reference/firmware/lib/cryptolib/include/
Dsha.h23 #define SHA512_DIGEST_SIZE 64 macro
52 uint8_t buf[SHA512_DIGEST_SIZE]; /* Used for storing the final digest. */
/external/tpm2/
DCpriHashData.c28 {TPM_ALG_SHA512, SHA512_DIGEST_SIZE, SHA512_BLOCK_SIZE,
DGlobal.h376 BYTE sha512[NUM_STATIC_PCR][SHA512_DIGEST_SIZE];
1111 BYTE sha512Pcr[SHA512_DIGEST_SIZE];
DImplementation.h488 #define SHA512_DIGEST_SIZE 64 macro
871 MAX(ALG_SHA512 * SHA512_DIGEST_SIZE, \
Dtpm_types.h607 BYTE sha512[SHA512_DIGEST_SIZE];
Dtpm_generated.c5367 for (i = 0; i < SHA512_DIGEST_SIZE; ++i) { in TPMU_HA_Marshal()
5436 for (i = 0; i < SHA512_DIGEST_SIZE; ++i) { in TPMU_HA_Unmarshal()
Dpart4.txt1974 235 BYTE sha512[NUM_STATIC_PCR][SHA512_DIGEST_SIZE];
2836 705 BYTE sha512Pcr[SHA512_DIGEST_SIZE];
24696 417 #define SHA512_DIGEST_SIZE 64
25112 785 MAX(ALG_SHA512 * SHA512_DIGEST_SIZE, \
27553 19 {TPM_ALG_SHA512, SHA512_DIGEST_SIZE, SHA512_BLOCK_SIZE,
/external/vboot_reference/firmware/lib/
Dvboot_common.c231 if (sig->sig_size != SHA512_DIGEST_SIZE) { in KeyBlockVerify()
247 SHA512_DIGEST_SIZE); in KeyBlockVerify()
/external/fio/crc/
Dsha512.c21 #define SHA512_DIGEST_SIZE 64 macro
/external/tpm2/generator/
Dstructures.txt1578 _NAME sha512 _ARRAY SHA512_DIGEST_SIZE
Draw_structures_fixed.txt10278 sha512 [SHA512_DIGEST_SIZE]
16257 SHA512_DIGEST_SIZE
Draw_structures.txt10265 sha512 [SHA512_DIGEST_SIZE]
16286 SHA512_DIGEST_SIZE