authentication with ecdsa p256r1

This commit is contained in:
NIIBE Yutaka
2014-02-20 10:58:51 +09:00
parent a32f577dfa
commit 01806c2e5e
3 changed files with 9 additions and 6 deletions

View File

@@ -965,8 +965,8 @@ cmd_internal_authenticate (void)
}
res_APDU_size = ECDSA_SIGNATURE_LENGTH;
r = ecdsa_sign (apdu.cmd_apdu_data, res_APDU,
kd[GPG_KEY_FOR_AUTHENTICATION]->data);
r = ecdsa_sign_p256r1 (apdu.cmd_apdu_data, res_APDU,
kd[GPG_KEY_FOR_AUTHENTICATION]->data);
if (r < 0)
GPG_ERROR ();
}