File 2198-crypto-Bug-fix-blowfish_cbc-allowed-in-crypto-next_i.patch of Package erlang

From 0a173490c5348ffd045482fc5f29a3b49d3cf325 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Mon, 3 Sep 2018 10:24:51 +0200
Subject: [PATCH 1/2] crypto: Bug fix - blowfish_cbc allowed in crypto:next_iv

---
 lib/crypto/src/crypto.erl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl
index a9d933f5d7..3c3e9a7f34 100644
--- a/lib/crypto/src/crypto.erl
+++ b/lib/crypto/src/crypto.erl
@@ -298,6 +298,7 @@ next_iv(Type, Data) when is_binary(Data) ->
     IVecSize = case Type of
                    des_cbc  -> 8;
                    des3_cbc -> 8;
+                   blowfish_cbc -> 8;
                    aes_cbc  -> 16;
                    aes_ige  -> 32
                end,
-- 
2.16.4

openSUSE Build Service is sponsored by