Home
last modified time | relevance | path

Searched refs:TC_SHA256_DIGEST_SIZE (Results 1 – 6 of 6) sorted by relevance

/mcuboot-latest/ext/tinycrypt/lib/source/
Dhmac.c78 (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()
Dhmac_prng.c199 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/
Dsha256.h68 #define TC_SHA256_DIGEST_SIZE (32) macro
69 #define TC_SHA256_STATE_BLOCKS (TC_SHA256_DIGEST_SIZE/4)
Dhmac_prng.h84 uint8_t key[TC_SHA256_DIGEST_SIZE];
86 uint8_t v[TC_SHA256_DIGEST_SIZE];
/mcuboot-latest/ext/tinycrypt/tests/
Dtest_ecc_dsa.c86 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()
Dtest_hmac.c60 (void)tc_hmac_final(digest, TC_SHA256_DIGEST_SIZE, h); in do_hmac_test()