storage and canonical NSEC owner replacement. Thanks to Xin
Wang and Jiajia Liu, Northwestern Polytechnical University,
for the report.
+ - Fix DNSSEC validation with libnettle for noncanonical RSA
+ DNSKEYs with leading zeroes for n. Thanks to Xin Wang and
+ Jiajia Liu, Northwestern Polytechnical University, for
+ the report.
11 May 2026: Yorgos
- Fix comment and verbose logging for EDNS fallback buffer size.
}
mod_offset = exp_offset + exp_len;
nettle_rsa_public_key_init(&pubkey);
- pubkey.size = keylen - mod_offset;
nettle_mpz_set_str_256_u(pubkey.e, exp_len, &key[exp_offset]);
- nettle_mpz_set_str_256_u(pubkey.n, pubkey.size, &key[mod_offset]);
+ nettle_mpz_set_str_256_u(pubkey.n, keylen - mod_offset, &key[mod_offset]);
+ pubkey.size = nettle_mpz_sizeinbase_256_u(pubkey.n);
/* Digest content of "buf" and verify its RSA signature in "sigblock"*/
nettle_mpz_init_set_str_256_u(signature, sigblock_len, (uint8_t*)sigblock);