Modified code calling to SHA3 library
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using SHA3;
|
||||||
|
|
||||||
namespace SharpHash.Checksums
|
namespace SharpHash.Checksums
|
||||||
{
|
{
|
||||||
@@ -29,14 +30,14 @@ namespace SharpHash.Checksums
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class SHA3Context
|
public class SHA3Context
|
||||||
{
|
{
|
||||||
SHA3.SHA3 _sha3Provider;
|
SHA3Unmanaged _sha3Provider;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes the SHA3 hash provider
|
/// Initializes the SHA3 hash provider
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
_sha3Provider = SHA3.SHA3.Create();
|
_sha3Provider = new SHA3Unmanaged(512);;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user