From b36057198afa859ec889aa06f8187e0d46fca259 Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Wed, 17 Oct 2018 20:57:11 +0300 Subject: [PATCH] got hash --- client/cmdhffido.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/cmdhffido.c b/client/cmdhffido.c index 49804daa..271f7bd1 100644 --- a/client/cmdhffido.c +++ b/client/cmdhffido.c @@ -159,6 +159,11 @@ int CmdHFFidoRegister(const char *cmd) { PrintAndLog("Key handle[%d]: %s", keyHandleLen, sprint_hex(&buf[67], keyHandleLen)); PrintAndLog("DER certificate[%d]: %s", keyHandleLen, sprint_hex(&buf[67 + keyHandleLen], 20)); + int derLen = 700; + int hashp = 1 + 65 + 1 + keyHandleLen + derLen; + PrintAndLog("Hash[%d]: %s", len - hashp, sprint_hex(&buf[hashp], len - hashp)); + + // check ANSI X9.62 format ECDSA signature (on P-256) DropField();