Page MenuHome GnuPG

412_0001-Truncate-hash-values-for-ECDSA-signature-scheme.patch
AbandonedPublic

Authored by lumag on Dec 16 2013, 8:49 PM.

Details

Reviewers
None
Summary

From 7a99d857e659b6ab314df4757e95df43e49f1f4b Mon Sep 17 00:00:00 2001
From: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Date: Mon, 16 Dec 2013 20:08:35 +0400
Subject: [PATCH] Truncate hash values for ECDSA signature scheme

  • cipher/ecc-ecdsa.c (_gcry_ecc_ecdsa_sign, _gcry_ecc_ecdsa_verify): as required by ECDSA scheme, truncate hash values to bitlength of used curve.
  • tests/pubkey.c (check_ecc_sample_key): add a testcase for hash truncation.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>

cipher/ecc-ecdsa.c | 22 ++++++++++++++++++++--
tests/pubkey.c | 45 ++++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 64 insertions(+), 3 deletions(-)

1.8.5.1

Test Plan

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped