Searched refs:leftover (Results 1 – 5 of 5) sorted by relevance
/hal_espressif-3.6.0/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/ |
D | sha256.c | 76 s->leftover[s->leftover_offset++] = *(data++); in tc_sha256_update() 78 compress(s->iv, s->leftover); in tc_sha256_update() 99 s->leftover[s->leftover_offset++] = 0x80; /* always room for one byte */ in tc_sha256_final() 100 if (s->leftover_offset > (sizeof(s->leftover) - 8)) { in tc_sha256_final() 102 _set(s->leftover + s->leftover_offset, 0x00, in tc_sha256_final() 103 sizeof(s->leftover) - s->leftover_offset); in tc_sha256_final() 104 compress(s->iv, s->leftover); in tc_sha256_final() 109 _set(s->leftover + s->leftover_offset, 0x00, in tc_sha256_final() 110 sizeof(s->leftover) - 8 - s->leftover_offset); in tc_sha256_final() 111 s->leftover[sizeof(s->leftover) - 1] = (uint8_t)(s->bits_hashed); in tc_sha256_final() [all …]
|
D | cmac_mode.c | 148 _set(s->leftover, 0, TC_AES_BLOCK_SIZE); in tc_cmac_init() 184 _copy(&s->leftover[s->leftover_offset], data_length, data, data_length); in tc_cmac_update() 189 _copy(&s->leftover[s->leftover_offset], in tc_cmac_update() 198 s->iv[i] ^= s->leftover[i]; in tc_cmac_update() 215 _copy(s->leftover, data_length, data, data_length); in tc_cmac_update() 240 _set(&s->leftover[s->leftover_offset], 0, remaining); in tc_cmac_final() 241 s->leftover[s->leftover_offset] = TC_CMAC_PADDING; in tc_cmac_final() 245 s->iv[i] ^= s->leftover[i] ^ k[i]; in tc_cmac_final()
|
/hal_espressif-3.6.0/components/mbedtls/port/aes/ |
D | esp_aes_xts.c | 191 size_t leftover = length % 16; in esp_aes_crypt_xts() local 216 if ( leftover && ( mode == MBEDTLS_AES_DECRYPT ) && blocks == 0 ) { in esp_aes_crypt_xts() 246 if ( leftover ) { in esp_aes_crypt_xts() 260 for ( i = 0; i < leftover; i++ ) { in esp_aes_crypt_xts()
|
/hal_espressif-3.6.0/components/bt/esp_ble_mesh/mesh_common/tinycrypt/include/tinycrypt/ |
D | sha256.h | 74 uint8_t leftover[TC_SHA256_BLOCK_SIZE]; member
|
D | cmac_mode.h | 120 uint8_t leftover[TC_AES_BLOCK_SIZE]; member
|