Discuss this help topic in SecureBlackbox Forum

TElSymmetricKeyMaterial.DeriveKey

TElSymmetricKeyMaterial     See also     


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


Initializes key material from a password.

Declaration

[C#]
    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);
    procedure DeriveKey(Bits : integer; const Password : string; const Salt : ByteArray; Iterations : integer; HMACAlgorithm : 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);
    void DeriveKey(int32_t Bits, const std::string &Password, const std::vector<uint8_t> &Salt, int32_t Iterations, int32_t HMACAlgorithm);

[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)
    void DeriveKey(integer $Bits, string $Password, array of byte|string|NULL $Salt, integer $Iterations, integer $HMACAlgorithm)

[Java]
    void deriveKey(int Bits, String Password, byte[] Salt, int Iterations);
    void deriveKey(int Bits, String Password, String Salt);
    void deriveKey(int Bits, String Password, byte[] Salt);
    void deriveKey(int Bits, String Password);

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.
  • HMACAlgorithm -

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