Discuss this help topic in SecureBlackbox Forum

TElSymmetricKeyMaterial.Save

TElSymmetricKeyMaterial     See also     


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


Saves the key and initial vector to the stream.

Declaration

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

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

[Pascal]
    procedure Save(Buffer : pointer; var Size : integer); overload; virtual;
    procedure Save(Stream : TStream); overload; override;

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

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

[Java]
    void save(OutputStream Stream);
    int save(byte[] Buffer, int Index, int Size);

Parameters

  • Stream - the stream to which the key must be saved.
  • Buffer - the buffer to with the key and IV will be saved.
  • Index - the index of the first byte in the buffer to which to start writing.
  • Size - when the method is called, contains the size of the the buffer.
    On exit contains the number of bytes, actually used.

Return value

    Returns

Description

    Use this method when you want to save the key and initial vector to the buffer or stream.

See also:     Load     Valid    

Discuss this help topic in SecureBlackbox Forum