Skip to content
Snippets Groups Projects
Commit 57965cf9 authored by Karel Slaný's avatar Karel Slaný Committed by Ondřej Surý
Browse files

Removed some asserts.

parent 1fcc1132
No related merge requests found
......@@ -71,7 +71,7 @@ static uint16_t cc_gen_hmac_sha256_64(const struct knot_cc_input *input,
update_hash(&ctx, input->srvr_sockaddr);
}
assert(KNOT_OPT_COOKIE_CLNT <= SHA256_DIGEST_SIZE);
/* KNOT_OPT_COOKIE_CLNT <= SHA256_DIGEST_SIZE */
cc_len = KNOT_OPT_COOKIE_CLNT;
hmac_sha256_digest(&ctx, cc_len, cc_out);
......@@ -111,7 +111,7 @@ static uint16_t sc_gen_hmac_sha256_64(const struct knot_sc_input *input,
update_hash(&ctx, input->srvr_data->clnt_sockaddr);
}
assert(SRVR_HMAC_SHA256_64_HASH_SIZE < SHA256_DIGEST_SIZE);
/* SRVR_HMAC_SHA256_64_HASH_SIZE < SHA256_DIGEST_SIZE */
hash_len = SRVR_HMAC_SHA256_64_HASH_SIZE;
hmac_sha256_digest(&ctx, hash_len, hash_out);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment