Enum http_signatures::SignatureAlgorithm [] [src]

pub enum SignatureAlgorithm {
    RSA(ShaSize),
    HMAC(ShaSize),
}

Which algorithm should be used to create an HTTP header.

This library uses Ring 0.11.0 for creating and verifying hashes, so this determines whether the library will use Ring's RSA Signatures or Rings's HMAC signatures.

Variants

RSA

HMAC

Trait Implementations

impl Debug for SignatureAlgorithm
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for SignatureAlgorithm
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> TryFrom<&'a str> for SignatureAlgorithm
[src]

Convert an &str into a SignatureAlgorithm

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

[src]

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl From<SignatureAlgorithm> for &'static str
[src]

Convert a SignatureAlgorithm into an &str

[src]

Performs the conversion.

Auto Trait Implementations