Type Alias ring::hmac::SigningContext

source ·
pub type SigningContext = Context;
👎Deprecated: Renamed to hmac::Context.
Expand description

hmac::SigningContext was renamed to hmac::Context.

Aliased Type§

struct SigningContext { /* private fields */ }

Implementations§

source§

impl Context

source

pub fn with_key(signing_key: &Key) -> Self

Constructs a new HMAC signing context using the given digest algorithm and key.

source

pub fn update(&mut self, data: &[u8])

Updates the HMAC with all the data in data. update may be called zero or more times until finish is called.

source

pub fn sign(self) -> Tag

Finalizes the HMAC calculation and returns the HMAC value. sign consumes the context so it cannot be (mis-)used after sign has been called.

It is generally not safe to implement HMAC verification by comparing the return value of sign to a tag. Use verify for verification instead.

Trait Implementations§

source§

impl Clone for Context

source§

fn clone(&self) -> Context

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Context

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more