-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from AndreyRusyaev/feature/sha3-implementation
Sha3 support
- Loading branch information
Showing
54 changed files
with
2,062 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pwsh -ExecutionPolicy ByPass -NoProfile -file ./build.ps1 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+377 KB
docs/merkle_ADigitalSignatureBasedOnAConventionalEncryptionFunction.pdf
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
using BenchmarkDotNet.Configs; | ||
using BenchmarkDotNet.Jobs; | ||
using BenchmarkDotNet.Running; | ||
using BenchmarkDotNet.Running; | ||
|
||
namespace acryptohashnet.Benchmarks | ||
{ | ||
internal static class Program | ||
{ | ||
static void Main(string[] args) => BenchmarkSwitcher | ||
.FromAssembly(typeof(Program).Assembly) | ||
.Run(args); | ||
} | ||
} | ||
BenchmarkSwitcher | ||
.FromAssembly(typeof(Program).Assembly) | ||
.Run(args); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System.Collections.Generic; | ||
|
||
using BenchmarkDotNet.Attributes; | ||
|
||
namespace acryptohashnet.Benchmarks | ||
{ | ||
[MemoryDiagnoser] | ||
public class Sha3_224Benchmark | ||
{ | ||
private System.Security.Cryptography.SHA256 cryptoProviderImpl = System.Security.Cryptography.SHA256.Create(); | ||
|
||
private System.Security.Cryptography.SHA256Managed systemManagedImpl = new System.Security.Cryptography.SHA256Managed(); | ||
|
||
private global::acryptohashnet.Sha2_224 sha2_224AcryptohashnetImpl = new global::acryptohashnet.Sha2_224(); | ||
|
||
private global::acryptohashnet.Sha3_224 sha3_224AcryptohashnetImpl = new global::acryptohashnet.Sha3_224(); | ||
|
||
[ParamsSource(nameof(InputSource))] | ||
public byte[] Input { get; set; } | ||
|
||
public IEnumerable<byte[]> InputSource { get; } = TestSuite.BinaryMessages; | ||
|
||
[Benchmark] | ||
public byte[] Sha256CryptoProvider() => cryptoProviderImpl.ComputeHash(Input); | ||
|
||
[Benchmark] | ||
public byte[] Sha256SystemManaged() => systemManagedImpl.ComputeHash(Input); | ||
|
||
[Benchmark] | ||
public byte[] Sha2_224AcryptoHashNet() => sha2_224AcryptohashnetImpl.ComputeHash(Input); | ||
|
||
[Benchmark] | ||
public byte[] Sha3_224AcryptoHashNet() => sha3_224AcryptohashnetImpl.ComputeHash(Input); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System.Collections.Generic; | ||
|
||
using BenchmarkDotNet.Attributes; | ||
|
||
namespace acryptohashnet.Benchmarks | ||
{ | ||
[MemoryDiagnoser] | ||
public class Sha3_256Benchmark | ||
{ | ||
private System.Security.Cryptography.SHA256 cryptoProviderImpl = System.Security.Cryptography.SHA256.Create(); | ||
|
||
private System.Security.Cryptography.SHA256Managed systemManagedImpl = new System.Security.Cryptography.SHA256Managed(); | ||
|
||
private global::acryptohashnet.Sha2_256 sha2_256AcryptohashnetImpl = new global::acryptohashnet.Sha2_256(); | ||
|
||
private global::acryptohashnet.Sha3_256 sha3_256AcryptohashnetImpl = new global::acryptohashnet.Sha3_256(); | ||
|
||
[ParamsSource(nameof(InputSource))] | ||
public byte[] Input { get; set; } | ||
|
||
public IEnumerable<byte[]> InputSource { get; } = TestSuite.BinaryMessages; | ||
|
||
[Benchmark] | ||
public byte[] Sha2_256CryptoProvider() => cryptoProviderImpl.ComputeHash(Input); | ||
|
||
[Benchmark] | ||
public byte[] Sha2_256SystemManaged() => systemManagedImpl.ComputeHash(Input); | ||
|
||
[Benchmark] | ||
public byte[] Sha2_256AcryptoHashNet() => sha2_256AcryptohashnetImpl.ComputeHash(Input); | ||
|
||
[Benchmark] | ||
public byte[] Sha3_256AcryptoHashNet() => sha3_256AcryptohashnetImpl.ComputeHash(Input); | ||
} | ||
} |
Oops, something went wrong.