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§
source§impl Clone for DeprecatedAlgorithm
impl Clone for DeprecatedAlgorithm
source§fn clone(&self) -> DeprecatedAlgorithm
fn clone(&self) -> DeprecatedAlgorithm
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more