• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bluejekyll / trust-dns / 517
88%
master: 82%

Build:
Build:
LAST BUILD BRANCH: trust-dns-book
DEFAULT BRANCH: master
Ran 02 May 2017 01:27PM UTC
Jobs 1
Files 75
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
517

push

travis-ci

bluejekyll
Fix SIG(0) calculation (#122)

* make signatory value 0 the default value

According to RFC3007, this field SHOULD be set to 0 in KEY records, and MUST be ignored.

Therefore, a default value of 0 seems to be appropriate.

* Don't double-hash message when signing

Signer::hash_message() is only called from Signer::sign_message() and
Signer::verify_message().

Those functions then feed the result to KeyPair::sign() or
KeyPair::verify(), respectively, which already do both hashing and signing.

So, if Signer::hash_message() also hashes the message,
the result is rsa(hash(hash(message))).

TODO: This is only tested with RSA keys. Code for KeyPair::ED25519 looks
like it may not do hashing in KeyPair::sign/verify.

* Fix SIG(0) hash calculation

SIG(0) signatures are calculated over a hash which includes not only the
signed message, but also the RDATA of the SIG(0) record.

See https://tools.ietf.org/html/rfc2931#section-3.1 for details.

* Avoid code duplication in Message::sign()

Use new function `RData::SIG::set_sig(self, signature: Vec<u8>) -> Self {...}`,
instead.

64 of 64 new or added lines in 4 files covered. (100.0%)

10949 of 11922 relevant lines covered (91.84%)

0.92 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
11
100.0
client/src/rr/dnssec/signer.rs
Jobs
ID Job ID Ran Files Coverage
1 517.1 (RUN_KCOV=1 OPTIONS="--all-features") 02 May 2017 01:27PM UTC 0
91.84
Travis Job 517.1
Source Files on build 517
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #517
  • 8a64453d on github
  • Prev Build on key_flags (#483)
  • Next Build on key_flags (#519)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc