From 756e117e5442f78ec41645e6c976422a763f49ce Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 24 Aug 2022 00:34:06 +0700 Subject: Cleanup --- crypto/src/crypto/IDigest.cs | 2 +- crypto/test/src/crypto/test/DigestTest.cs | 2 +- crypto/test/src/crypto/test/Haraka256DigestTest.cs | 2 +- crypto/test/src/crypto/test/Haraka512DigestTest.cs | 2 +- crypto/test/src/crypto/test/TupleHashTest.cs | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crypto/src/crypto/IDigest.cs b/crypto/src/crypto/IDigest.cs index 2ba1705c7..36caf3728 100644 --- a/crypto/src/crypto/IDigest.cs +++ b/crypto/src/crypto/IDigest.cs @@ -5,7 +5,7 @@ namespace Org.BouncyCastle.Crypto /// Base interface for a message digest. public interface IDigest { - /// the algorithm name + /// The algorithm name. string AlgorithmName { get; } /// Return the size, in bytes, of the digest produced by this message digest. diff --git a/crypto/test/src/crypto/test/DigestTest.cs b/crypto/test/src/crypto/test/DigestTest.cs index e2d2a47ef..1809c07fb 100644 --- a/crypto/test/src/crypto/test/DigestTest.cs +++ b/crypto/test/src/crypto/test/DigestTest.cs @@ -205,7 +205,7 @@ namespace Org.BouncyCastle.Crypto.Tests internal static void SpanConsistencyTest(SimpleTest test, IDigest digest, byte[] buf, int off, int len) { // NOTE: .NET Core 2.1 has Span, but is tested against our .NET Standard 2.0 assembly. - //#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER +//#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER #if NET6_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER digest.Reset(); diff --git a/crypto/test/src/crypto/test/Haraka256DigestTest.cs b/crypto/test/src/crypto/test/Haraka256DigestTest.cs index e8a181169..18ff65ddc 100644 --- a/crypto/test/src/crypto/test/Haraka256DigestTest.cs +++ b/crypto/test/src/crypto/test/Haraka256DigestTest.cs @@ -201,7 +201,7 @@ namespace Org.BouncyCastle.Crypto.Tests private void SpanConsistencyTests() { // NOTE: .NET Core 2.1 has Span, but is tested against our .NET Standard 2.0 assembly. - //#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER +//#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER #if NET6_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER // Span-based API consistency checks byte[] data = new byte[16 + 32]; diff --git a/crypto/test/src/crypto/test/Haraka512DigestTest.cs b/crypto/test/src/crypto/test/Haraka512DigestTest.cs index 88208100e..1ef178222 100644 --- a/crypto/test/src/crypto/test/Haraka512DigestTest.cs +++ b/crypto/test/src/crypto/test/Haraka512DigestTest.cs @@ -203,7 +203,7 @@ namespace Org.BouncyCastle.Crypto.Tests private void SpanConsistencyTests() { // NOTE: .NET Core 2.1 has Span, but is tested against our .NET Standard 2.0 assembly. - //#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER +//#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER #if NET6_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER // Span-based API consistency checks byte[] data = new byte[16 + 64]; diff --git a/crypto/test/src/crypto/test/TupleHashTest.cs b/crypto/test/src/crypto/test/TupleHashTest.cs index ba9010e99..918fcbea4 100644 --- a/crypto/test/src/crypto/test/TupleHashTest.cs +++ b/crypto/test/src/crypto/test/TupleHashTest.cs @@ -119,7 +119,7 @@ namespace Org.BouncyCastle.Crypto.Tests internal void SpanConsistencyTests() { // NOTE: .NET Core 2.1 has Span, but is tested against our .NET Standard 2.0 assembly. - //#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER +//#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER #if NET6_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER IDigest digest1 = new TupleHash(128, new byte[0]); IDigest digest2 = new TupleHash(128, new byte[0]); @@ -140,7 +140,7 @@ namespace Org.BouncyCastle.Crypto.Tests internal void SpanConsistencyTest(IDigest digest1, IDigest digest2, byte[] buf, int off, int len) { // NOTE: .NET Core 2.1 has Span, but is tested against our .NET Standard 2.0 assembly. - //#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER +//#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER #if NET6_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER digest1.Reset(); digest2.Reset(); -- cgit 1.4.1