Commit ae5b0e1f authored by Fedor Indutny's avatar Fedor Indutny
Browse files

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
parent 6d70a4ae
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment