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 EcdsaError
Sign the given message and return a digital signature
sign
pub fn sign(self, message: Bytes): Bytes throws EcdsaError
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(curve: int, pem: string): SigningKey throws Pkcs8Error
_parse_pkcs8_pem
pub fn _parse_pkcs8_pem(curve: int, pem: string): SigningKey throws Pkcs8Error
_parse_pkcs8_der
pub fn _parse_pkcs8_der(curve: int, data: Bytes): SigningKey throws Pkcs8Error
_parse_pkcs8_der
pub fn _parse_pkcs8_der(curve: int, data: Bytes): SigningKey throws Pkcs8Error
_new
pub fn _new(curve: int, rng: NativeRead): SigningKey
_new
pub fn _new(curve: int, rng: NativeRead): SigningKey