Discuss this help topic in SecureBlackbox Forum

TElSymmetricCryptoFactory.GetDefaultKeyAndBlockLengths

TElSymmetricCryptoFactory     See also     


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


Returns default key and block lengths for the specified algorithm.

Declaration

[C#]
    bool GetDefaultKeyAndBlockLengths(int Alg, ref int KeyLen, ref int BlockLen);
    bool GetDefaultKeyAndBlockLengths(byte[] OID, ref int KeyLen, ref int BlockLen);

[VB.NET]
    Function GetDefaultKeyAndBlockLengths(ByVal Alg As Integer, ByRef KeyLen As Integer, ByRef BlockLen As Integer) As Boolean
    Function GetDefaultKeyAndBlockLengths(ByVal OID As Byte(), ByRef KeyLen As Integer, ByRef BlockLen As Integer) As Boolean

[Pascal]
    function GetDefaultKeyAndBlockLengths(Alg : integer; var KeyLen : integer; var BlockLen : integer) : boolean; overload;
    function GetDefaultKeyAndBlockLengths(const OID : ByteArray; var KeyLen : integer; var BlockLen : integer) : boolean; overload;

[C++]
    bool GetDefaultKeyAndBlockLengths(int32_t Alg, int32_t &KeyLen, int32_t &BlockLen);
    bool GetDefaultKeyAndBlockLengths(const std::vector<uint8_t> &OID, int32_t &KeyLen, int32_t &BlockLen);

[PHP]
    bool GetDefaultKeyAndBlockLengths(integer $Alg, integer &$KeyLen, integer &$BlockLen)
    bool GetDefaultKeyAndBlockLengths(array of byte|string|NULL $OID, integer &$KeyLen, integer &$BlockLen)

[Java]
    boolean getDefaultKeyAndBlockLengths(byte[] OID, TElSymmetricKeyAndBlockLengths Lens);
    boolean getDefaultKeyAndBlockLengths(int Alg, TElSymmetricKeyAndBlockLengths Lens);

Parameters

  • OID - Well-known OID (Object ID) of the algorithm
  • Alg - SecureBlackbox-defined identifier of the algorithm
  • KeyLen - Default key length for the specified algorithm
  • BlockLen - Default block length for the specified algorithm
  • Lens -

Return value

    True if the specified algorithm is supported by at least on of the registered classes and False in another case.

Description

    Use this method to get default key and block lengths for the specified symmetric algorithm.

See also:     IsAlgorithmSupported    

Discuss this help topic in SecureBlackbox Forum