]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
Fix public key lenght to 65 bytes (#725)
authorFl0-0 <Fl0-0@users.noreply.github.com>
Fri, 30 Nov 2018 17:44:52 +0000 (18:44 +0100)
committerpwpiwi <pwpiwi@users.noreply.github.com>
Fri, 30 Nov 2018 17:44:52 +0000 (18:44 +0100)
client/cmdhffido.c

index e2d6c0917dc091d65355df19a4405b8e62361478..357e265c7e79bee7680f90da86745088b575246a 100644 (file)
@@ -531,7 +531,7 @@ int CmdHFFidoAuthenticate(const char *cmd) {
 
        // public key
        CLIGetHexWithReturn(8, hdata, &hdatalen);
 
        // public key
        CLIGetHexWithReturn(8, hdata, &hdatalen);
-       if (hdatalen && hdatalen != 130) {
+       if (hdatalen && hdatalen != 65) {
                PrintAndLog("ERROR: public key length must be 65 bytes only.");
                return 1;
        }
                PrintAndLog("ERROR: public key length must be 65 bytes only.");
                return 1;
        }
Impressum, Datenschutz