Discuss this help topic in SecureBlackbox Forum

TElRSAKeyMaterial.LoadPublic

TElRSAKeyMaterial     See also     


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


Loads public part of the key

Declaration

[C#/Java]
    void LoadPublic(byte[] Buffer, int Start, int Size);
    void LoadPublic(byte[] Modulus, int ModulusStartIndex, int ModulusSize, byte[] Exponent, int ExponentStartIndex, int ExponentSize);
    void LoadPublic(System.IO.Stream Stream, int Count);

[VB.NET]
    Sub LoadPublic(ByVal Buffer As Byte(), ByVal Start As Integer, ByVal Size As Integer)
    Sub LoadPublic(ByVal Modulus As Byte(), ByVal ModulusStartIndex As Integer, ByVal ModulusSize As Integer, ByVal Exponent As Byte(), ByVal ExponentStartIndex As Integer, ByVal ExponentSize As Integer)
    Sub LoadPublic(ByVal Stream As System.IO.Stream, ByVal Count As Integer)

[Pascal]
    procedure LoadPublic(Buffer : pointer; Size : integer);
    procedure LoadPublic(Modulus : pointer; ModulusSize : integer; Exponent : pointer; ExponentSize : integer);

[C++]
    void LoadPublic(void * Buffer, int32_t Size);
    void LoadPublic(void * Modulus, int32_t ModulusSize, void * Exponent, int32_t ExponentSize);

[PHP]
    void LoadPublic(TSBPointer|array of byte|string|NULL $Buffer, integer $Size)
    void LoadPublic(TSBPointer|array of byte|string|NULL $Modulus, integer $ModulusSize, TSBPointer|array of byte|string|NULL $Exponent, integer $ExponentSize)
    void LoadPublic(TStream $Stream, integer $Count)

Parameters

  • Buffer - The buffer that stores the key material.
  • Start - (not yet)
  • Size - The length of key material.
  • Modulus - (not yet)
  • ModulusStartIndex - (not yet)
  • ModulusSize - (not yet)
  • Exponent - (not yet)
  • ExponentStartIndex - (not yet)
  • ExponentSize - (not yet)
  • Stream - ...
  • Count - ...

Description

    Use this method to load public part of the key. When loading the key, check that the value of RawPublicKey property of the "source" key material (from which the data was saved) matches the value of RawPublicKey property of the key material object, into which you load the data.

See also:     RawPublicKey property     Load method     LoadSecret method     SavePublic method     SaveSecret method    

Discuss this help topic in SecureBlackbox Forum