Searched refs:TC_SHA256_BLOCK_SIZE (Results 1 – 5 of 5) sorted by relevance
45 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()
77 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()
67 #define TC_SHA256_BLOCK_SIZE (64) macro74 uint8_t leftover[TC_SHA256_BLOCK_SIZE];
76 uint8_t key[2*TC_SHA256_BLOCK_SIZE];
42 #define BOOTUTIL_CRYPTO_SHA256_BLOCK_SIZE TC_SHA256_BLOCK_SIZE