Home GnuPG
Diffusion GnuPG ca0ee4e381d0

g10: Fix ECDH, clarifying the format.
ca0ee4e381d0Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

g10: Fix ECDH, clarifying the format.

* g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Returns error when
it's short.  Clarify the format.  Handle other prefixes correctly.

With the scdaemon's change, there is no case NBYTES < SECRET_X_SIZE.
This fixes the break of ECDH with X25519.

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Oct 27 2016, 5:59 AM
Parents
rG6bbd97d6c771: scd: Add 0x41 prefix for x-coordinate only result.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rGca0ee4e381d0: g10: Fix ECDH, clarifying the format. (authored by NIIBE Yutaka <gniibe@fsij.org>).Oct 27 2016, 6:04 AM