Enum SlhDsaPublicKey

Source
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

Source§

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>

Deserialize PEM-encoded [SubjectPublicKeyInfo]. Read more
§

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>

Load public key object from a PEM-encoded file on the local filesystem.
Source§

impl EncodePublicKey for SlhDsaPublicKey

Source§

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>

Serialize this public key as PEM-encoded SPKI with the given [LineEnding].
§

fn write_public_key_der_file(&self, path: impl AsRef<Path>) -> Result<(), Error>

Write ASN.1 DER-encoded public key to the given path
§

fn write_public_key_pem_file( &self, path: impl AsRef<Path>, line_ending: LineEnding, ) -> Result<(), Error>

Write ASN.1 DER-encoded public key to the given path
Source§

impl From<&SlhDsaPrivateKey> for SlhDsaPublicKey

Source§

fn from(sk: &SlhDsaPrivateKey) -> Self

Converts to this type from the input type.
Source§

impl From<SlhDsaPublicKey> for AttributeMap

Source§

fn from(sk: SlhDsaPublicKey) -> Self

Converts to this type from the input type.
Source§

impl TryFrom<&AttributeMap> for SlhDsaPublicKey

Source§

type Error = HsmError

The type returned in the event of a conversion error.
Source§

fn try_from(map: &AttributeMap) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> EncodeRsaPublicKey for T
where T: EncodePublicKey,

§

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>

Serialize this public key as PEM-encoded PKCS#1 with the given line ending.
§

fn write_pkcs1_der_file(&self, path: impl AsRef<Path>) -> Result<(), Error>

Write ASN.1 DER-encoded public key to the given path.
§

fn write_pkcs1_pem_file( &self, path: impl AsRef<Path>, line_ending: LineEnding, ) -> Result<(), Error>

Write ASN.1 DER-encoded public key to the given path.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,