Discuss this help topic in SecureBlackbox Forum

TElSymmetricKeyMaterial.Load

TElSymmetricKeyMaterial     See also     


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


Loads the key and IV from the buffer or stream.

Declaration

[C#]
    void Load(byte[] Buffer, int Index, int Size);
    void Load(System.IO.Stream Stream, int Count);

[VB.NET]
    Sub Load(ByVal Buffer As Byte(), ByVal Index As Integer, ByVal Size As Integer)
    Sub Load(ByVal Stream As System.IO.Stream, ByVal Count As Integer)

[Pascal]
    procedure Load(Buffer : pointer; Size : integer); overload; virtual;
    procedure Load(Stream : TStream; Count : integer = 0); overload; override;

[C++]
    void Load(void * Buffer, int32_t Size);
    void Load(TStream &Stream, int32_t Count);
    void Load(TStream *Stream, int32_t Count);

[PHP]
    void Load(TSBPointer|array of byte|string|NULL $Buffer, integer $Size)
    void Load(TStream $Stream, integer $Count)

[Java]
    void load(InputStream Stream, int Count);
    int load(byte[] Buffer, int Index, int Size);

Parameters

  • Buffer - the buffer with the key and IV.
  • Stream - the stream with the key and IV.
  • Index - the index of the first byte in the buffer from which to start reading.
  • Size - when the method is called, contains the size of the data in the buffer.
    On exit contains the number of bytes, actually used.
  • Count - specifies the number of bytes to be read. If this parameter is zero, the stream from current position till the end is read.
    Default value is 0.

Return value

    Returns

Description

    Use this method to load the key and initial vector from the buffer or stream. The data can be loaded if it was previously saved using Save method.

See also:     Save     Valid    

Discuss this help topic in SecureBlackbox Forum