VerifyingKey
struct VerifyingKey
from_sec1_bytes
pub fn from_sec1_bytes(curve: Curve, data: Bytes): VerifyingKey throws EcdsaError
[src]
pub fn from_sec1_bytes(curve: Curve, data: Bytes): VerifyingKey throws EcdsaError {
return try VerifyingKey._from_sec1_bytes(curve as int, data);
}
Creates a verifying key from a SEC1-encoded public key.
from_sec1_bytes
pub fn from_sec1_bytes(curve: Curve, data: Bytes): VerifyingKey throws EcdsaError
[src]
pub fn from_sec1_bytes(curve: Curve, data: Bytes): VerifyingKey throws EcdsaError {
return try VerifyingKey._from_sec1_bytes(curve as int, data);
}
Creates a verifying key from a SEC1-encoded public key.
Creates a verifying key from a SEC1-encoded public key.
parse_spki_der
pub fn parse_spki_der(curve: Curve, data: Bytes): VerifyingKey throws SpkiError
[src]
pub fn parse_spki_der(curve: Curve, data: Bytes): VerifyingKey throws SpkiError {
return try VerifyingKey._parse_spki_der(curve as int, data);
}
Parse SPKI-encoded verifying key from ASN.1 DER-encoded data (binary format).
parse_spki_der
pub fn parse_spki_der(curve: Curve, data: Bytes): VerifyingKey throws SpkiError
[src]
pub fn parse_spki_der(curve: Curve, data: Bytes): VerifyingKey throws SpkiError {
return try VerifyingKey._parse_spki_der(curve as int, data);
}
Parse SPKI-encoded verifying key from ASN.1 DER-encoded data (binary format).
Parse SPKI-encoded verifying key from ASN.1 DER-encoded data (binary format).
parse_spki_pem
pub fn parse_spki_pem(curve: Curve, pem: string): VerifyingKey throws SpkiError
[src]
pub fn parse_spki_pem(curve: Curve, pem: string): VerifyingKey throws SpkiError {
return try VerifyingKey._parse_spki_pem(curve as int, pem);
}
Parse SPKI-encoded verifying key from PEM.
parse_spki_pem
pub fn parse_spki_pem(curve: Curve, pem: string): VerifyingKey throws SpkiError
[src]
pub fn parse_spki_pem(curve: Curve, pem: string): VerifyingKey throws SpkiError {
return try VerifyingKey._parse_spki_pem(curve as int, pem);
}
Parse SPKI-encoded verifying key from PEM.
Parse SPKI-encoded verifying key from PEM.
to_sec1_bytes
pub fn to_sec1_bytes(self): Bytes
Convert this verifying key into the Elliptic-Curve-Point-to-Octet-String encoding described in SEC 1: Elliptic Curve Cryptography (Version 2.0) section 2.3.3 (page 10).
to_sec1_bytes
pub fn to_sec1_bytes(self): Bytes
Convert this verifying key into the Elliptic-Curve-Point-to-Octet-String encoding described in SEC 1: Elliptic Curve Cryptography (Version 2.0) section 2.3.3 (page 10).
Convert this verifying key into the Elliptic-Curve-Point-to-Octet-String encoding described in SEC 1: Elliptic Curve Cryptography (Version 2.0) section 2.3.3 (page 10).
Reference: http://www.secg.org/sec1-v2.pdf
to_spki_der
pub fn to_spki_der(self): Bytes throws SpkiError
Encode the SPKI-encoded verifying key to ASN.1 DER-encoded data (binary format).
to_spki_der
pub fn to_spki_der(self): Bytes throws SpkiError
Encode the SPKI-encoded verifying key to ASN.1 DER-encoded data (binary format).
Encode the SPKI-encoded verifying key to ASN.1 DER-encoded data (binary format).
to_spki_pem
pub fn to_spki_pem(self): string throws SpkiError
Encode the SPKI-encoded verifying key to PEM.
to_spki_pem
pub fn to_spki_pem(self): string throws SpkiError
Encode the SPKI-encoded verifying key to PEM.
Encode the SPKI-encoded verifying key to PEM.