Skip to content

x509/CT: expose more SCT internals - #7207

Merged
alex merged 22 commits into
pyca:mainfrom
trail-of-forks:ww/sct-apis
May 13, 2022
Merged

alex merged 22 commits into
pyca:mainfrom
trail-of-forks:ww/sct-apis

Conversation

@woodruffw

Copy link
Copy Markdown
Member

This PR exposes some more fields within each signed SignedCertificateTimestamp:

  • hash_algorithm: The hash used for the signature
  • signature_algorithm: The signing algorithm used for the signature
  • signature: The actual signature bytes

@woodruffw

Copy link
Copy Markdown
Member Author

(I'm happy to add tests as well, just wanted to get this issued for an initial review.)

Comment thread src/rust/src/x509/sct.rs Resolved
Comment thread src/rust/src/x509/sct.rs Resolved
Comment thread tests/x509/test_x509_ext.py Resolved
@woodruffw
woodruffw requested a review from alex May 10, 2022 20:49
@woodruffw

Copy link
Copy Markdown
Member Author

This should be good to go. CI is passing except for an accursed timeout on Windows.

@alex alex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haven't reviewed the PR in any depth

Comment thread src/rust/src/x509/sct.rs Resolved
@reaperhulk

Copy link
Copy Markdown
Member

All the new public attributes and enums should be documented in certificate-transparency.rst with .. versionadded:: 38.0

@woodruffw

Copy link
Copy Markdown
Member Author

Alright, I've added docs for the new APIs (with version markers).

Comment thread docs/x509/certificate-transparency.rst Resolved
@woodruffw

Copy link
Copy Markdown
Member Author

Blocked on #7215 for additional testvectors.

@woodruffw

woodruffw commented May 12, 2022 •

Copy link
Copy Markdown
Member Author

Just pushing the final tests up for visibility; they won't pass until rebased on top of #7215.

Edit: Oops, I pushed up the rebase as well. I can fix that up for merge.

tetsuo-cpp and others added 15 commits May 12, 2022 17:48
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
No tests, yet.

Signed-off-by: William Woodruff <[email protected]>
@woodruffw

Copy link
Copy Markdown
Member Author

Ci failure here looks like a hiccup.

Comment thread src/rust/src/x509/sct.rs Resolved
Comment thread src/rust/src/x509/sct.rs Resolved
woodruffw added 4 commits May 13, 2022 10:29
Inline impl into each struct's impl.

Signed-off-by: William Woodruff <[email protected]>
These should never appear in the context of SCTs.

Signed-off-by: William Woodruff <[email protected]>
Handle invalid/unknown variants together.

Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>

@alex alex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, one last review comment + an API design q for paul

Comment thread src/rust/src/x509/sct.rs Resolved
alex
alex previously approved these changes May 13, 2022
@alex
alex enabled auto-merge (squash) May 13, 2022 20:26
Signed-off-by: William Woodruff <[email protected]>
auto-merge was automatically disabled May 13, 2022 20:27

Head branch was pushed to by a user without write access

@alex
alex enabled auto-merge (squash) May 13, 2022 20:27
@alex
alex merged commit b9f4ca3 into pyca:main May 13, 2022
@woodruffw
woodruffw deleted the ww/sct-apis branch May 13, 2022 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants