Skip to content

Commit

Permalink
Clarify key ID is a digest over SPKI (#73)
Browse files Browse the repository at this point in the history
* Clarify key ID is a digest over PKIX encoding

The comment said the DER encoding, which is not what RFC6962 specifies.

We noted in root-signing that trusted_root.json's key IDs were over the
DER encoding of the key, rather than the SubjectPublicKeyInfo structure,
which is the raw key and an OID.

Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>

* Update wording

Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>

---------

Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
  • Loading branch information
haydentherapper authored Apr 14, 2023
1 parent 4dbf10b commit b6d2576
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
5 changes: 3 additions & 2 deletions gen/pb-go/common/v1/sigstore_common.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions gen/pb-typescript/src/__generated__/sigstore_common.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions protos/sigstore_common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ message MessageSignature {
// LogId captures the identity of a transparency log.
message LogId {
// The unique id of the log, represented as the SHA-256 hash
// of the log's public key, computed over the DER encoding.
// <https://www.rfc-editor.org/rfc/rfc6962#section-3.2>
// of the log's public key, calculated over the DER encoding
// of the key represented as SubjectPublicKeyInfo.
// See https://www.rfc-editor.org/rfc/rfc6962#section-3.2
bytes key_id = 1 [(google.api.field_behavior) = REQUIRED];
}

Expand Down

0 comments on commit b6d2576

Please sign in to comment.