Fix alignment of results of RSA operations when using libgcrypt.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 19 Dec 2009 21:17:39 +0000 (22:17 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 19 Dec 2009 21:17:39 +0000 (22:17 +0100)
commitf542ef8f9e645bf30e11e196dd768fac4f957eac
treedc214a95fead35cd12488d7335775608ea3f924a
parent4c68a8cb60eb0a4c05d9ce98963b930a976b55ee
Fix alignment of results of RSA operations when using libgcrypt.

If the result of an RSA encryption or decryption operation can be represented
in less bytes than given, gcry_mpi_print() will not add leading zero bytes. Fix
this by adding those ourself.
src/gcrypt/rsa.c