diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-07-25 15:30:30 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-07-25 15:30:30 +0700 |
commit | 0cab5b16039e30069a934d3cc96f57212d510c77 (patch) | |
tree | 6dbaa3e1809461dd324f696a6fd972b87270f17a /crypto/src | |
parent | Improve Pack usage (diff) | |
download | BouncyCastle.NET-ed25519-0cab5b16039e30069a934d3cc96f57212d510c77.tar.xz |
Fix Haraka API
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/crypto/digests/Haraka256Digest.cs | 2 | ||||
-rw-r--r-- | crypto/src/crypto/digests/Haraka512Digest.cs | 2 | ||||
-rw-r--r-- | crypto/src/crypto/digests/HarakaBase.cs | 6 |
3 files changed, 3 insertions, 7 deletions
diff --git a/crypto/src/crypto/digests/Haraka256Digest.cs b/crypto/src/crypto/digests/Haraka256Digest.cs index b5b230e27..f7af4bf69 100644 --- a/crypto/src/crypto/digests/Haraka256Digest.cs +++ b/crypto/src/crypto/digests/Haraka256Digest.cs @@ -121,7 +121,7 @@ namespace Org.BouncyCastle.Crypto.Digests buffer[off++] = input; } - public void Update(byte[] input, int inOff, int len) + public override void BlockUpdate(byte[] input, int inOff, int len) { if (off + len > 32) { diff --git a/crypto/src/crypto/digests/Haraka512Digest.cs b/crypto/src/crypto/digests/Haraka512Digest.cs index ce48c81bc..36bdcbabe 100644 --- a/crypto/src/crypto/digests/Haraka512Digest.cs +++ b/crypto/src/crypto/digests/Haraka512Digest.cs @@ -182,7 +182,7 @@ namespace Org.BouncyCastle.Crypto.Digests buffer[off++] = input; } - public void Update(byte[] input, int inOff, int len) + public override void BlockUpdate(byte[] input, int inOff, int len) { if (off + len > 64) { diff --git a/crypto/src/crypto/digests/HarakaBase.cs b/crypto/src/crypto/digests/HarakaBase.cs index ef74204e9..6157198f1 100644 --- a/crypto/src/crypto/digests/HarakaBase.cs +++ b/crypto/src/crypto/digests/HarakaBase.cs @@ -138,11 +138,7 @@ namespace Org.BouncyCastle.Crypto.Digests public abstract void Update(byte input); - - public void BlockUpdate(byte[] input, int inOff, int length) - { - throw new NotImplementedException(); - } + public abstract void BlockUpdate(byte[] input, int inOff, int length); public abstract int DoFinal(byte[] output, int outOff); |