/external/avb/libavb/ |
avb_sha256.c | 138 size_t block_nb) { 149 for (i = 0; i < block_nb; i++) { 336 size_t block_nb; local 351 block_nb = new_len / AVB_SHA256_BLOCK_SIZE; 356 SHA256_transform(ctx, shifted_data, block_nb); 360 avb_memcpy(ctx->block, &shifted_data[block_nb << 6], rem_len); 363 ctx->tot_len += (block_nb + 1) << 6; 367 size_t block_nb; local 374 block_nb = 378 pm_len = block_nb << 6 [all...] |
avb_sha512.c | 157 size_t block_nb) { 164 for (i = 0; i < block_nb; i++) { 322 size_t block_nb; local 337 block_nb = new_len / AVB_SHA512_BLOCK_SIZE; 342 SHA512_transform(ctx, shifted_data, block_nb); 346 avb_memcpy(ctx->block, &shifted_data[block_nb << 7], rem_len); 349 ctx->tot_len += (block_nb + 1) << 7; 353 size_t block_nb; local 361 block_nb = 365 pm_len = block_nb << 7 [all...] |
/external/u-boot/lib/libavb/ |
avb_sha256.c | 99 unsigned int block_nb) { 110 for (i = 0; i < (int)block_nb; i++) { 297 unsigned int block_nb; local 312 block_nb = new_len / AVB_SHA256_BLOCK_SIZE; 317 SHA256_transform(ctx, shifted_data, block_nb); 321 avb_memcpy(ctx->block, &shifted_data[block_nb << 6], rem_len); 324 ctx->tot_len += (block_nb + 1) << 6; 328 unsigned int block_nb; local 335 block_nb = 339 pm_len = block_nb << 6 [all...] |
avb_sha512.c | 130 unsigned int block_nb) { 137 for (i = 0; i < (int)block_nb; i++) { 295 unsigned int block_nb; local 310 block_nb = new_len / AVB_SHA512_BLOCK_SIZE; 315 SHA512_transform(ctx, shifted_data, block_nb); 319 avb_memcpy(ctx->block, &shifted_data[block_nb << 7], rem_len); 322 ctx->tot_len += (block_nb + 1) << 7; 326 unsigned int block_nb; local 334 block_nb = 338 pm_len = block_nb << 7 [all...] |
/external/vboot_reference/firmware/2lib/ |
2sha256.c | 131 unsigned int block_nb) 144 for (i = 0; i < (int) block_nb; i++) { 250 unsigned int block_nb; local 265 block_nb = new_size / VB2_SHA256_BLOCK_SIZE; 270 vb2_sha256_transform(ctx, shifted_data, block_nb); 274 memcpy(ctx->block, &shifted_data[block_nb << 6], 278 ctx->total_size += (block_nb + 1) << 6; 283 unsigned int block_nb; local 290 block_nb = (1 + ((VB2_SHA256_BLOCK_SIZE - 9) 294 pm_size = block_nb << 6 [all...] |
2sha512.c | 174 unsigned int block_nb) 183 for (i = 0; i < (int) block_nb; i++) { 280 unsigned int block_nb; local 295 block_nb = new_size / VB2_SHA512_BLOCK_SIZE; 300 vb2_sha512_transform(ctx, shifted_data, block_nb); 304 memcpy(ctx->block, &shifted_data[block_nb << 7], 308 ctx->total_size += (block_nb + 1) << 7; 313 unsigned int block_nb; local 321 block_nb = 1 + ((VB2_SHA512_BLOCK_SIZE - 17) 325 pm_size = block_nb << 7 [all...] |
/external/vboot_reference/firmware/lib/cryptolib/ |
sha256.c | 130 unsigned int block_nb) { 141 for (i = 0; i < (int) block_nb; i++) { 246 unsigned int block_nb; local 261 block_nb = new_len / SHA256_BLOCK_SIZE; 266 SHA256_transform(ctx, shifted_data, block_nb); 270 Memcpy(ctx->block, &shifted_data[block_nb << 6], 274 ctx->tot_len += (block_nb + 1) << 6; 278 unsigned int block_nb; local 285 block_nb = (1 + ((SHA256_BLOCK_SIZE - 9) 289 pm_len = block_nb << 6 [all...] |
sha512.c | 173 unsigned int block_nb) { 180 for (i = 0; i < (int) block_nb; i++) { 268 unsigned int block_nb; local 283 block_nb = new_len / SHA512_BLOCK_SIZE; 288 SHA512_transform(ctx, shifted_data, block_nb); 292 Memcpy(ctx->block, &shifted_data[block_nb << 7], 296 ctx->tot_len += (block_nb + 1) << 7; 301 unsigned int block_nb; local 309 block_nb = 1 + ((SHA512_BLOCK_SIZE - 17) 313 pm_len = block_nb << 7 [all...] |