From 6e86f37d4008e5cf9cd410fcc3e43e5420915ed7 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sat, 21 Nov 2015 14:25:02 +0700 Subject: BMA-52 Fix SerpentEngine byte-ordering - The new TnepresEngine was added to retain the historical behaviour of SerpentEngine --- crypto/src/security/CipherUtilities.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crypto/src/security/CipherUtilities.cs') diff --git a/crypto/src/security/CipherUtilities.cs b/crypto/src/security/CipherUtilities.cs index 9ad4228ac..e09eff8d6 100644 --- a/crypto/src/security/CipherUtilities.cs +++ b/crypto/src/security/CipherUtilities.cs @@ -54,6 +54,7 @@ namespace Org.BouncyCastle.Security SERPENT, SKIPJACK, TEA, + TNEPRES, TWOFISH, VMPC, VMPC_KSA3, @@ -432,6 +433,9 @@ namespace Org.BouncyCastle.Security case CipherAlgorithm.TEA: blockCipher = new TeaEngine(); break; + case CipherAlgorithm.TNEPRES: + blockCipher = new TnepresEngine(); + break; case CipherAlgorithm.TWOFISH: blockCipher = new TwofishEngine(); break; @@ -725,6 +729,7 @@ namespace Org.BouncyCastle.Security case CipherAlgorithm.SERPENT: return new SerpentEngine(); case CipherAlgorithm.SKIPJACK: return new SkipjackEngine(); case CipherAlgorithm.TEA: return new TeaEngine(); + case CipherAlgorithm.TNEPRES: return new TnepresEngine(); case CipherAlgorithm.TWOFISH: return new TwofishEngine(); case CipherAlgorithm.XTEA: return new XteaEngine(); default: -- cgit 1.5.1