From 809e0ebdb7ab80159d3660ae268488844d350850 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Fri, 18 Sep 2015 11:04:47 +0200 Subject: [PATCH] use in, not signinput to actually sign anything in the ecc case --- tool/yubico-piv-tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/yubico-piv-tool.c b/tool/yubico-piv-tool.c index 9cebb42..fd0e8a0 100644 --- a/tool/yubico-piv-tool.c +++ b/tool/yubico-piv-tool.c @@ -98,7 +98,7 @@ static bool sign_data(ykpiv_state *state, const unsigned char *in, size_t len, u in = signinput; len = padlen; } - if(ykpiv_sign_data(state, signinput, len, out, out_len, algorithm, key) == YKPIV_OK) { + if(ykpiv_sign_data(state, in, len, out, out_len, algorithm, key) == YKPIV_OK) { return true; } return false;