Lines Matching refs:t
145 int esp_sha_512_t_init_hash(uint16_t t) in esp_sha_512_t_init_hash() argument
150 if (t == 384) { in esp_sha_512_t_init_hash()
151 ESP_LOGE(TAG, "Invalid t for SHA512/t, t = %u,cannot be 384", t); in esp_sha_512_t_init_hash()
155 if (t <= 9) { in esp_sha_512_t_init_hash()
156 t_string = (uint32_t)((1 << 23) | ((0x30 + t) << 24)); in esp_sha_512_t_init_hash()
158 } else if (t <= 99) { in esp_sha_512_t_init_hash()
159 t0 = t % 10; in esp_sha_512_t_init_hash()
160 t1 = (t / 10) % 10; in esp_sha_512_t_init_hash()
164 } else if (t <= 512) { in esp_sha_512_t_init_hash()
165 t0 = t % 10; in esp_sha_512_t_init_hash()
166 t1 = (t / 10) % 10; in esp_sha_512_t_init_hash()
167 t2 = t / 100; in esp_sha_512_t_init_hash()
172 ESP_LOGE(TAG, "Invalid t for SHA512/t, t = %u, must equal or less than 512", t); in esp_sha_512_t_init_hash()