Skip to content

Commit

Permalink
Take BoringSSL '90e3b6e': Add prefetch to aesni_ctr32_ghash_6x.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Sep 28, 2023
2 parents dc3bdd8 + 90e3b6e commit a6ff12b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@
vpaddb $T2,$T1,$Ii
mov %r13,0x70+8(%rsp)
lea 0x60($inp),$inp
# These two prefetches were added in BoringSSL. See change that added them.
prefetcht0 512($inp) # We use 96-byte block so prefetch 2 lines (128 bytes)
prefetcht0 576($inp)
vaesenclast $Z1,$inout2,$inout2
vpaddb $T2,$Ii,$Z1
mov %r12,0x78+8(%rsp)
Expand Down

0 comments on commit a6ff12b

Please sign in to comment.