summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Shkardoon <stephen@zxsecurity.co.nz>2019-10-08 11:42:10 +0200
committerStephen Shkardoon <stephen@zxsecurity.co.nz>2019-10-08 11:42:10 +0200
commita0a4c66e63297244a42788dd05a68e15497918ff (patch)
tree676c85c4316741aacb5dcc952559678f0299b9e5
parentAdd MAC validation to decode-qr-uri.py (diff)
downloadentrust-identityguard-tools-a0a4c66e63297244a42788dd05a68e15497918ff.tar
entrust-identityguard-tools-a0a4c66e63297244a42788dd05a68e15497918ff.tar.gz
entrust-identityguard-tools-a0a4c66e63297244a42788dd05a68e15497918ff.tar.bz2
entrust-identityguard-tools-a0a4c66e63297244a42788dd05a68e15497918ff.tar.lz
entrust-identityguard-tools-a0a4c66e63297244a42788dd05a68e15497918ff.tar.xz
entrust-identityguard-tools-a0a4c66e63297244a42788dd05a68e15497918ff.tar.zst
entrust-identityguard-tools-a0a4c66e63297244a42788dd05a68e15497918ff.zip
-rwxr-xr-xdecode-qr-uri.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/decode-qr-uri.py b/decode-qr-uri.py
index 493f086..1f0489d 100755
--- a/decode-qr-uri.py
+++ b/decode-qr-uri.py
@@ -70,6 +70,8 @@ logging.debug("KDF Output: 0x%s", key.hex())
macedPayload = o.query[0:o.query.rfind('&')] # mac is last param, so can remove it this way
hmacKey = key[16:48]
+logging.debug("HMAC Key: 0x%s", hmacKey.hex())
+
hmacer = hmac.new(hmacKey, digestmod=hashlib.sha256)
hmacer.update(macedPayload.encode('utf-8'))
hmacDigest = hmacer.digest()