pub enum SlhDsaPublicKey {
Sha2_128s(VerifyingKey<Sha2_128s>),
Sha2_128f(VerifyingKey<Sha2_128f>),
Sha2_192s(VerifyingKey<Sha2_192s>),
Sha2_192f(VerifyingKey<Sha2_192f>),
Sha2_256s(VerifyingKey<Sha2_256s>),
Sha2_256f(VerifyingKey<Sha2_256f>),
Shake128s(VerifyingKey<Shake128s>),
Shake128f(VerifyingKey<Shake128f>),
Shake192s(VerifyingKey<Shake192s>),
Shake192f(VerifyingKey<Shake192f>),
Shake256s(VerifyingKey<Shake256s>),
Shake256f(VerifyingKey<Shake256f>),
}Variants§
Sha2_128s(VerifyingKey<Sha2_128s>)
Sha2_128f(VerifyingKey<Sha2_128f>)
Sha2_192s(VerifyingKey<Sha2_192s>)
Sha2_192f(VerifyingKey<Sha2_192f>)
Sha2_256s(VerifyingKey<Sha2_256s>)
Sha2_256f(VerifyingKey<Sha2_256f>)
Shake128s(VerifyingKey<Shake128s>)
Shake128f(VerifyingKey<Shake128f>)
Shake192s(VerifyingKey<Shake192s>)
Shake192f(VerifyingKey<Shake192f>)
Shake256s(VerifyingKey<Shake256s>)
Shake256f(VerifyingKey<Shake256f>)
Implementations§
Trait Implementations§
Source§impl DecodePublicKey for SlhDsaPublicKey
impl DecodePublicKey for SlhDsaPublicKey
Source§fn from_public_key_der(bytes: &[u8]) -> Result<Self>
fn from_public_key_der(bytes: &[u8]) -> Result<Self>
Deserialize object from ASN.1 DER-encoded [
SubjectPublicKeyInfo]
(binary format).§fn from_public_key_pem(s: &str) -> Result<Self, Error>
fn from_public_key_pem(s: &str) -> Result<Self, Error>
Deserialize PEM-encoded [
SubjectPublicKeyInfo]. Read more§fn read_public_key_der_file(path: impl AsRef<Path>) -> Result<Self, Error>
fn read_public_key_der_file(path: impl AsRef<Path>) -> Result<Self, Error>
Load public key object from an ASN.1 DER-encoded file on the local
filesystem (binary format).
§fn read_public_key_pem_file(path: impl AsRef<Path>) -> Result<Self, Error>
fn read_public_key_pem_file(path: impl AsRef<Path>) -> Result<Self, Error>
Load public key object from a PEM-encoded file on the local filesystem.
Source§impl EncodePublicKey for SlhDsaPublicKey
impl EncodePublicKey for SlhDsaPublicKey
Source§fn to_public_key_der(&self) -> Result<Document>
fn to_public_key_der(&self) -> Result<Document>
Serialize a [
Document] containing a SPKI-encoded public key.§fn to_public_key_pem(&self, line_ending: LineEnding) -> Result<String, Error>
fn to_public_key_pem(&self, line_ending: LineEnding) -> Result<String, Error>
Serialize this public key as PEM-encoded SPKI with the given [
LineEnding].Source§impl From<&SlhDsaPrivateKey> for SlhDsaPublicKey
impl From<&SlhDsaPrivateKey> for SlhDsaPublicKey
Source§fn from(sk: &SlhDsaPrivateKey) -> Self
fn from(sk: &SlhDsaPrivateKey) -> Self
Converts to this type from the input type.
Source§impl From<SlhDsaPublicKey> for AttributeMap
impl From<SlhDsaPublicKey> for AttributeMap
Source§fn from(sk: SlhDsaPublicKey) -> Self
fn from(sk: SlhDsaPublicKey) -> Self
Converts to this type from the input type.
Source§impl TryFrom<&AttributeMap> for SlhDsaPublicKey
impl TryFrom<&AttributeMap> for SlhDsaPublicKey
Auto Trait Implementations§
impl Freeze for SlhDsaPublicKey
impl RefUnwindSafe for SlhDsaPublicKey
impl Send for SlhDsaPublicKey
impl Sync for SlhDsaPublicKey
impl Unpin for SlhDsaPublicKey
impl UnwindSafe for SlhDsaPublicKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> EncodeRsaPublicKey for Twhere
T: EncodePublicKey,
impl<T> EncodeRsaPublicKey for Twhere
T: EncodePublicKey,
§fn to_pkcs1_der(&self) -> Result<Document, Error>
fn to_pkcs1_der(&self) -> Result<Document, Error>
Serialize a [
Document] containing a PKCS#1-encoded public key.§fn to_pkcs1_pem(&self, line_ending: LineEnding) -> Result<String, Error>
fn to_pkcs1_pem(&self, line_ending: LineEnding) -> Result<String, Error>
Serialize this public key as PEM-encoded PKCS#1 with the given line ending.