Class Blake2BTreeConfig
Parameters for the tree hash.
Inherited Members
Namespace: Isopoh.Cryptography.Blake2b
Assembly: Isopoh.Cryptography.Blake2b.dll
Syntax
public sealed class Blake2BTreeConfig
Constructors
| Edit this page View SourceBlake2BTreeConfig()
Initializes a new instance of the Blake2BTreeConfig class.
Declaration
public Blake2BTreeConfig()
Properties
| Edit this page View SourceFanOut
Gets or sets the tree fan out value.
Declaration
public int FanOut { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
IntermediateHashSize
Gets or sets the intermediate hash size.
Declaration
public int IntermediateHashSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
LeafSize
Gets or sets the tree leaf size.
Declaration
public long LeafSize { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
MaxHeight
Gets or sets the tree maximum height.
Declaration
public int MaxHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
| Edit this page View SourceCreateInterleaved(int)
Create an instance of the Blake2BTreeConfig for parallel hash computation.
Declaration
public static Blake2BTreeConfig CreateInterleaved(int parallelism)
Parameters
| Type | Name | Description |
|---|---|---|
| int | parallelism | The amount of parallelism to invoke when generating the hash. |
Returns
| Type | Description |
|---|---|
| Blake2BTreeConfig | An instance of the Blake2BTreeConfig suitable for generating a hash. |