[][src]Enum http_signature_normalization::verify::DeprecatedAlgorithm

pub enum DeprecatedAlgorithm {
    HmacSha1,
    HmacSha256,
    HmacSha384,
    HmacSha512,
    RsaSha1,
    RsaSha256,
    RsaSha384,
    RsaSha512,
    EcdsaSha1,
    EcdsaSha256,
    EcdsaSha384,
    EcdsaSha512,
}

Algorithms that may be present in an HTTP Signature's algorithm field, but are considered deprecated due to security issues

Most of these are Deprecated solely because the presence of the algorithm's name in the request could be used to gain insight into ways to forge requests. This doesn't mean that using these algorithms to sign and verify requests is bad, it just means that stating which algorithm is in use is dangerous. In the case of the SHA1 variants, they were deprecated for being weak hashes.

This library only produces HTTP Signatures with the "HS2019" algorithm type, and leaves deciding which algorithm to actually use to implementors

Variants

HmacSha1

HMAC SHA-1

HmacSha256

HMAC SHA-256

HmacSha384

HMAC SHA-384

HmacSha512

HMAC SHA-512

RsaSha1

RSA SHA-1

RsaSha256

RSA SHA-256

RsaSha384

RSA SHA-384

RsaSha512

RSA SHA-512

EcdsaSha1

ECDSA SHA-1

EcdsaSha256

ECDSA SHA-256

EcdsaSha384

ECDSA SHA-384

EcdsaSha512

ECDSA SHA-512

Trait Implementations

impl Clone for DeprecatedAlgorithm[src]

impl Copy for DeprecatedAlgorithm[src]

impl Debug for DeprecatedAlgorithm[src]

impl From<DeprecatedAlgorithm> for Algorithm[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.