summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2019-10-25 11:33:54 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2019-10-25 11:33:54 +0900
commit09df1e94fd2d549c251c8d2ac84cb4d02bda713f (patch)
treedc614585bda0119d49e0be385ec427041ba0d177
parent75e189d2b0cf950cc4a8677bd70851bc51e79af2 (diff)
downloadlibgcrypt-gniibe/x448.tar.gz
ecc: Don't need to remove 0x40 for SAFECURVE.gniibe/x448
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
-rw-r--r--cipher/ecc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher/ecc.c b/cipher/ecc.c
index 766e26e9..921510cc 100644
--- a/cipher/ecc.c
+++ b/cipher/ecc.c
@@ -1359,7 +1359,7 @@ compute_keygrip (gcry_md_hd_t md, gcry_sexp_t keyparms)
if (rc)
goto leave;
}
- else if (dialect == ECC_DIALECT_SAFECURVE || (flags & PUBKEY_FLAG_DJB_TWEAK))
+ else if ((flags & PUBKEY_FLAG_DJB_TWEAK))
{
/* Remove the prefix 0x40 for keygrip computation. */
raw = mpi_get_opaque (values[5], &n);