Class Blake2BTreeConfig
Parameters for the tree hash.
Inheritance
System.Object
Blake2BTreeConfig
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Isopoh.Cryptography.Blake2b
Assembly: Isopoh.Cryptography.Blake2b.dll
Syntax
public sealed class Blake2BTreeConfig
Constructors
| Improve this Doc View SourceBlake2BTreeConfig()
Initializes a new instance of the Blake2BTreeConfig class.
Declaration
public Blake2BTreeConfig()
Properties
| Improve this Doc View SourceFanOut
Gets or sets the tree fan out value.
Declaration
public int FanOut { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
IntermediateHashSize
Gets or sets the intermediate hash size.
Declaration
public int IntermediateHashSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
LeafSize
Gets or sets the tree leaf size.
Declaration
public long LeafSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
MaxHeight
Gets or sets the tree maximum height.
Declaration
public int MaxHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceCreateInterleaved(Int32)
Create an instance of the Blake2BTreeConfig for parallel hash computation.
Declaration
public static Blake2BTreeConfig CreateInterleaved(int parallelism)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | 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. |