Struct TempBlockValues
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 readonly ref struct TempBlockValues
Constructors
| Edit this page View SourceTempBlockValues(Span<ulong>)
Initializes a new instance of the TempBlockValues struct.
Declaration
public TempBlockValues(Span<ulong> span)
Parameters
| Type | Name | Description |
|---|---|---|
| Span<ulong> | span | The array of ulong elements the BlockValues will use. |
TempBlockValues(Span<ulong>, ulong)
Initializes a new instance of the TempBlockValues struct.
Declaration
public TempBlockValues(Span<ulong> span, ulong value)
Parameters
| Type | Name | Description |
|---|---|---|
| Span<ulong> | span | The array of ulong elements the BlockValues will use. |
| ulong | value | Initial value for the block values. |
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(TempBlockValues)
Defines an implicit conversion of a BlockValues to a ReadOnlyBlockValues.
Declaration
public static implicit operator ReadOnlyBlockValues(TempBlockValues blockValues)
Parameters
| Type | Name | Description |
|---|---|---|
| TempBlockValues | blockValues | The value to convert. |
Returns
| Type | Description |
|---|---|
| ReadOnlyBlockValues |