|
SmartFTP FTP Library
|
Utility interface for extracting the raw SSH public key blob from a key object. More...
import "sfFTPLib.idl";
Public Member Functions | |
| HRESULT | GetPublicKeyBlob ([in] IKey *key, [out, retval] VARIANT *retval) |
| serialized the public key into the standard SSH binary blob format. | |
Utility interface for extracting the raw SSH public key blob from a key object.
The Context: In the SSH protocol (RFC 4253), public keys are transmitted as a specific binary structure often called a "Blob". This structure consists of length-prefixed fields (e.g., algorithm name, exponent, modulus).
Usage: Use this interface when you need the raw binary representation of a public key, for example:
| HRESULT ISSHKeyBlobHelper::GetPublicKeyBlob | ( | [in] IKey * | key, |
| [out, retval] VARIANT * | retval ) |
serialized the public key into the standard SSH binary blob format.
The Output: Returns a VARIANT containing a SafeArray of bytes (VT_ARRAY | VT_UI1).
Blob Structure (Example for RSA):
| [in] | key | The source IKey object containing the public key material. |
| [out] | retval | Receives the binary blob data as a byte array. |