Skip to content

OnixLabs.Security.Cryptography.IPublicKeyRawExportable

matthew edited this page May 27, 2026 · 1 revision

IPublicKeyRawExportable Interface

Defines a cryptographic public key that can be exported in its binary form.

Namespace OnixLabs.Security.Cryptography
Assembly OnixLabs.Security.Cryptography.dll (NuGet)

Definition

public interface IPublicKeyRawExportable
{
    byte[] Export();
}

Remarks

IPublicKeyRawExportable defines the contract for exporting a public key's material in its raw binary form. The exact encoding of the returned bytes is implementation-defined (commonly SPKI DER for asymmetric keys, or the algorithm-native wire format).

This interface is composed into IPublicKeyExportable alongside IPublicKeyPemExportable. Callers that need both export forms should depend on IPublicKeyExportable rather than the two leaf interfaces individually.

Methods

Member Returns Description
Export() byte[] Exports the raw public key bytes.

Export()

byte[] Export();

Exports the cryptographic public key data in its raw binary form.

Returns — A byte[] containing the raw public key data.

See Also

ONIXLabs .NET Library


Clone this wiki locally