diff options
author | Matthew Wild <mwild1@gmail.com> | 2022-06-29 13:22:18 +0100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2022-07-03 22:55:59 +1000 |
commit | db44f3e7b6779e8238a5d801c8f35041ad9baabb (patch) | |
tree | 18a41fc1c74d48d5e2dc46fcc2f9d20945145efe /doc | |
parent | ed61d8d863163b216d5996c850c0a1fa2171e0a4 (diff) | |
download | luaossl-db44f3e7b6779e8238a5d801c8f35041ad9baabb.tar.gz luaossl-db44f3e7b6779e8238a5d801c8f35041ad9baabb.tar.bz2 luaossl-db44f3e7b6779e8238a5d801c8f35041ad9baabb.zip |
Add support for getting/setting GCM authentication tag (fixes #115)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/luaossl.pdf | bin | 182982 -> 333327 bytes | |||
-rw-r--r-- | doc/luaossl.tex | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/luaossl.pdf b/doc/luaossl.pdf Binary files differindex b7a09dc..b8a0e27 100644 --- a/doc/luaossl.pdf +++ b/doc/luaossl.pdf diff --git a/doc/luaossl.tex b/doc/luaossl.tex index efc6422..df5626a 100644 --- a/doc/luaossl.tex +++ b/doc/luaossl.tex @@ -1485,6 +1485,14 @@ Update the cipher instance with the specified string(s). Returns a string on suc Update the cipher with the specified string(s). Returns the final output string on success, or nil and an error message on failure. The returned string may be empty if all blocks have already been flushed in prior \fn{:update} calls. +\subsubsection[\fn{cipher:getTag}]{\fn{cipher:getTag($len$)}} + +Returns the authentication tag for the ciphertext (GCM ciphers only) as a binary string. This method can only be called when encrypting data, and must be called after all data has been processed (i.e. after calling \fn{:final()}). + +\subsubsection[\fn{cipher:setTag}]{\fn{cipher:setTag($tag$)}} + +Sets the provided binary string as the expected authentication tag for the forthcoming ciphertext (GCM ciphers only). This method can only be called when decrypting data, and must be called before \fn{:final()} to ensure the ciphertext integrity can be verified successfully. + \end{Module} |