Merge pull request #229 from solokeys/fix-hmac-secret

Fix hmac secret
This commit is contained in:
Conor Patrick
2019-07-27 12:49:30 -04:00
committed by GitHub
6 changed files with 71 additions and 6 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)