summaryrefslogtreecommitdiffstats
path: root/src/tests/byteswap_test.c
diff options
context:
space:
mode:
authorMichael Brown2022-11-09 17:48:04 +0100
committerMichael Brown2022-11-10 10:58:37 +0100
commit4acded7e574fb18dd653a18f48a7b6066c543712 (patch)
tree0ba9bdcb204b880ebc2e0d1279f5d19be691bee5 /src/tests/byteswap_test.c
parent[tests] Verify ability to reset cipher initialisation vector (diff)
downloadipxe-4acded7e574fb18dd653a18f48a7b6066c543712.tar.gz
ipxe-4acded7e574fb18dd653a18f48a7b6066c543712.tar.xz
ipxe-4acded7e574fb18dd653a18f48a7b6066c543712.zip
[crypto] Support in-place decryption for GCM ciphers
The hash calculation is currently performed incorrectly when decrypting in place, since the ciphertext will have been overwritten with the plaintext before being used to update the hash value. Restructure the code to allow for in-place encryption and decryption. Choose to optimise for the decryption case, since we are likely to decrypt much more data than we encrypt. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/tests/byteswap_test.c')
0 files changed, 0 insertions, 0 deletions