]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[crypto] Ensure relevant GCM cipher state is cleared by cipher_setiv()
authorMichael Brown <mcb30@ipxe.org>
Wed, 9 Nov 2022 16:45:54 +0000 (16:45 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 9 Nov 2022 16:48:50 +0000 (16:48 +0000)
commit63577207ab95a53b29c1fa441be25ee15747bbe0
treeed0b7c1bbc71345cbf40b5b35329caacb8acc5dc
parent7256a6eb24720adfd30c0307a415e51e9a402059
[crypto] Ensure relevant GCM cipher state is cleared by cipher_setiv()

Reset the accumulated authentication state when cipher_setiv() is
called, to allow the cipher to be reused without resetting the key.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/crypto/gcm.c
src/include/ipxe/gcm.h