Modified code calling to SHA3 library

This commit is contained in:
2015-02-02 16:42:23 +00:00
parent 5b71d275c7
commit 6ba2ebdd98

View File

@@ -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>