[Botan-devel] DSA p-bits check

Rickard Bellgrim rickard.bellgrim at iis.se
Fri May 28 09:43:10 EDT 2010


Hi

Shouldn't line 75 in dl_group.cpp be like this:

qbits = qbits ? qbits : ((pbits <= 1024) ? 160 : 256);

and not

qbits = qbits ? qbits : ((pbits == 1024) ? 160 : 256);

Otherwise you cannot use pbits = 512 or 768, because fips186_3_valid_size() will return false.

// Rickard


More information about the botan-devel mailing list