Use Huffman code in BLISS signature

This commit is contained in:
Andreas Steffen
2014-12-12 12:00:20 +01:00
parent 9394e26426
commit 83447555a6
7 changed files with 296 additions and 38 deletions
@@ -369,14 +369,19 @@ static bool sign_bliss_with_sha512(private_bliss_private_key_t *this,
{
continue;
}
*signature = sig->get_encoding(sig);
if (signature->len == 0)
{
DBG1(DBG_LIB, "inefficient Huffman coding of signature");
continue;
}
DBG2(DBG_LIB, "signature generation needed %u round%s", tests,
(tests == 1) ? "" : "s");
break;
}
success = TRUE;
*signature = sig->get_encoding(sig);
end:
/* cleanup */
sampler->destroy(sampler);