aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-10-23 09:27:28 +0200
committerIngela Anderton Andin <[email protected]>2018-10-23 09:27:28 +0200
commitcaf1586989e6162699e5c2791c26029f65a535a4 (patch)
tree10623a8b1118077d712ee0e71580e310a83cf71c /lib
parentd5ad94075c7b8e396f780aba55c70363ce4738c4 (diff)
parent639bb57cf7d6550a48608dc827a6fd3aed1af005 (diff)
downloadotp-caf1586989e6162699e5c2791c26029f65a535a4.tar.gz
otp-caf1586989e6162699e5c2791c26029f65a535a4.tar.bz2
otp-caf1586989e6162699e5c2791c26029f65a535a4.zip
Merge branch 'maint'
Diffstat (limited to 'lib')
-rw-r--r--lib/ssl/src/ssl_record.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_record.erl b/lib/ssl/src/ssl_record.erl
index eefcf3598d..ddc83821b4 100644
--- a/lib/ssl/src/ssl_record.erl
+++ b/lib/ssl/src/ssl_record.erl
@@ -451,7 +451,7 @@ decrypt_nonce(?AES_GCM, #cipher_state{iv = <<Salt:4/bytes, _/binary>>}, <<Explic
aead_ciphertext_split(?CHACHA20_POLY1305, #cipher_state{tag_len = Len}, CipherTextFragment, AAD) ->
CipherLen = size(CipherTextFragment) - Len,
<<CipherText:CipherLen/bytes, CipherTag:Len/bytes>> = CipherTextFragment,
- {end_additional_data(AAD, Len), CipherText, CipherTag};
+ {end_additional_data(AAD, CipherLen), CipherText, CipherTag};
aead_ciphertext_split(?AES_GCM, #cipher_state{tag_len = Len}, CipherTextFragment, AAD) ->
CipherLen = size(CipherTextFragment) - (Len + 8), %% 8 is length of explicit Nonce
<< _:8/bytes, CipherText:CipherLen/bytes, CipherTag:Len/bytes>> = CipherTextFragment,