From: joernchen of Phenoelit Date: Sat, 18 Jan 2014 19:21:07 +0000 (+0100) Subject: Make -6 and -8 available for non time based HMACs X-Git-Tag: v1.15.1~39 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96283c5521605077f837feb57190ca93cdf3d388;p=yubikey-personalization Make -6 and -8 available for non time based HMACs --- diff --git a/ykchalresp.c b/ykchalresp.c index 3773df7..370291f 100644 --- a/ykchalresp.c +++ b/ykchalresp.c @@ -250,7 +250,7 @@ static int challenge_response(YK_KEY *yk, int slot, /* HMAC responses are 160 bits, Yubico 128 */ expect_bytes = (hmac == true) ? 20 : 16; - if(totp && digits){ + if(digits){ offset = response[19] & 0xf ; bin_code = (response[offset] & 0x7f) << 24 | (response[offset+1] & 0xff) << 16