Commit Graph

1 Commits (eadc2ec5c8d1f3697d22515d7808ca583ea43f45)

Author SHA1 Message Date
Fedor Indutny ae5b0e1fc1 crypto: add padding to diffie-hellman key
DH_size returns number of bytes in a prime number, DH_compute_key returns number
of bytes in a remainder of exponent, which may have less bytes than a prime
number. Therefore add 0-padding to the allocated buffer.

Fixes #3372
2012-06-18 00:59:31 +04:00