Commit Graph

1 Commits (252f034b30b3bf9b0c38d683725868d899209870)

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