aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/src
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/src
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/src')
-rw-r--r--lib/crypto/src/crypto.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl
index ade4c17089..a5e60fbe75 100644
--- a/lib/crypto/src/crypto.erl
+++ b/lib/crypto/src/crypto.erl
@@ -651,7 +651,7 @@ block_encrypt(Type, Key, PlainText) ->
binary() | run_time_error();
(Type::aead_cipher(), Key::iodata(), Ivec::binary(),
{AAD::binary(), Data::iodata(), Tag::binary()}) ->
- binary() | run_time_error() .
+ binary() | error | run_time_error() .
block_decrypt(Type, Key, Ivec, Data) ->
do_block_decrypt(alias(Type), Key, Ivec, Data).