/external/vboot_reference/firmware/2lib/ |
D | 2sha256.c | 131 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 …]
|
D | 2sha512.c | 174 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/ |
D | sha256.c | 130 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 …]
|
D | sha512.c | 173 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 …]
|
/external/avb/libavb/ |
D | avb_sha512.c | 157 size_t block_nb) { in SHA512_transform() argument 164 for (i = 0; i < block_nb; i++) { in SHA512_transform() 322 size_t block_nb; in avb_sha512_update() local 337 block_nb = new_len / AVB_SHA512_BLOCK_SIZE; in avb_sha512_update() 342 SHA512_transform(ctx, shifted_data, block_nb); in avb_sha512_update() 346 avb_memcpy(ctx->block, &shifted_data[block_nb << 7], rem_len); in avb_sha512_update() 349 ctx->tot_len += (block_nb + 1) << 7; in avb_sha512_update() 353 size_t block_nb; in avb_sha512_final() local 361 block_nb = in avb_sha512_final() 365 pm_len = block_nb << 7; in avb_sha512_final() [all …]
|
D | avb_sha256.c | 138 size_t block_nb) { in SHA256_transform() argument 149 for (i = 0; i < block_nb; i++) { in SHA256_transform() 336 size_t block_nb; in avb_sha256_update() local 351 block_nb = new_len / AVB_SHA256_BLOCK_SIZE; in avb_sha256_update() 356 SHA256_transform(ctx, shifted_data, block_nb); in avb_sha256_update() 360 avb_memcpy(ctx->block, &shifted_data[block_nb << 6], rem_len); in avb_sha256_update() 363 ctx->tot_len += (block_nb + 1) << 6; in avb_sha256_update() 367 size_t block_nb; in avb_sha256_final() local 374 block_nb = in avb_sha256_final() 378 pm_len = block_nb << 6; in avb_sha256_final() [all …]
|
/external/u-boot/lib/libavb/ |
D | avb_sha512.c | 130 unsigned int block_nb) { in SHA512_transform() argument 137 for (i = 0; i < (int)block_nb; i++) { in SHA512_transform() 295 unsigned int block_nb; in avb_sha512_update() local 310 block_nb = new_len / AVB_SHA512_BLOCK_SIZE; in avb_sha512_update() 315 SHA512_transform(ctx, shifted_data, block_nb); in avb_sha512_update() 319 avb_memcpy(ctx->block, &shifted_data[block_nb << 7], rem_len); in avb_sha512_update() 322 ctx->tot_len += (block_nb + 1) << 7; in avb_sha512_update() 326 unsigned int block_nb; in avb_sha512_final() local 334 block_nb = in avb_sha512_final() 338 pm_len = block_nb << 7; in avb_sha512_final() [all …]
|
D | avb_sha256.c | 99 unsigned int block_nb) { in SHA256_transform() argument 110 for (i = 0; i < (int)block_nb; i++) { in SHA256_transform() 297 unsigned int block_nb; in avb_sha256_update() local 312 block_nb = new_len / AVB_SHA256_BLOCK_SIZE; in avb_sha256_update() 317 SHA256_transform(ctx, shifted_data, block_nb); in avb_sha256_update() 321 avb_memcpy(ctx->block, &shifted_data[block_nb << 6], rem_len); in avb_sha256_update() 324 ctx->tot_len += (block_nb + 1) << 6; in avb_sha256_update() 328 unsigned int block_nb; in avb_sha256_final() local 335 block_nb = in avb_sha256_final() 339 pm_len = block_nb << 6; in avb_sha256_final() [all …]
|