aws_lc_rs::encoding

Trait AsDer

Source
pub trait AsDer<T> {
    // Required method
    fn as_der(&self) -> Result<T, Unspecified>;
}
Expand description

Trait for types that can be serialized into a DER format.

Required Methods§

Source

fn as_der(&self) -> Result<T, Unspecified>

Serializes into a DER format.

§Errors

Returns Unspecified if serialization fails.

Implementors§

Source§

impl AsDer<EcPrivateKeyRfc5915Der<'static>> for aws_lc_rs::agreement::PrivateKey

Source§

impl AsDer<EcPrivateKeyRfc5915Der<'static>> for aws_lc_rs::signature::EcdsaPrivateKey<'_>

Source§

impl AsDer<Pkcs8V1Der<'static>> for KeyPair

Source§

impl AsDer<Pkcs8V1Der<'static>> for PrivateDecryptingKey

Source§

impl AsDer<Pkcs8V1Der<'static>> for Ed25519KeyPair

Source§

impl AsDer<Pkcs8V2Der<'static>> for Ed25519KeyPair

Source§

impl AsDer<PublicKeyX509Der<'static>> for aws_lc_rs::agreement::PublicKey

Source§

impl AsDer<PublicKeyX509Der<'static>> for PublicEncryptingKey

Source§

impl AsDer<PublicKeyX509Der<'static>> for aws_lc_rs::signature::EcdsaPublicKey