[Botan-devel] PK_Decryptor_MR_with_EME: Input is invalid
z3ky
z3ky at gmx.de
Tue Dec 4 16:40:34 EST 2007
yeah it works :) with
ciphertext.size()
thanks a lot!
Jack Lloyd schrieb:
> On Tue, Dec 04, 2007 at 10:21:49PM +0100, z3ky wrote:
>
>
>>> SecureVector<byte> ciphertext= enc->encrypt(msg, sizeof(msg));
>>>
> [...]
>
>>> SecureVector<byte> plaintext = dec->decrypt(ciphertext,
>>> sizeof(ciphertext));
>>>
>
> sizeof(ciphertext) will return the size of the underlying structure
> (which is of a fixed size), rather than the amount of data that the
> SecureVector is holding. Try ciphertext.length() instead.
>
> Jack
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://www.randombit.net/mailman/listinfo/botan-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.randombit.net/pipermail/botan-devel/attachments/20071204/0509ac0f/attachment.htm
More information about the botan-devel
mailing list