Struct webrtc_sctp::stack::cookie::Secret[][src]

pub struct Secret { /* fields omitted */ }

The Secret struct contains a secret key to be used for generating HMACs, and provides functions for basic MAC generation and verification. A Secret is cloneable and maintains a shared inner state so all holders of a cloned Secret will access the same key. The secret may (and should) be periodically regenerated via regenerate(). The Secret will store a copy of the previous key which may be used for verifying cookies with timestamps indicating they were produced prior to the generation of the current key. Therefore, cookies in transit during a regeneration may still be verified (until the next regeneration, of course).

Methods

impl Secret
[src]

Trait Implementations

impl Clone for Secret
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Secret
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Secret

impl !Sync for Secret