Add an assertion

This commit is contained in:
Frank Denis
2020-04-18 23:37:12 +02:00
parent f7137448dc
commit 6f1c987d2e
@@ -92,6 +92,7 @@ _string_to_points(unsigned char * const px, size_t n,
if (n > 2U) {
abort(); /* LCOV_EXCL_LINE */
}
COMPILER_ASSERT(2U * HASH_L <= 0xff);
if (ctx_len > (size_t) 0xff) {
crypto_hash_sha512_init(&st);
crypto_hash_sha512_update(&st,