Argon2 Constructor
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Security.dll (version 7.0.9147)
Argon2(Argon2Configuration, Byte[], Byte[], Byte[], Byte[])
Initializes a new instance of Argon2 class.
Declaration
public Argon2(Argon2Configuration configuration, byte[] password, byte[] salt, byte[] key, byte[] associatedData)
Parameters
Type | Name | Description |
---|---|---|
Argon2Configuration | configuration | Argon2 configuration. |
Byte[] | password | The password used in Derive |
Byte[] | salt | The salt used used in Derive |
Byte[] | key | The secret key used in Derive |
Byte[] | associatedData | The associated data used in Derive |
Remarks
- The instance of Argon2 class creates, uses, and clears a copy of the
password
. - The instance of Argon2 class is not the owner of the
password
. - The instance of Argon2 class creates, uses, and clears a copy of the
salt
. - The instance of Argon2 class is not the owner of the
salt
. - The instance of Argon2 class creates, uses, and clears a copy of the
key
. - The instance of Argon2 class is not the owner of the
key
. - The instance of Argon2 class creates, uses, and clears a copy of the
associatedData
. - The instance of Argon2 class is not the owner of the
associatedData
.
Exceptions
Type | Condition |
---|---|
Argument |
The |
Argument |
The |
Argon2(Argon2Configuration, Byte[], Byte[], Byte[])
Initializes a new instance of Argon2 class.
Declaration
public Argon2(Argon2Configuration configuration, byte[] password, byte[] salt, byte[] key)
Parameters
Type | Name | Description |
---|---|---|
Argon2Configuration | configuration | Argon2 configuration. |
Byte[] | password | The password used in the Derive |
Byte[] | salt | The salt used used in the Derive |
Byte[] | key | The secret used in Derive |
Remarks
- An instance of Argon2 class creates, uses, and clears a copy of the
password
. - An instance of Argon2 class is not the owner of the
password
. - An instance of Argon2 class creates, uses, and clears a copy of the
salt
. - An instance of Argon2 class is not the owner of the
salt
. - An instance of Argon2 class creates, uses, and clears a copy of the
key
. - An instance of Argon2 class is not the owner of the
key
.
Exceptions
Type | Condition |
---|---|
Argument |
The |
Argument |
The |
Argon2(Argon2Configuration, Byte[], Byte[])
Initializes a new instance of Argon2 class.
Declaration
public Argon2(Argon2Configuration configuration, byte[] password, byte[] salt)
Parameters
Type | Name | Description |
---|---|---|
Argon2Configuration | configuration | Argon2 configuration. |
Byte[] | password | The password used in the Derive |
Byte[] | salt | The salt used used in the Derive |
Remarks
Exceptions
Type | Condition |
---|---|
Argument |
The |
Argument |
The |