patch hmac final to use correct key

This commit is contained in:
Conor Patrick
2019-07-26 23:49:55 -04:00
parent f5d50e001d
commit df2cff2350
2 changed files with 6 additions and 0 deletions

View File

@@ -157,6 +157,11 @@ void crypto_sha256_hmac_final(uint8_t * key, uint32_t klen, uint8_t * hmac)
key = master_secret;
klen = sizeof(master_secret)/2;
}
else if (key == CRYPTO_TRANSPORT_KEY2)
{
key = transport_secret;
klen = 32;
}
if(klen > 64)