aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/doc
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2019-03-21 10:56:40 +0100
committerHans Nilsson <[email protected]>2019-03-22 10:23:57 +0100
commitb1f4c5f3b07387ed57a5794570969c55a3cd34ea (patch)
tree560c617b8b741183268e305a0c8e72d281d34fdc /lib/crypto/doc
parent03f94058c410162091ce9168609908abd2caaba3 (diff)
downloadotp-b1f4c5f3b07387ed57a5794570969c55a3cd34ea.tar.gz
otp-b1f4c5f3b07387ed57a5794570969c55a3cd34ea.tar.bz2
otp-b1f4c5f3b07387ed57a5794570969c55a3cd34ea.zip
crypto: Restore 'error' as result of failed aead decryption
Diffstat (limited to 'lib/crypto/doc')
-rw-r--r--lib/crypto/doc/src/crypto.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/crypto/doc/src/crypto.xml b/lib/crypto/doc/src/crypto.xml
index ee95cc3074..2c5f1b846f 100644
--- a/lib/crypto/doc/src/crypto.xml
+++ b/lib/crypto/doc/src/crypto.xml
@@ -667,7 +667,8 @@
<v>Key = <seealso marker="#type-key">key()</seealso> | <seealso marker="#type-des3_key">des3_key()</seealso></v>
<v>PlainText = iodata()</v>
<v>AAD = IVec = CipherText = CipherTag = binary()</v>
- <v>Error = <seealso marker="#type-run_time_error">run_time_error()</seealso></v>
+ <v>Error = BadTag | <seealso marker="#type-run_time_error">run_time_error()</seealso></v>
+ <v>BadTag = error</v>
</type>
<desc>
<p>Decrypt <c>CipherText</c> according to <c>Type</c> block cipher.