Returns the signature scheme used to create this signature.
As the reference's Signature::scheme(), an sshsig made with an RSA
key or a P-521 key has no scheme and throws Ssh: Unsupported SSH signature algorithm / Unsupported SSH ECDSA curve.
Returns a human-readable string identifying the signature type.
A string like "Ed25519", "Schnorr", "ECDSA", "MLDSA-44", etc.
The bytes (a view; do not mutate).
StaticcodecTagged-CBOR codec; decode also accepts the untagged form.
StaticschnorrCreates a Schnorr signature from a 64-byte array.
The 64-byte signature data
A new Schnorr signature
StaticschnorrCreates a Schnorr signature from a hex string.
The hex-encoded signature data
A new Schnorr signature
StaticecdsaCreates an ECDSA signature from a 64-byte array.
The 64-byte signature data
A new ECDSA signature
StaticecdsaCreates an ECDSA signature from a hex string.
The hex-encoded signature data
A new ECDSA signature
Staticed25519Creates an Ed25519 signature from a 64-byte array.
The 64-byte signature data
A new Ed25519 signature
Staticed25519Creates an Ed25519 signature from a hex string.
The hex-encoded signature data
A new Ed25519 signature
StaticmldsaCreates a Signature from an MLDSASignature.
The MLDSASignature
A new Signature wrapping the MLDSA signature
StaticfromCreates a Signature from an SSHSignature.
The signature scheme is derived from the inner public-key algorithm,
as the reference implementation does Signature::scheme() at lines 506-519.
The SSHSignature
A new SSH Signature
Returns the Schnorr signature data if this is a Schnorr signature.
The 64-byte signature data if this is a Schnorr signature, undefined otherwise
Checks if this is a Schnorr signature.
Returns the ECDSA signature data if this is an ECDSA signature.
The 64-byte signature data if this is an ECDSA signature, undefined otherwise
Checks if this is an ECDSA signature.
Returns the Ed25519 signature data if this is an Ed25519 signature.
The 64-byte signature data if this is an Ed25519 signature, undefined otherwise
Checks if this is an Ed25519 signature.
Returns the MLDSASignature if this is an MLDSA signature.
The MLDSASignature if this is an MLDSA signature, undefined otherwise
Checks if this is an MLDSA signature.
Returns the underlying SSHSignature if this is an SSH signature.
The SSHSignature if this is an SSH signature, undefined otherwise
Checks if this is an SSH signature.
Get hex string representation of the signature data.
Get string representation.
The CBOR tags this type decodes from; the first one is used to encode.
Returns the untagged CBOR encoding.
Format:
The tagged CBOR form.
As a UR, typed by the first tag's name.
Staticfrom
A digital signature created with various signature algorithms.
Currently supports: