Discuss this help topic in SecureBlackbox Forum

TElSymmetricKeyMaterial.Save

TElSymmetricKeyMaterial     See also     


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


Saves the key and initial vector to the stream.

Declaration

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

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

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

[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)

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.

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