Skip to content
Snippets Groups Projects
Commit 42a6a384 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Merge commit '8016a1bd'


* commit '8016a1bd':
  rtmpdh: Remove an unnecessary check in the gcrypt/nettle dh_compute_key

Merged-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parents 48e02e25 8016a1bd
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
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);
if (!k)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment