Class BlockValues
Gets the values from a ulong array. Block lengths are QwordsInBlock elements long.
Inherited Members
Namespace: Isopoh.Cryptography.Argon2
Assembly: Isopoh.Cryptography.Argon2.dll
Syntax
public sealed class BlockValues
Constructors
| Edit this page View SourceBlockValues(Memory<ulong>)
Initializes a new instance of the BlockValues class.
Declaration
public BlockValues(Memory<ulong> memory)
Parameters
| Type | Name | Description |
|---|---|---|
| Memory<ulong> | memory | The array of ulong elements the BlockValues will use. |
Properties
| Edit this page View Sourcethis[int]
Gets or sets the ulong element at the specified index.
Declaration
public ulong this[int i] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | i | The ulong element to get or set. |
Property Value
| Type | Description |
|---|---|
| ulong | The requested ulong element. |
Methods
| Edit this page View SourceCopy(ReadOnlyBlockValues)
Copy other into this.
Declaration
public void Copy(ReadOnlyBlockValues other)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlyBlockValues | other | The ReadOnlyBlockValues to copy. |
Init(ulong)
Copy value into every ulong of this.
Declaration
public void Init(ulong value)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | value | The value to copy into this. |
Xor(ReadOnlyBlockValues)
XOR other with this and store the result into this.
Declaration
public void Xor(ReadOnlyBlockValues other)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlyBlockValues | other | The ReadOnlyBlockValues to XOR. |
Operators
| Edit this page View Sourceimplicit operator ReadOnlyBlockValues(BlockValues)
Defines an implicit conversion of a BlockValues to a ReadOnlyBlockValues.
Declaration
public static implicit operator ReadOnlyBlockValues(BlockValues blockValues)
Parameters
| Type | Name | Description |
|---|---|---|
| BlockValues | blockValues | The value to convert. |
Returns
| Type | Description |
|---|---|
| ReadOnlyBlockValues |
implicit operator TempBlockValues(BlockValues)
Defines an implicit conversion of a BlockValues to a ReadOnlyBlockValues.
Declaration
public static implicit operator TempBlockValues(BlockValues blockValues)
Parameters
| Type | Name | Description |
|---|---|---|
| BlockValues | blockValues | The value to convert. |
Returns
| Type | Description |
|---|---|
| TempBlockValues |