wk at gnupg
Jul 22, 2012, 9:19 AM
Post #2 of 2
On Fri, 20 Jul 2012 01:59, contato [at] tiago said:
Re: Problem with padding and lost of data
[In reply to]
> 1) When I use padding, it is not removed during the decryption. And I am
> adding the "(flags pkcs1)" to S-expression before decrypt.
IIRC, the decryption feature has only been available since 1.5.0. Do
you use this version? Older version allow to pass the flag but dod not
> 2) If I do not use padding and I encrypt and decrypt a block of bytes
> which starts with the byte zero, I lose that first byte after decryption.
Never ever use RSA without padding. Thus this is not relevant.
The zero is missing because the raw data is treated as a number and
leading zeroes are removed.
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
Gcrypt-devel mailing list
Gcrypt-devel [at] gnupg