Home
last modified time | relevance | path

Searched refs:rotate_offset (Results 1 – 2 of 2) sorted by relevance

/external/chromium_org/third_party/boringssl/src/ssl/
Ds3_cbc.c246 unsigned rotate_offset; in ssl3_cbc_copy_mac() local
267 rotate_offset = (div_spoiler + mac_start - scan_start) % md_size; in ssl3_cbc_copy_mac()
285 ((volatile unsigned char *)rotated_mac)[rotate_offset^32]; in ssl3_cbc_copy_mac()
286 out[j++] = rotated_mac[rotate_offset++]; in ssl3_cbc_copy_mac()
287 rotate_offset &= constant_time_lt(rotate_offset,md_size); in ssl3_cbc_copy_mac()
291 rotate_offset = md_size - rotate_offset; in ssl3_cbc_copy_mac()
292 rotate_offset &= constant_time_lt(rotate_offset,md_size); in ssl3_cbc_copy_mac()
296 out[j] |= rotated_mac[i] & constant_time_eq_8(j, rotate_offset); in ssl3_cbc_copy_mac()
297 rotate_offset++; in ssl3_cbc_copy_mac()
298 rotate_offset &= constant_time_lt(rotate_offset,md_size); in ssl3_cbc_copy_mac()
/external/openssl/ssl/
Ds3_cbc.c237 unsigned rotate_offset; in ssl3_cbc_copy_mac() local
258 rotate_offset = (div_spoiler + mac_start - scan_start) % md_size; in ssl3_cbc_copy_mac()
276 ((volatile unsigned char *)rotated_mac)[rotate_offset^32]; in ssl3_cbc_copy_mac()
277 out[j++] = rotated_mac[rotate_offset++]; in ssl3_cbc_copy_mac()
278 rotate_offset &= constant_time_lt(rotate_offset,md_size); in ssl3_cbc_copy_mac()
282 rotate_offset = md_size - rotate_offset; in ssl3_cbc_copy_mac()
283 rotate_offset &= constant_time_lt(rotate_offset,md_size); in ssl3_cbc_copy_mac()
287 out[j] |= rotated_mac[i] & constant_time_eq_8(j, rotate_offset); in ssl3_cbc_copy_mac()
288 rotate_offset++; in ssl3_cbc_copy_mac()
289 rotate_offset &= constant_time_lt(rotate_offset,md_size); in ssl3_cbc_copy_mac()