Skip to main content

SignatureAlgorithmIdentifier

Trait SignatureAlgorithmIdentifier 

Source
pub trait SignatureAlgorithmIdentifier {
    type Params: Tagged + EncodeValue;

    const SIGNATURE_ALGORITHM_IDENTIFIER: AlgorithmIdentifier<Self::Params>;
}
Available on crate feature pkcs8 only.
Expand description

Returns AlgorithmIdentifier associated with the signature system.

Unlike AssociatedAlgorithmIdentifier this is intended to be implemented for public and/or private keys.

Required Associated Constants§

Source

const SIGNATURE_ALGORITHM_IDENTIFIER: AlgorithmIdentifier<Self::Params>

AlgorithmIdentifier for the corresponding signature system.

Required Associated Types§

Source

type Params: Tagged + EncodeValue

Algorithm parameters.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<P> SignatureAlgorithmIdentifier for ExpandedSigningKey<P>
where P: MlDsaParams + AssociatedAlgorithmIdentifier<Params = AnyRef<'static>>,

Source§

const SIGNATURE_ALGORITHM_IDENTIFIER: AlgorithmIdentifier<Self::Params> = Signature<P>::ALGORITHM_IDENTIFIER

Source§

type Params = AnyRef<'static>

Source§

impl<P> SignatureAlgorithmIdentifier for SigningKey<P>
where P: MlDsaParams + AssociatedAlgorithmIdentifier<Params = AnyRef<'static>>,

Source§

const SIGNATURE_ALGORITHM_IDENTIFIER: AlgorithmIdentifier<Self::Params> = Signature<P>::ALGORITHM_IDENTIFIER

Source§

type Params = AnyRef<'static>

Source§

impl<P> SignatureAlgorithmIdentifier for VerifyingKey<P>
where P: MlDsaParams + AssociatedAlgorithmIdentifier<Params = AnyRef<'static>>,

Source§

const SIGNATURE_ALGORITHM_IDENTIFIER: AlgorithmIdentifier<Self::Params> = Signature<P>::ALGORITHM_IDENTIFIER

Source§

type Params = AnyRef<'static>