<PackageReference Include="BouncyCastle.Cryptography" Version="2.8.0-beta.349" />

Org.BouncyCastle.Crypto.Generators.Argon2BytesGenerator

public sealed class Argon2BytesGenerator
public sealed class Block

A single 1024-byte memory block used by the Argon2 mixing function.

public sealed class FixedBlockPool : IBlockPool

A bounded pool that recycles up to a fixed number of Blocks.

public interface IBlockPool

Strategy for allocating and recycling Argon2 Blocks.

public Argon2BytesGenerator(TaskFactory taskFactory)

Initializes a new Argon2BytesGenerator with an optional TaskFactory.

public static int GetBlockCount(int memory, int parallelism)

Return the most Blocks a generator has outstanding from its IBlockPool at once, for the given memory size and degree of parallelism.

public int GenerateBytes(char[] password, byte[] output)

public int GenerateBytes(char[] password, byte[] output, int outOff, int outLen)

public int GenerateBytes(byte[] password, byte[] output)

public int GenerateBytes(byte[] password, byte[] output, int outOff, int outLen)

public void Init(Argon2Parameters parameters)