|
Description
|
diffie-hellman parameter 'p' should be, according to PKCS#3 standard, greater than chosen secret key 'x'. So, after the diffie-hellman key pair is generated, pk11_DH_generate_key() reuse memory for 'p' to get the private and public key. However, it seems that the returned value for those parameters might be rounded up and we have, for my scenario, byte lengths like this:
g param 1 byte
p param 399 bytes
x param 400 bytes
x is not greater than p since x[0] is zero but libumem abort()s because x reaches the red zone. This makes debugging of other problems quite difficult.
|