Skip to content

Commit

Permalink
Take BoringSSL '5fcd47d': Add prefetch to aes_hw_ctr32_encrypt_blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Sep 29, 2023
2 parents ece6692 + 5fcd47d commit e17b48d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crypto/fipsmodule/aes/asm/aesni-x86_64.pl
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,8 @@ sub aesni_generate8 {
pxor $rndkey0,$in3
movdqu 0x50($inp),$in5
pxor $rndkey0,$in4
prefetcht0 0x1c0($inp) # We process 128 bytes (8*16), so to prefetch 1 iteration
prefetcht0 0x200($inp) # We need to prefetch 2 64 byte lines
pxor $rndkey0,$in5
aesenc $rndkey1,$inout0
aesenc $rndkey1,$inout1
Expand Down

0 comments on commit e17b48d

Please sign in to comment.