chiark
/
gitweb
/
~ian
/
hippotat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tokens: fiddle with commented-out debugging
[hippotat.git]
/
src
/
utils.rs
diff --git
a/src/utils.rs
b/src/utils.rs
index e8508b5a6909030fcca62c32884d0b4365029445..5c1075205bb2eef874e52ade33c3fcf4f9aaf661 100644
(file)
--- a/
src/utils.rs
+++ b/
src/utils.rs
@@
-82,7
+82,7
@@
pub fn token_hmac(key: &[u8], message: &[u8]) -> [u8; HMAC_L] {
let mut ikey = key; for k in &mut ikey { *k ^= 0x36; }
let mut okey = key; for k in &mut okey { *k ^= 0x5C; }
-
//dbg!(&key, &ikey, &okey
);
+
//dbg!(DumpHex(&key), DumpHex(message), DumpHex(&ikey), DumpHex(&okey)
);
let h1 = HmacH::new()
.chain(&ikey)