File 0361-crypto-Fix-decryptation-error-in-crypto.patch of Package erlang
From c084372209ecba3dc5f5d2af783fc186dfc723f2 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Mon, 28 Oct 2019 13:21:36 +0100
Subject: [PATCH 3/3] crypto: Fix decryptation error in crypto
---
 lib/crypto/src/crypto.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl
index fdd1a54804..1764ea99ad 100644
--- a/lib/crypto/src/crypto.erl
+++ b/lib/crypto/src/crypto.erl
@@ -1460,7 +1460,7 @@ rand_plugin_aes_next({Key,GenWords,F,_JumpBase,Count}) ->
 %%
 rand_plugin_aes_next(Key, GenWords, F, Count) ->
     {Cleartext,NewCount} = aes_cleartext(<<>>, F, Count, GenWords),
-    Encrypted = crypto:block_encrypt(aes_ecb, Key, Cleartext),
+    Encrypted = block_encrypt(aes_ecb, Key, Cleartext),
     [V|Cache] = aes_cache(Encrypted, {Key,GenWords,F,Count,NewCount}),
     {V,Cache}.
 
-- 
2.16.4