diff options
author | NIIBE Yutaka <[email protected]> | 2016-10-27 03:59:49 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2016-10-27 04:04:45 +0000 |
commit | ca0ee4e381d0b6a57e4ddc8f4bb2390eb97a2540 (patch) | |
tree | 87cc7058681acb65748ba4fdcc7d3463a527e804 /common/sysutils.c | |
parent | scd: Add 0x41 prefix for x-coordinate only result. (diff) | |
download | gnupg-ca0ee4e381d0b6a57e4ddc8f4bb2390eb97a2540.tar.gz gnupg-ca0ee4e381d0b6a57e4ddc8f4bb2390eb97a2540.zip |
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 <[email protected]>
Diffstat (limited to 'common/sysutils.c')
0 files changed, 0 insertions, 0 deletions