mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #198] [MERGED] Clarify what values are digests and what values are to-be-digested/signed. #1299
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#1299
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/198
Author: @briansmith
Created: 9/22/2017
Status: ✅ Merged
Merged: 9/23/2017
Merged by: @bluejekyll
Base:
master← Head:tbs📝 Commits (1)
cc9a66bClarify what values are digests and what values are to-be-digested/signed.📊 Changes
6 files changed (+110 additions, -89 deletions)
View changed files
📝
client/src/rr/dnssec/keypair.rs(+16 -14)📝
client/src/rr/dnssec/mod.rs(+1 -1)📝
client/src/rr/dnssec/signer.rs(+8 -8)📝
client/src/rr/dnssec/tbs.rs(+62 -46)📝
client/src/rr/dnssec/verifier.rs(+5 -5)📝
server/src/authority/authority.rs(+18 -15)📄 Description
During a previous refactoring the digesting of message contents was moved closer
to the place where the signing is done, to accomodate Ed25519 and crypto APIs
that don't take digests as input to signining functions. However, functions that
used to return digests kept their names with a
_hashsuffix orhash_prefix,which is confusing.
Clarify that by renaming all such functions. Further, introduce a new TBS wrapper
type that further clarifies the intent of the code. "TBS" is a common shorthand
in crypto code standing for "to be signed" data, e.g. tbsCertificate in X.509.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.