Don't remove leading zero byte.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 27 Feb 2019 02:09:30 +0000 (11:09 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 27 Feb 2019 02:09:30 +0000 (11:09 +0900)
commit9fea74575085352daec89b64bd36db5df9a05fb8
treec56d51c2cb3c65a945d39323fafb75f1c97e416e
parent5d9278f3d13050eddd68d8a1c490274a4f631f5f
Don't remove leading zero byte.

* src/cms.c (ksba_cms_set_sig_val): Don't remove leading zero byte.
(ksba_cms_set_enc_val): Likewise.
* src/certreq.c (ksba_certreq_set_sig_val): Likewise for RSA.

--

For RSA, here is in PKCS1 format with fixed-size.  There should not be
an extra leading zero byte.  (We used to have an extra leading zero
byte with smartcard.)

GnuPG-bug-id: 4104
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
src/certreq.c
src/cms.c