PublicKey
struct PublicKey
to_spki_pem
pub fn to_spki_pem(self): string throws SpkiError
Encode the SPKI-encoded public key to PEM.
to_spki_pem
pub fn to_spki_pem(self): string throws SpkiError
Encode the SPKI-encoded public key to PEM.
Encode the SPKI-encoded public key to PEM.
to_spki_der
pub fn to_spki_der(self): Bytes throws SpkiError
Encode the SPKI-encoded public 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 public key to ASN.1 DER-encoded data (binary format).
Encode the SPKI-encoded public key to ASN.1 DER-encoded data (binary format).
to_pkcs1_pem
pub fn to_pkcs1_pem(self): string throws Pkcs1Error
Encode the PKCS#1-encoded public key to PEM.
to_pkcs1_pem
pub fn to_pkcs1_pem(self): string throws Pkcs1Error
Encode the PKCS#1-encoded public key to PEM.
Encode the PKCS#1-encoded public key to PEM.
to_pkcs1_der
pub fn to_pkcs1_der(self): Bytes throws Pkcs1Error
Encode the PKCS#1-encoded public key to ASN.1 DER-encoded data (binary format).
to_pkcs1_der
pub fn to_pkcs1_der(self): Bytes throws Pkcs1Error
Encode the PKCS#1-encoded public key to ASN.1 DER-encoded data (binary format).
Encode the PKCS#1-encoded public key to ASN.1 DER-encoded data (binary format).
Returns the exponent of the public key.
Returns the exponent of the public key.
Returns the exponent of the public key.
Returns the modulus of the public key.
Returns the modulus of the public key.
Returns the modulus of the public key.
operator!=:2
pub fn operator!=:2(self, b: PublicKey): bool
operator!=:2
pub fn operator!=:2(self, b: PublicKey): bool
operator==:2
pub fn operator==:2(self, b: PublicKey): bool
operator==:2
pub fn operator==:2(self, b: PublicKey): bool
_verify_pss
pub fn _verify_pss(self, digest: NativeHash, message: Bytes, sig: Bytes, salt_len: int?): bool
_verify_pss
pub fn _verify_pss(self, digest: NativeHash, message: Bytes, sig: Bytes, salt_len: int?): bool
_verify_pkcs1v15
pub fn _verify_pkcs1v15(self, digest: NativeHash, oid: Bytes, message: Bytes, sig: Bytes): bool
_verify_pkcs1v15
pub fn _verify_pkcs1v15(self, digest: NativeHash, oid: Bytes, message: Bytes, sig: Bytes): bool
_encrypt_pkcs1v15
pub fn _encrypt_pkcs1v15(self, rng: NativeRead, message: Bytes): Bytes throws RsaError
_encrypt_pkcs1v15
pub fn _encrypt_pkcs1v15(self, rng: NativeRead, message: Bytes): Bytes throws RsaError
_encrypt_oeap
pub fn _encrypt_oeap(self, rng: NativeRead, digest: NativeHash, mgf_digest: NativeHash, message: Bytes, label: string?): Bytes throws RsaError
_encrypt_oeap
pub fn _encrypt_oeap(self, rng: NativeRead, digest: NativeHash, mgf_digest: NativeHash, message: Bytes, label: string?): Bytes throws RsaError
parse_spki_pem
pub fn parse_spki_pem(pem: string): PublicKey throws SpkiError
Parse SPKI-encoded public key from PEM.
parse_spki_pem
pub fn parse_spki_pem(pem: string): PublicKey throws SpkiError
Parse SPKI-encoded public key from PEM.
Parse SPKI-encoded public key from PEM.
parse_spki_der
pub fn parse_spki_der(data: Bytes): PublicKey throws SpkiError
Parse SPKI-encoded public key from ASN.1 DER-encoded data (binary format).
parse_spki_der
pub fn parse_spki_der(data: Bytes): PublicKey throws SpkiError
Parse SPKI-encoded public key from ASN.1 DER-encoded data (binary format).
Parse SPKI-encoded public key from ASN.1 DER-encoded data (binary format).
parse_pkcs1_pem
pub fn parse_pkcs1_pem(pem: string): PublicKey throws Pkcs1Error
Parse PKCS#1-encoded public key from PEM.
parse_pkcs1_pem
pub fn parse_pkcs1_pem(pem: string): PublicKey throws Pkcs1Error
Parse PKCS#1-encoded public key from PEM.
Parse PKCS#1-encoded public key from PEM.
parse_pkcs1_der
pub fn parse_pkcs1_der(data: Bytes): PublicKey throws Pkcs1Error
Parse PKCS#1-encoded public key from ASN.1 DER-encoded data (binary format).
parse_pkcs1_der
pub fn parse_pkcs1_der(data: Bytes): PublicKey throws Pkcs1Error
Parse PKCS#1-encoded public key from ASN.1 DER-encoded data (binary format).
Parse PKCS#1-encoded public key from ASN.1 DER-encoded data (binary format).