Commit 083ab36b authored by Jan Včelák's avatar Jan Včelák 🚀

[dnssec] signature encoding, remove dangerous useless asserts

parent 1d2d73bf
......@@ -203,7 +203,6 @@ static int ecdsa_x509_to_dnssec(dnssec_sign_ctx_t *ctx,
}
size_t int_size = ecdsa_sign_integer_size(ctx);
assert(int_size > 0);
size_t r_size = bignum_size_u(&value_r);
size_t s_size = bignum_size_u(&value_s);
......@@ -233,7 +232,6 @@ static int ecdsa_dnssec_to_x509(dnssec_sign_ctx_t *ctx,
assert(dnssec);
size_t int_size = ecdsa_sign_integer_size(ctx);
assert(int_size > 0);
if (dnssec->size != 2 * int_size) {
return DNSSEC_INVALID_SIGNATURE;
......
Markdown is supported
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