mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Add an assertion
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user