diff options
author | NIIBE Yutaka <[email protected]> | 2019-10-25 11:33:54 +0900 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2019-10-25 11:33:54 +0900 |
commit | 09df1e94fd2d549c251c8d2ac84cb4d02bda713f (patch) | |
tree | dc614585bda0119d49e0be385ec427041ba0d177 | |
parent | 75e189d2b0cf950cc4a8677bd70851bc51e79af2 (diff) | |
download | libgcrypt-gniibe/x448.tar.gz libgcrypt-gniibe/x448.tar.bz2 libgcrypt-gniibe/x448.zip |
ecc: Don't need to remove 0x40 for SAFECURVE.gniibe/x448
Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r-- | cipher/ecc.c | 2 |
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); |