scd: More fix for Curve25519 prefix handling.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 4 Dec 2015 05:02:48 +0000 (14:02 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 4 Dec 2015 05:02:48 +0000 (14:02 +0900)
commitf747adfa21551e083bc947540c64c94a96dcc059
tree93987559ba44ce2a292e73bf04d65ee3a20fa4ae
parente28f2e7a2f265af8bbdb4979e9679b4396dccdd5
scd: More fix for Curve25519 prefix handling.

* scd/app-openpgp.c (do_decipher): Handle trancated cipher text.
Also fix xfree bug introduced.

--

In old format with no prefix, cipher text can be trancated when it
is parsed as MPI.  Recover the value adding back zeros.

Fixes-commit: 11b2691eddc42e91651e4f95dd2731255a3e9211
scd/app-openpgp.c