Skip to content
Commit a168c841 authored by Tomasz Kantecki's avatar Tomasz Kantecki Committed by Osiroyame Mayungbo
Browse files

avx2: [aes-gcm] improve performance for larger buffers

- re-arranged GHASH key table layout
- added label alignment and move 1st data block load to after counter blocks creation
- code size reduction
  - added GHASH last 7 and last 8 functions
  - initial blocks implemented as a function that works across different key sizes
- improvements in GHASH_8_ENCRYPT_8_PARALLEL:
  - do not explicitly load hash keys into register, use memory operand with pclmulqdq
  - pipeline loads of data for GHASH, all key loads are aligned
  - re-worked last encryption round, load, xor and store of plain/cipher text
  - made use of extra T4:T7 registers to load plain/cipher text
parent 7db3870b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment