Skip to content

OnixLabs.Security.Cryptography.IPrivateKeyRawExportable

matthew edited this page May 27, 2026 · 1 revision

IPrivateKeyRawExportable Interface

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

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

Definition

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

Remarks

IPrivateKeyRawExportable defines the raw binary export contract. The exported bytes are the algorithm-specific raw key material without any wrapping structure (no PKCS #8 header, no PEM armoring). For a standard interoperable encoding, prefer IPrivateKeyPkcs8Exportable or IPrivateKeyPkcs8PemExportable.

This interface is composed into IPrivateKeyExportable and is also implemented directly by IEddsaPrivateKey.

Methods

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

Export()

byte[] Export();

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

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

See Also

ONIXLabs .NET Library


Clone this wiki locally