Skip to content

Add SHA256 hash#93

Merged
DarkaMaul merged 4 commits into
mainfrom
dm/add-sha256
Dec 18, 2024
Merged

Add SHA256 hash#93
DarkaMaul merged 4 commits into
mainfrom
dm/add-sha256

Conversation

@DarkaMaul

Copy link
Copy Markdown
Collaborator

Support setting SHA256 as a Hash function for the request.

Comment thread test/common.py
Comment thread rust/src/lib.rs
Comment on lines +667 to 668
#[pyo3(signature = (data, nonce, cert, hash_algorithm=None))]
pub(crate) fn create_timestamp_request(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nitpick, nonblocking: it's unfortunate that the default here is None instead of HashAlgorithm.SHA512, but I don't think PyO3 would allow us to set the latter anyways.

Not a blocker.

@woodruffw woodruffw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, nice work @DarkaMaul!

@DarkaMaul DarkaMaul merged commit 68a5770 into main Dec 18, 2024
@DarkaMaul DarkaMaul deleted the dm/add-sha256 branch December 18, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants