Home
last modified time | relevance | path

Searched refs:TC_SHA256_BLOCK_SIZE (Results 1 – 5 of 5) sorted by relevance

/mcuboot-3.4.0/ext/tinycrypt/lib/source/
Dhmac.c45 key[i + TC_SHA256_BLOCK_SIZE] = outer_pad ^ new_key[i]; in rekey()
47 for (; i < TC_SHA256_BLOCK_SIZE; ++i) { in rekey()
48 key[i] = inner_pad; key[i + TC_SHA256_BLOCK_SIZE] = outer_pad; in rekey()
66 if (key_size <= TC_SHA256_BLOCK_SIZE) { in tc_hmac_set_key()
105 (void) tc_sha256_update(&ctx->hash_state, ctx->key, TC_SHA256_BLOCK_SIZE); in tc_hmac_init()
139 &ctx->key[TC_SHA256_BLOCK_SIZE], in tc_hmac_final()
140 TC_SHA256_BLOCK_SIZE); in tc_hmac_final()
Dsha256.c77 if (s->leftover_offset >= TC_SHA256_BLOCK_SIZE) { in tc_sha256_update()
80 s->bits_hashed += (TC_SHA256_BLOCK_SIZE << 3); in tc_sha256_update()
/mcuboot-3.4.0/ext/tinycrypt/lib/include/tinycrypt/
Dsha256.h67 #define TC_SHA256_BLOCK_SIZE (64) macro
74 uint8_t leftover[TC_SHA256_BLOCK_SIZE];
Dhmac.h76 uint8_t key[2*TC_SHA256_BLOCK_SIZE];
/mcuboot-3.4.0/boot/bootutil/include/bootutil/crypto/
Dsha256.h42 #define BOOTUTIL_CRYPTO_SHA256_BLOCK_SIZE TC_SHA256_BLOCK_SIZE