Keypair - CreateFromData
[C]
FlowSshC_Keypair* __cdecl FlowSshC_Keypair_CreateFromData(
unsigned char const* data,
unsigned int dataBytes,
wchar_t const* passphrase);
[C++]
[Keypair] Keypair(
Data const& data,
wchar_t const* passphrase);
[C#]
[Keypair] public Keypair(
byte[] data,
string passphrase);
Parameters
- [C] dataBytes: Number of bytes in the array.
- data: The keypair data. Supported formats are OpenSSH and Bitvise.
In [C] an array of type unsigned char (=byte).
In [C++] a Data object.
In [.NET] an array of type Byte. - passphrase: If a keypair is passphrase protected, this value is required in order to decrypt it.
[C] Return Value
On success, returns a pointer to the created FlowSshC_Keypair.
NULL is returned if either the passphrase is wrong or if the data is corrupt.
Remarks
Creates a keypair from the given data. Supported data formats are OpenSSH and Bitvise.
[C++/.NET] A KeypairLoadException is thrown if either the passphrase is wrong or if the data is corrupt.