SigningKey
struct SigningKey
Methods
verifying_key
pub fn verifying_key(self): VerifyingKey
Returns the VerifyingKey which corresponds to this SigningKey.
verifying_key
pub fn verifying_key(self): VerifyingKey
Returns the VerifyingKey which corresponds to this SigningKey.
Returns the VerifyingKey which corresponds to this SigningKey.
to_pkcs8_pem
pub fn to_pkcs8_pem(self): string throws Pkcs8Error
Encode the PKCS#8-encoded signing key to PEM.
to_pkcs8_pem
pub fn to_pkcs8_pem(self): string throws Pkcs8Error
Encode the PKCS#8-encoded signing key to PEM.
Encode the PKCS#8-encoded signing key to PEM.
to_pkcs8_der
pub fn to_pkcs8_der(self): Bytes throws Pkcs8Error
Encode the PKCS#8-encoded signing key to ASN.1 DER-encoded data (binary format).
to_pkcs8_der
pub fn to_pkcs8_der(self): Bytes throws Pkcs8Error
Encode the PKCS#8-encoded signing key to ASN.1 DER-encoded data (binary format).
Encode the PKCS#8-encoded signing key to ASN.1 DER-encoded data (binary format).
sign
pub fn sign(self, message: Bytes): Bytes throws Ed25519Error
Sign the given message and return a digital signature
sign
pub fn sign(self, message: Bytes): Bytes throws Ed25519Error
Sign the given message and return a digital signature
Sign the given message and return a digital signature
parse_pkcs8_pem
pub fn parse_pkcs8_pem(pem: string): SigningKey throws Pkcs8Error
Parse PKCS#8-encoded signing key from PEM.
parse_pkcs8_pem
pub fn parse_pkcs8_pem(pem: string): SigningKey throws Pkcs8Error
Parse PKCS#8-encoded signing key from PEM.
Parse PKCS#8-encoded signing key from PEM.
_new
pub fn _new(rng: NativeRead): SigningKey
_new
pub fn _new(rng: NativeRead): SigningKey
parse_pkcs8_der
pub fn parse_pkcs8_der(data: Bytes): SigningKey throws Pkcs8Error
Parse PKCS#8-encoded signing key from ASN.1 DER-encoded data (binary format).
parse_pkcs8_der
pub fn parse_pkcs8_der(data: Bytes): SigningKey throws Pkcs8Error
Parse PKCS#8-encoded signing key from ASN.1 DER-encoded data (binary format).
Parse PKCS#8-encoded signing key from ASN.1 DER-encoded data (binary format).