diff --git a/src/fido/param.h b/src/fido/param.h index fb66abfd..1c22cc28 100644 --- a/src/fido/param.h +++ b/src/fido/param.h @@ -74,6 +74,7 @@ /* ISO7816-4 status words. */ #define SW1_MORE_DATA 0x61 +#define SW_WRONG_LENGTH 0x6700 #define SW_CONDITIONS_NOT_SATISFIED 0x6985 #define SW_WRONG_DATA 0x6a80 #define SW_NO_ERROR 0x9000 diff --git a/src/u2f.c b/src/u2f.c index b1f7bce3..2620a2eb 100644 --- a/src/u2f.c +++ b/src/u2f.c @@ -260,6 +260,7 @@ key_lookup(fido_dev_t *dev, const char *rp_id, const fido_blob_t *key_id, *found = 1; /* key exists */ break; case SW_WRONG_DATA: + case SW_WRONG_LENGTH: *found = 0; /* key does not exist */ break; default: