Searched refs:TC_SHA256_DIGEST_SIZE (Results 1 – 6 of 6) sorted by relevance
/mcuboot-latest/ext/tinycrypt/lib/source/ |
D | hmac.c | 78 (void)tc_sha256_final(&dummy_state.key[TC_SHA256_DIGEST_SIZE], in tc_hmac_set_key() 86 (void)tc_sha256_final(&ctx->key[TC_SHA256_DIGEST_SIZE], in tc_hmac_set_key() 89 &ctx->key[TC_SHA256_DIGEST_SIZE], in tc_hmac_set_key() 90 TC_SHA256_DIGEST_SIZE); in tc_hmac_set_key() 130 taglen != TC_SHA256_DIGEST_SIZE || in tc_hmac_final() 141 (void)tc_sha256_update(&ctx->hash_state, tag, TC_SHA256_DIGEST_SIZE); in tc_hmac_final()
|
D | hmac_prng.c | 199 bufferlen = (TC_SHA256_DIGEST_SIZE > outlen) ? in tc_hmac_prng_generate() 200 outlen : TC_SHA256_DIGEST_SIZE; in tc_hmac_prng_generate() 204 outlen = (outlen > TC_SHA256_DIGEST_SIZE) ? in tc_hmac_prng_generate() 205 (outlen - TC_SHA256_DIGEST_SIZE) : 0; in tc_hmac_prng_generate() 209 update(prng, prng->v, TC_SHA256_DIGEST_SIZE); in tc_hmac_prng_generate()
|
/mcuboot-latest/ext/tinycrypt/lib/include/tinycrypt/ |
D | sha256.h | 68 #define TC_SHA256_DIGEST_SIZE (32) macro 69 #define TC_SHA256_STATE_BLOCKS (TC_SHA256_DIGEST_SIZE/4)
|
D | hmac_prng.h | 84 uint8_t key[TC_SHA256_DIGEST_SIZE]; 86 uint8_t v[TC_SHA256_DIGEST_SIZE];
|
/mcuboot-latest/ext/tinycrypt/tests/ |
D | test_ecc_dsa.c | 86 unsigned int digest[TC_SHA256_DIGEST_SIZE / 4]; in sign_vectors() 87 uint8_t digest_bytes[TC_SHA256_DIGEST_SIZE]; in sign_vectors() 124 int hash_dwords = TC_SHA256_DIGEST_SIZE / 4; in sign_vectors() 131 digest_bytes, TC_SHA256_DIGEST_SIZE); in sign_vectors() 352 uint8_t digest_bytes[TC_SHA256_DIGEST_SIZE]; in vrfy_vectors() 353 unsigned int digest[TC_SHA256_DIGEST_SIZE / 4]; in vrfy_vectors() 391 int hash_dwords = TC_SHA256_DIGEST_SIZE / 4; in vrfy_vectors() 398 TC_SHA256_DIGEST_SIZE); in vrfy_vectors()
|
D | test_hmac.c | 60 (void)tc_hmac_final(digest, TC_SHA256_DIGEST_SIZE, h); in do_hmac_test()
|