SigningKey
struct SigningKey
new
pub fn new(curve: Curve, rng: Read = RandReader.new()): SigningKey
[src]
pub fn new(curve: Curve, rng: Read = RandReader.new()): SigningKey {
return SigningKey._new(curve as int, _create_native_read(rng));
}
Generate a cryptographically random SigningKey.
new
pub fn new(curve: Curve, rng: Read = RandReader.new()): SigningKey
[src]
pub fn new(curve: Curve, rng: Read = RandReader.new()): SigningKey {
return SigningKey._new(curve as int, _create_native_read(rng));
}
Generate a cryptographically random SigningKey.
Generate a cryptographically random SigningKey.
parse_pkcs8_der
pub fn parse_pkcs8_der(curve: Curve, data: Bytes): SigningKey throws Pkcs8Error
[src]
pub fn parse_pkcs8_der(curve: Curve, data: Bytes): SigningKey throws Pkcs8Error {
return try SigningKey._parse_pkcs8_der(curve as int, data);
}
Parse PKCS#8-encoded signing key from ASN.1 DER-encoded data (binary format).
parse_pkcs8_der
pub fn parse_pkcs8_der(curve: Curve, data: Bytes): SigningKey throws Pkcs8Error
[src]
pub fn parse_pkcs8_der(curve: Curve, data: Bytes): SigningKey throws Pkcs8Error {
return try SigningKey._parse_pkcs8_der(curve as int, data);
}
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).
parse_pkcs8_pem
pub fn parse_pkcs8_pem(curve: Curve, pem: string): SigningKey throws Pkcs8Error
[src]
pub fn parse_pkcs8_pem(curve: Curve, pem: string): SigningKey throws Pkcs8Error {
return try SigningKey._parse_pkcs8_pem(curve as int, pem);
}
Parse PKCS#8-encoded signing key from PEM.
parse_pkcs8_pem
pub fn parse_pkcs8_pem(curve: Curve, pem: string): SigningKey throws Pkcs8Error
[src]
pub fn parse_pkcs8_pem(curve: Curve, pem: string): SigningKey throws Pkcs8Error {
return try SigningKey._parse_pkcs8_pem(curve as int, pem);
}
Parse PKCS#8-encoded signing key from PEM.
Parse PKCS#8-encoded signing key from PEM.
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
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).
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.
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.