scd: Another fix for Curve25519 prefix handling.
authorWerner Koch <wk@gnupg.org>
Thu, 3 Dec 2015 12:46:03 +0000 (13:46 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 3 Dec 2015 12:46:03 +0000 (13:46 +0100)
commite28f2e7a2f265af8bbdb4979e9679b4396dccdd5
treed29982c9aee07415c8c72ffd6dd4a5ad5315d127
parent0f61599ed0bd1cc6842067d040bb58ec0a451715
scd: Another fix for Curve25519 prefix handling.

* scd/app-openpgp.c (do_decipher): Check 0x02 also for 16+1 byte long
INDATA.
(do_decipher): Fix integer arithmetic in void pointer.
(do_decipher): Add missing memcpy.
--

I have not tested this fix but it is obvious.

Fixes-commit: 11b2691eddc42e91651e4f95dd2731255a3e9211
Signed-off-by: Werner Koch <wk@gnupg.org>
scd/app-openpgp.c