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

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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

Calls U::from(self).

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

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more