Click or drag to resize

KeyMaterialCreateKeyMaterial Method (SecureString, Byte, Int32)

Creates a key material for the symmethric algorithm

Namespace:  Cauldron.Cryptography
Assembly:  Cauldron.Cryptography (in Cauldron.Cryptography.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static KeyMaterial CreateKeyMaterial(
	SecureString password,
	byte[] salt,
	int iterations = 60000
)

Parameters

password
Type: System.SecuritySecureString
The password used for the encryption or description
salt
Type: SystemByte
The salt forthe symmethric algorithm
iterations (Optional)
Type: SystemInt32
The number of iteration for the KDF

Return Value

Type: KeyMaterial
The key material
Exceptions
ExceptionCondition
ArgumentNullExceptionpassword is null
ArgumentNullExceptionsalt is null
SecurityExceptioniterations is lower than 1000
See Also