Discuss this help topic in SecureBlackbox Forum

TElPublicKeyMaterial.SavePublic

TElPublicKeyMaterial     See also     


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


Saves public part of the key

Declaration

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

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

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

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

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

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

Parameters

  • Buffer - The buffer where key material should be saved
  • Index - Start offset of the key material in buffer
  • Size - The length of the buffer where to save the key material. When the method returns, Size parameter contains the number of bytes actually written, or, if the buffer was too small, the size of the buffer enough to hold the data.
  • Stream - The stream to which the key is written.

Description

    Use this method to save public part of the key.

See also:     Load     LoadPublic     LoadSecret     Save     SaveSecret     PublicKey     SecretKey    

Discuss this help topic in SecureBlackbox Forum