From 97a97c8021c2740182b43ee95067898a01622000 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Wed, 20 Mar 2019 15:39:23 +0100
Subject: crypto: Update CipherModes for PR/2186

---
 lib/crypto/src/crypto.erl | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

(limited to 'lib')

diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl
index b6715e83c0..4387819341 100644
--- a/lib/crypto/src/crypto.erl
+++ b/lib/crypto/src/crypto.erl
@@ -568,7 +568,19 @@ poly1305(Key, Data) ->
                                                 mode := CipherModes,
                                                 type := undefined | integer()
                                                },
-                                    CipherModes :: ecb_mode | cbc_mode | cfb_mode | ofb_mode | undefined.
+                                    CipherModes :: undefined
+                                                 | cbc_mode
+                                                 | ccm_mode
+                                                 | cfb_mode
+                                                 | ctr_mode
+                                                 | ecb_mode
+                                                 | gcm_mode
+                                                 | ige_mode
+                                                 | ocb_mode
+                                                 | ofb_mode
+                                                 | wrap_mode
+                                                 | xts_mode
+                                                   .
 
 %% These ciphers are not available via the EVP interface on older cryptolibs.
 cipher_info(aes_ctr) ->
-- 
cgit v1.2.3