Home
last modified time | relevance | path

Searched refs:block_nb (Results 1 – 4 of 4) sorted by relevance

/external/vboot_reference/firmware/2lib/
D2sha256.c131 unsigned int block_nb) in vb2_sha256_transform() argument
144 for (i = 0; i < (int) block_nb; i++) { in vb2_sha256_transform()
250 unsigned int block_nb; in vb2_sha256_update() local
265 block_nb = new_size / VB2_SHA256_BLOCK_SIZE; in vb2_sha256_update()
270 vb2_sha256_transform(ctx, shifted_data, block_nb); in vb2_sha256_update()
274 memcpy(ctx->block, &shifted_data[block_nb << 6], in vb2_sha256_update()
278 ctx->total_size += (block_nb + 1) << 6; in vb2_sha256_update()
283 unsigned int block_nb; in vb2_sha256_finalize() local
290 block_nb = (1 + ((VB2_SHA256_BLOCK_SIZE - 9) in vb2_sha256_finalize()
294 pm_size = block_nb << 6; in vb2_sha256_finalize()
[all …]
D2sha512.c174 unsigned int block_nb) in vb2_sha512_transform() argument
183 for (i = 0; i < (int) block_nb; i++) { in vb2_sha512_transform()
280 unsigned int block_nb; in vb2_sha512_update() local
295 block_nb = new_size / VB2_SHA512_BLOCK_SIZE; in vb2_sha512_update()
300 vb2_sha512_transform(ctx, shifted_data, block_nb); in vb2_sha512_update()
304 memcpy(ctx->block, &shifted_data[block_nb << 7], in vb2_sha512_update()
308 ctx->total_size += (block_nb + 1) << 7; in vb2_sha512_update()
313 unsigned int block_nb; in vb2_sha512_finalize() local
321 block_nb = 1 + ((VB2_SHA512_BLOCK_SIZE - 17) in vb2_sha512_finalize()
325 pm_size = block_nb << 7; in vb2_sha512_finalize()
[all …]
/external/vboot_reference/firmware/lib/cryptolib/
Dsha256.c130 unsigned int block_nb) { in SHA256_transform() argument
141 for (i = 0; i < (int) block_nb; i++) { in SHA256_transform()
246 unsigned int block_nb; in SHA256_update() local
261 block_nb = new_len / SHA256_BLOCK_SIZE; in SHA256_update()
266 SHA256_transform(ctx, shifted_data, block_nb); in SHA256_update()
270 Memcpy(ctx->block, &shifted_data[block_nb << 6], in SHA256_update()
274 ctx->tot_len += (block_nb + 1) << 6; in SHA256_update()
278 unsigned int block_nb; in SHA256_final() local
285 block_nb = (1 + ((SHA256_BLOCK_SIZE - 9) in SHA256_final()
289 pm_len = block_nb << 6; in SHA256_final()
[all …]
Dsha512.c173 unsigned int block_nb) { in SHA512_transform() argument
180 for (i = 0; i < (int) block_nb; i++) { in SHA512_transform()
268 unsigned int block_nb; in SHA512_update() local
283 block_nb = new_len / SHA512_BLOCK_SIZE; in SHA512_update()
288 SHA512_transform(ctx, shifted_data, block_nb); in SHA512_update()
292 Memcpy(ctx->block, &shifted_data[block_nb << 7], in SHA512_update()
296 ctx->tot_len += (block_nb + 1) << 7; in SHA512_update()
301 unsigned int block_nb; in SHA512_final() local
309 block_nb = 1 + ((SHA512_BLOCK_SIZE - 17) in SHA512_final()
313 pm_len = block_nb << 7; in SHA512_final()
[all …]