Discuss this help topic in SecureBlackbox Forum

TElSymmetricKeyMaterial.DeriveKey

TElSymmetricKeyMaterial     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Initializes key material from a password.

Declaration

[C#/Java]
    void DeriveKey(int Bits, string Password);
    void DeriveKey(int Bits, string Password, string Salt);
    void DeriveKey(int Bits, string Password, byte[] Salt);
    void DeriveKey(int Bits, string Password, byte[] Salt, int Iterations);

[VB.NET]
    Sub DeriveKey(ByVal Bits As Integer, ByVal Password As String)
    Sub DeriveKey(ByVal Bits As Integer, ByVal Password As String, ByVal Salt As String)
    Sub DeriveKey(ByVal Bits As Integer, ByVal Password As String, ByVal Salt As Byte())
    Sub DeriveKey(ByVal Bits As Integer, ByVal Password As String, ByVal Salt As Byte(), ByVal Iterations As Integer)

[Pascal]
    procedure DeriveKey(Bits : integer; const Password : string);
    procedure DeriveKey(Bits : integer; const Password : string; const Salt : string);
    procedure DeriveKey(Bits : integer; const Password : string; const Salt : ByteArray);
    procedure DeriveKey(Bits : integer; const Password : string; const Salt : ByteArray; Iterations : integer);

[C++]
    void DeriveKey(int32_t Bits, const std::string &Password);
    void DeriveKey(int32_t Bits, const std::string &Password, const std::string &Salt);
    void DeriveKey(int32_t Bits, const std::string &Password, const std::vector<uint8_t> &Salt);
    void DeriveKey(int32_t Bits, const std::string &Password, const std::vector<uint8_t> &Salt, int32_t Iterations);

[PHP]
    void DeriveKey(integer $Bits, string $Password)
    void DeriveKey(integer $Bits, string $Password, string $Salt)
    void DeriveKey(integer $Bits, string $Password, array of byte|string|NULL $Salt)
    void DeriveKey(integer $Bits, string $Password, array of byte|string|NULL $Salt, integer $Iterations)

Parameters

  • Bits - The number of bits in the key.
  • Password - The password provided by the user.
  • Salt - The value of the salt used for key generation.
  • Iterations - The number of iterations used to generate the key.

Description

    Use this method to initialize the key material instance with a symmetric key derived from the password provided by the user. The method uses PKCS#5 PBKDF2 key derivation function.

See also:     Generate    

Discuss this help topic in SecureBlackbox Forum