diff options
Diffstat (limited to 'src/signed.rs')
-rw-r--r-- | src/signed.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/signed.rs b/src/signed.rs index 9f0d184..4da6760 100644 --- a/src/signed.rs +++ b/src/signed.rs @@ -1,7 +1,3 @@ -// This code was adapted from the cookie crate which does not make the sign and verify functions public -// forcing the use of CookieJars, which are akward to work with without a high-level framework. -// Thanks to Sergio Benitez for writing the original code and releasing it under MIT! - use hmac::{Hmac,NewMac,Mac}; use sha2::Sha256; @@ -9,6 +5,10 @@ const SIGNED_KEY_LEN: usize = 32; const BASE64_DIGEST_LEN: usize = 44; /// A convenience wrapper around HMAC. +/// +/// This code was adapted from the [`cookie`] crate which does not make the sign and verify functions public +/// forcing the use of [`CookieJar`](cookie::CookieJar)s, which are akward to work with without a high-level framework. +// Thanks to Sergio Benitez for writing the original code and releasing it under MIT! pub struct Key (pub [u8; SIGNED_KEY_LEN]); impl Key { |