ddn.crypto.key.x448

X448 Keys.

Types 2

X448 Public Key. Contains the 56-byte u-coordinate (Little Endian).

Fields
ubyte[56] u
Methods
string algorithm() @property const nothrow @safe @nogc pure
string format() @property const nothrow @safe @nogc pure
const(ubyte)[] encoded() @property const @trusted
size_t toHash() const nothrow
bool opEquals(const Key other) const
Constructors
this(const(ubyte)[] uBytes)

X448 Private Key. Contains the 56-byte secret scalar (Little Endian).

Fields
ubyte[56] scalar
Methods
string algorithm() @property const nothrow @safe @nogc pure
string format() @property const nothrow @safe @nogc pure
const(ubyte)[] encoded() @property const @trusted
size_t toHash() const nothrow
bool opEquals(const Key other) const
Constructors
this(const(ubyte)[] scalarBytes)
Destructors

Functions 4

fnubyte[] encodeX448Spki(X448PublicKey key)Encodes an X448 public key as DER SubjectPublicKeyInfo (RFC 8410).
fnX448PublicKey decodeX448Spki(const(ubyte)[] der)Decodes an X448 public key from DER SubjectPublicKeyInfo (RFC 8410).
fnubyte[] encodeX448Pkcs8(X448PrivateKey key)Encodes an X448 private key as DER PKCS#8 PrivateKeyInfo (RFC 8410).
fnX448PrivateKey decodeX448Pkcs8(const(ubyte)[] der)Decodes an X448 private key from DER PKCS#8 PrivateKeyInfo (RFC 8410).