diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-01-21 17:20:04 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-01-21 17:20:04 +0700 |
commit | 5f39bd591cd54a1747518d99b723991383a8a9de (patch) | |
tree | bac28f6a3008ce790c38a01d55aa58f88d78eabd /crypto/src | |
parent | Fix up merge (diff) | |
download | BouncyCastle.NET-ed25519-5f39bd591cd54a1747518d99b723991383a8a9de.tar.xz |
Add new files to project, rename Sm3 to SM3
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/crypto/digests/SM3Digest.cs (renamed from crypto/src/crypto/digests/Sm3Digest.cs) | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crypto/src/crypto/digests/Sm3Digest.cs b/crypto/src/crypto/digests/SM3Digest.cs index 7a9e6db36..d81b2ddbf 100644 --- a/crypto/src/crypto/digests/Sm3Digest.cs +++ b/crypto/src/crypto/digests/SM3Digest.cs @@ -19,7 +19,7 @@ namespace Org.BouncyCastle.Crypto.Digests /// including the SHA-256 which was a origin for /// this specification. /// </remarks> - public class Sm3Digest + public class SM3Digest : GeneralDigest { private const int DIGEST_LENGTH = 32; // bytes @@ -36,7 +36,7 @@ namespace Org.BouncyCastle.Crypto.Digests // Round constant T for processBlock() which is 32 bit integer rolled left up to (63 MOD 32) bit positions. private static readonly uint[] T = new uint[64]; - static Sm3Digest() + static SM3Digest() { for (int i = 0; i < 16; ++i) { @@ -55,7 +55,7 @@ namespace Org.BouncyCastle.Crypto.Digests /// <summary> /// Standard constructor /// </summary> - public Sm3Digest() + public SM3Digest() { Reset(); } @@ -64,13 +64,13 @@ namespace Org.BouncyCastle.Crypto.Digests /// Copy constructor. This will copy the state of the provided /// message digest. /// </summary> - public Sm3Digest(Sm3Digest t) + public SM3Digest(SM3Digest t) : base(t) { CopyIn(t); } - private void CopyIn(Sm3Digest t) + private void CopyIn(SM3Digest t) { Array.Copy(t.V, 0, this.V, 0, this.V.Length); Array.Copy(t.inwords, 0, this.inwords, 0, this.inwords.Length); @@ -89,12 +89,12 @@ namespace Org.BouncyCastle.Crypto.Digests public override IMemoable Copy() { - return new Sm3Digest(this); + return new SM3Digest(this); } public override void Reset(IMemoable other) { - Sm3Digest d = (Sm3Digest)other; + SM3Digest d = (SM3Digest)other; base.CopyIn(d); CopyIn(d); @@ -325,4 +325,4 @@ namespace Org.BouncyCastle.Crypto.Digests this.xOff = 0; } } -} \ No newline at end of file +} |