Commit 42a6a384 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '8016a1bd'

* commit '8016a1bd':
  rtmpdh: Remove an unnecessary check in the gcrypt/nettle dh_compute_key
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 48e02e25 8016a1bd
...@@ -137,11 +137,6 @@ static int dh_compute_key(FF_DH *dh, FFBigNum pub_key_bn, ...@@ -137,11 +137,6 @@ static int dh_compute_key(FF_DH *dh, FFBigNum pub_key_bn,
uint32_t secret_key_len, uint8_t *secret_key) uint32_t secret_key_len, uint8_t *secret_key)
{ {
FFBigNum k; FFBigNum k;
int num_bytes;
num_bytes = bn_num_bytes(dh->p);
if (num_bytes <= 0 || num_bytes > MAX_BYTES)
return -1;
bn_new(k); bn_new(k);
if (!k) if (!k)
......
Markdown is supported
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