diff options
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/crypto/engines/ChaChaEngine.cs | 3 | ||||
-rw-r--r-- | crypto/src/crypto/engines/Salsa20Engine.cs | 9 |
2 files changed, 5 insertions, 7 deletions
diff --git a/crypto/src/crypto/engines/ChaChaEngine.cs b/crypto/src/crypto/engines/ChaChaEngine.cs index 0971b8035..2aeb30d86 100644 --- a/crypto/src/crypto/engines/ChaChaEngine.cs +++ b/crypto/src/crypto/engines/ChaChaEngine.cs @@ -6,7 +6,6 @@ namespace Org.BouncyCastle.Crypto.Engines /** * Implementation of Daniel J. Bernstein's ChaCha stream cipher. */ - [CLSCompliantAttribute(false)] public class ChaChaEngine : Salsa20Engine { @@ -101,7 +100,7 @@ namespace Org.BouncyCastle.Crypto.Engines * * @return keystream */ - protected internal static void ChachaCore(int rounds, uint[] input, uint[] x) + internal static void ChachaCore(int rounds, uint[] input, uint[] x) { if (input.Length != 16) { throw new ArgumentException(); diff --git a/crypto/src/crypto/engines/Salsa20Engine.cs b/crypto/src/crypto/engines/Salsa20Engine.cs index 5698737de..aff6320b1 100644 --- a/crypto/src/crypto/engines/Salsa20Engine.cs +++ b/crypto/src/crypto/engines/Salsa20Engine.cs @@ -10,7 +10,6 @@ namespace Org.BouncyCastle.Crypto.Engines /** * Implementation of Daniel J. Bernstein's Salsa20 stream cipher, Snuffle 2005 */ - [CLSCompliantAttribute(false)] public class Salsa20Engine : IStreamCipher { @@ -30,8 +29,8 @@ namespace Org.BouncyCastle.Crypto.Engines * during encryption and decryption */ private int index = 0; - protected uint[] engineState = new uint[StateSize]; // state - protected uint[] x = new uint[StateSize]; // internal buffer + internal uint[] engineState = new uint[StateSize]; // state + internal uint[] x = new uint[StateSize]; // internal buffer private byte[] keyStream = new byte[StateSize * 4]; // expanded state, 64 bytes private bool initialised = false; @@ -242,7 +241,7 @@ namespace Org.BouncyCastle.Crypto.Engines Pack.UInt32_To_LE(x, output, 0); } - protected internal static void SalsaCore(int rounds, uint[] input, uint[] x) + internal static void SalsaCore(int rounds, uint[] input, uint[] x) { if (input.Length != 16) { throw new ArgumentException(); @@ -334,7 +333,7 @@ namespace Org.BouncyCastle.Crypto.Engines * * @return rotated x */ - protected static uint R(uint x, int y) + internal static uint R(uint x, int y) { return (x << y) | (x >> (32 - y)); } |