Blake2b.NetCore 1.0.1

dotnet add package Blake2b.NetCore --version 1.0.1
NuGet\Install-Package Blake2b.NetCore -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Blake2b.NetCore" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Blake2b.NetCore --version 1.0.1
#r "nuget: Blake2b.NetCore, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Blake2b.NetCore as a Cake Addin
#addin nuget:?package=Blake2b.NetCore&version=1.0.1

// Install Blake2b.NetCore as a Cake Tool
#tool nuget:?package=Blake2b.NetCore&version=1.0.1

Blake2b.NetCore

License: MIT nuget

Implementation of the cryptographic hash function BLAKE2b. Optimized for PinnedMemory, and 64-bit platforms.

Install

From a command prompt

dotnet add package Blake2b.NetCore
Install-Package Blake2b.NetCore

You can also search for package via your nuget ui / website:

https://www.nuget.org/packages/Blake2b.NetCore/

Examples

You can find more examples in the github examples project.

Hash:

var digest = new Blake2b();
using var exampleHash = new PinnedMemory<byte>(new byte[digest.GetLength()]);
digest.UpdateBlock(new PinnedMemory<byte>(new byte[] {63, 61, 77, 20, 63, 61, 77, 20, 63, 61, 77}, false), 0, 11);
digest.DoFinal(exampleHash, 0);

Mac:

var digest = new Blake2bMac(new PinnedMemory<byte>(new byte[] {63, 61, 77, 20, 63, 61, 77}, false));
using var exampleHash = new PinnedMemory<byte>(new byte[digest.GetLength()]);
digest.UpdateBlock(new PinnedMemory<byte>(new byte[] {63, 61, 77, 20, 63, 61, 77, 20, 63, 61, 77}, false), 0, 11);
digest.DoFinal(exampleHash, 0);

Constructor

Digest size restricted to 160, 256, 384, 512

Blake2b(int digestSize = 512)
Blake2bMac(PinnedMemory<byte> key)
Blake2bMac(PinnedMemory<byte> key, byte[] salt, int digestSize = 512)

Methods

Update the message digest with a single byte.

void Update(byte b)

Update the message digest with a pinned memory byte array.

void UpdateBlock(PinnedMemory<byte> message, int offset, int len)

Update the message digest with a byte array.

void UpdateBlock(byte[] message, int offset, int len)

Produce the final digest value outputting to pinned memory. Key & salt remain until dispose is called.

void DoFinal(PinnedMemory<byte> output, int outOffset)

Reset the digest back to it's initial state for further processing. Key & salt remain until dispose is called.

void Reset()

Clear key & salt, reset digest back to it's initial state.

void Dispose()
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Blake2b.NetCore:

Package Downloads
SecureRandom.NetCore

Implementation of a cryptographic pseudorandom number generator (CPRNG) using Blake2b. Optimized for PinnedMemory.

Argon2.NetCore

Implementation of Argon2 key derivation function designed by Alex Biryukov, Daniel Dinu, and Dmitry Khovratovich. Optimized for PinnedMemory.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 6,938 7/20/2020
1.0.0 379 7/19/2020