PublicKey - CreateFromData

[C]

FlowSshC_PublicKey* __cdecl FlowSshC_PublicKey_CreateFromData(
  unsigned char const* data,
  unsigned int dataBytes);

[C++]

[PublicKey] PublicKey(Data const& data);

[C#]

[PublicKey] public PublicKey(byte[] data);

Parameters

  • data: The public-key data. Supported formats are OpenSSH, SSH2, and Bitvise.
       In [C] an array of type unsigned char (=byte).
       In [C++] a Data object.
       In [.NET] an array of type Byte.
  • [C] dataBytes: Number of bytes in the array.

[C] Return Value

On success, returns a pointer to the created FlowSshC_PublicKey. If the data is corrupt, NULL is returned.

Remarks

Creates a public-key from the given data. Supported data formats are OpenSSH, SSH2, and Bitvise.
[C++/.NET] A PublicKeyLoadException is thrown if the data is corrupt.