BlowfishCipher.CreateEks Method (Byte[], Byte[], Int32, EksBlowfishKeyExpansionFlags)

CryptSharp

BlowfishCipherCreateEks Method (Byte, Byte, Int32, EksBlowfishKeyExpansionFlags) CryptSharp
Performs an Expensive Key Schedule (EKS) Blowfish key expansion and creates a Blowfish cipher using the result. Flags may modify the key expansion.

Namespace: CryptSharp.Utility
Assembly: CryptSharp (in CryptSharp.dll) Version: 2.1.0.0
Syntax

public static BlowfishCipher CreateEks(
	byte[] key,
	byte[] salt,
	int cost,
	EksBlowfishKeyExpansionFlags flags
)
Public Shared Function CreateEks ( 
	key As Byte(),
	salt As Byte(),
	cost As Integer,
	flags As EksBlowfishKeyExpansionFlags
) As BlowfishCipher
public:
static BlowfishCipher^ CreateEks(
	array<unsigned char>^ key, 
	array<unsigned char>^ salt, 
	int cost, 
	EksBlowfishKeyExpansionFlags flags
)
static member CreateEks : 
        key : byte[] * 
        salt : byte[] * 
        cost : int * 
        flags : EksBlowfishKeyExpansionFlags -> BlowfishCipher 

Parameters

key
Type: SystemByte
The key. This must be between 1 and 72 bytes. Unlike BlowfishCrypter, this method does NOT automatically add a null byte to the key.
salt
Type: SystemByte
The salt. This must be 16 bytes.
cost
Type: SystemInt32
The expansion cost. This is a value between 4 and 31, specifying the logarithm of the number of iterations.
flags
Type: CryptSharp.UtilityEksBlowfishKeyExpansionFlags
Flags modifying the key expansion.

Return Value

Type: BlowfishCipher
A Blowfish cipher.
See Also

Reference