commit | 0c383bf00afbef1a9cfe02829d1bc6ee46e1c16b | [log] [tgz] |
---|---|---|
author | Michael Brown <mcb30@ipxe.org> | Mon Oct 24 18:49:43 2022 +0100 |
committer | Michael Brown <mcb30@ipxe.org> | Tue Oct 25 13:21:30 2022 +0100 |
tree | ac5e0bca148bd881a6e01fdb55591d5fb8ba9447 | |
parent | 8e478e648fb68ac6f07e4e5cd80a5c1fefcb1cf5 [diff] |
[crypto] Add concept of additional data to cipher algorithms Some ciphers (such as GCM) support the concept of additional authenticated data, which does not appear in the ciphertext but may affect the operation of the cipher. Allow cipher_encrypt() and cipher_decrypt() to be called with a NULL destination buffer in order to pass additional data. Signed-off-by: Michael Brown <mcb30@ipxe.org>