Discuss this help topic in SecureBlackbox Forum

TElPublicKeyCrypto.DecryptKey

TElPublicKeyCrypto     See also     


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


Decrypts a key.

Declaration

[C#]
    TElKeyMaterial DecryptKey(byte[] EncKey, int EncKeyStartIndex, int EncKeySize, byte[] EncKeyAlgOID, byte[] EncKeyAlgParams);

[VB.NET]
    Function DecryptKey(ByVal EncKey As Byte(), ByVal EncKeyStartIndex As Integer, ByVal EncKeySize As Integer, ByVal EncKeyAlgOID As Byte(), ByVal EncKeyAlgParams As Byte()) As TElKeyMaterial

[Pascal]
    function DecryptKey(EncKey : pointer; EncKeySize : integer; const EncKeyAlgOID, EncKeyAlgParams : ByteArray) : TElKeyMaterial;

[C++]
    TElKeyMaterialHandle DecryptKey(void * EncKey, int32_t EncKeySize, const std::vector<uint8_t> &EncKeyAlgOID, const std::vector<uint8_t> &EncKeyAlgParams);

[PHP]
    TElKeyMaterial DecryptKey(TSBPointer|array of byte|string|NULL $EncKey, integer $EncKeySize, array of byte|string|NULL $EncKeyAlgOID, array of byte|string|NULL $EncKeyAlgParams)

[Java]
    TElKeyMaterial decryptKey(byte[] EncKey, int EncKeyStartIndex, int EncKeySize, byte[] EncKeyAlgOID, byte[] EncKeyAlgParams);

Parameters

  • EncKey - buffer or memory stream containing encrypted key
  • EncKeyStartIndex - index of the first byte of key data in the EncKey buffer
  • EncKeySize - size of the encrypted key in bytes
  • EncKeyAlgOID - OID of the encryption algorithm
  • EncKeyAlgParams - encryption parameters

Return value

    Returns an instance of TElKeyMaterial class containing decrypted key.

Description

    Call this method to decrypt an encrypted key.

See also:     Decrypt    

Discuss this help topic in SecureBlackbox Forum