Trait CurveAlgorithm

Source
pub trait CurveAlgorithm {
    // Required method
    fn asymmetric_algorithm() -> Algorithm;
}
Expand description

Mappings from ECDSA curves to their corresponding asymmetric algorithm

Required Methods§

Source

fn asymmetric_algorithm() -> Algorithm

YubiHSM asymmetric algorithm for this elliptic curve

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 CurveAlgorithm for NistP256

Source§

impl CurveAlgorithm for NistP384

Source§

impl CurveAlgorithm for Secp256k1

Available on crate feature secp256k1 only.