[Botan-devel] Botan 64-bit on Solaris

Rickard Bondesson Rickard.Bondesson at iis.se
Mon Dec 22 10:55:37 EST 2008


> Another strange thing is that prime1 (p) and prime2 (q) have 
> a length of 48 bytes in 32-bit mode.
> But in 64-bit mode they are 32 bytes in length.
> If I generate a 768-bit RSA key, shouldn't p and q have a 
> length of 48 bytes?

The problem had to do with reusage of an old BigInt variable.

E.g.

BigInt bigNumber = aValueFromTheKey;

Do_some_thing;

bigNumber = someThingNew;

Do_some_thing_more;

// Rickard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 475 bytes
Desc: not available
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20081222/f610c689/attachment.sig>


More information about the botan-devel mailing list