From c9d8a3a91084a8f5d70e8586e3568a8b9d7b16ba Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 22 Feb 2013 11:54:18 +0900 Subject: [PATCH] revert signature change patch --- ChangeLog | 8 +------- src/call-ec_p256.c | 2 -- src/openpgp.c | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 79b41ab..44c3c88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,15 +1,9 @@ -2013-02-23 Niibe Yutaka +2013-02-22 Niibe Yutaka * src/openpgp-do.c (GPG_DO_DISCRETIONARY, cmp_discretionary): New. (cmp_app_data): Change to factor out GPG_DO_DISCRETIONARY. (gpg_do_table): Add GPG_DO_DISCRETIONARY. -2013-02-22 Niibe Yutaka - - * src/openpgp.c (ECDSA_SIGNATURE_LENGTH): It's 65. - - * src/call-ec_p256.c (ecdsa_sign): Add a header byte. - 2013-02-21 Niibe Yutaka * src/gnuk.ld.in (MEMORY): Fix adding FLASH_SIZE unit. diff --git a/src/call-ec_p256.c b/src/call-ec_p256.c index 23f4225..a929fb1 100644 --- a/src/call-ec_p256.c +++ b/src/call-ec_p256.c @@ -43,8 +43,6 @@ ecdsa_sign (const uint8_t *hash, uint8_t *output, bn256 r[1], s[1], z[1], d[1]; uint8_t *p; - *output++ = '\x04'; /* No compression. */ - p = (uint8_t *)d; for (i = 0; i < ECDSA_BYTE_SIZE; i++) p[ECDSA_BYTE_SIZE - i - 1] = kd->data[i]; diff --git a/src/openpgp.c b/src/openpgp.c index 4f72281..5275d15 100644 --- a/src/openpgp.c +++ b/src/openpgp.c @@ -879,7 +879,7 @@ cmd_internal_authenticate (void) } #else #define ECDSA_P256_HASH_LEN 32 -#define ECDSA_SIGNATURE_LENGTH (1+64) +#define ECDSA_SIGNATURE_LENGTH 64 static void cmd_internal_authenticate (void)