Home
last modified time | relevance | path

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

/external/vboot_reference/firmware/2lib/
D2sha256.c137 const unsigned char *sub_block; in vb2_sha256_transform() local
145 sub_block = message + (i << 6); in vb2_sha256_transform()
149 PACK32(&sub_block[j << 2], &w[j]); in vb2_sha256_transform()
178 PACK32(&sub_block[ 0], &w[ 0]); PACK32(&sub_block[ 4], &w[ 1]); in vb2_sha256_transform()
179 PACK32(&sub_block[ 8], &w[ 2]); PACK32(&sub_block[12], &w[ 3]); in vb2_sha256_transform()
180 PACK32(&sub_block[16], &w[ 4]); PACK32(&sub_block[20], &w[ 5]); in vb2_sha256_transform()
181 PACK32(&sub_block[24], &w[ 6]); PACK32(&sub_block[28], &w[ 7]); in vb2_sha256_transform()
182 PACK32(&sub_block[32], &w[ 8]); PACK32(&sub_block[36], &w[ 9]); in vb2_sha256_transform()
183 PACK32(&sub_block[40], &w[10]); PACK32(&sub_block[44], &w[11]); in vb2_sha256_transform()
184 PACK32(&sub_block[48], &w[12]); PACK32(&sub_block[52], &w[13]); in vb2_sha256_transform()
[all …]
D2sha512.c180 const uint8_t *sub_block; in vb2_sha512_transform() local
184 sub_block = message + (i << 7); in vb2_sha512_transform()
187 PACK64(&sub_block[ 0], &w[ 0]); in vb2_sha512_transform()
188 PACK64(&sub_block[ 8], &w[ 1]); in vb2_sha512_transform()
189 PACK64(&sub_block[ 16], &w[ 2]); in vb2_sha512_transform()
190 PACK64(&sub_block[ 24], &w[ 3]); in vb2_sha512_transform()
191 PACK64(&sub_block[ 32], &w[ 4]); in vb2_sha512_transform()
192 PACK64(&sub_block[ 40], &w[ 5]); in vb2_sha512_transform()
193 PACK64(&sub_block[ 48], &w[ 6]); in vb2_sha512_transform()
194 PACK64(&sub_block[ 56], &w[ 7]); in vb2_sha512_transform()
[all …]
/external/vboot_reference/firmware/lib/cryptolib/
Dsha256.c134 const unsigned char *sub_block; in SHA256_transform() local
142 sub_block = message + (i << 6); in SHA256_transform()
146 PACK32(&sub_block[j << 2], &w[j]); in SHA256_transform()
175 PACK32(&sub_block[ 0], &w[ 0]); PACK32(&sub_block[ 4], &w[ 1]); in SHA256_transform()
176 PACK32(&sub_block[ 8], &w[ 2]); PACK32(&sub_block[12], &w[ 3]); in SHA256_transform()
177 PACK32(&sub_block[16], &w[ 4]); PACK32(&sub_block[20], &w[ 5]); in SHA256_transform()
178 PACK32(&sub_block[24], &w[ 6]); PACK32(&sub_block[28], &w[ 7]); in SHA256_transform()
179 PACK32(&sub_block[32], &w[ 8]); PACK32(&sub_block[36], &w[ 9]); in SHA256_transform()
180 PACK32(&sub_block[40], &w[10]); PACK32(&sub_block[44], &w[11]); in SHA256_transform()
181 PACK32(&sub_block[48], &w[12]); PACK32(&sub_block[52], &w[13]); in SHA256_transform()
[all …]
Dsha512.c177 const uint8_t *sub_block; in SHA512_transform() local
181 sub_block = message + (i << 7); in SHA512_transform()
184 PACK64(&sub_block[ 0], &w[ 0]); PACK64(&sub_block[ 8], &w[ 1]); in SHA512_transform()
185 PACK64(&sub_block[ 16], &w[ 2]); PACK64(&sub_block[ 24], &w[ 3]); in SHA512_transform()
186 PACK64(&sub_block[ 32], &w[ 4]); PACK64(&sub_block[ 40], &w[ 5]); in SHA512_transform()
187 PACK64(&sub_block[ 48], &w[ 6]); PACK64(&sub_block[ 56], &w[ 7]); in SHA512_transform()
188 PACK64(&sub_block[ 64], &w[ 8]); PACK64(&sub_block[ 72], &w[ 9]); in SHA512_transform()
189 PACK64(&sub_block[ 80], &w[10]); PACK64(&sub_block[ 88], &w[11]); in SHA512_transform()
190 PACK64(&sub_block[ 96], &w[12]); PACK64(&sub_block[104], &w[13]); in SHA512_transform()
191 PACK64(&sub_block[112], &w[14]); PACK64(&sub_block[120], &w[15]); in SHA512_transform()
[all …]