Skip to content

Conversation

ctz
Copy link
Member

@ctz ctz commented Dec 23, 2024

Any downstream crate defining a custom rustls::CryptoProvider currently needs to take a dependency on rustls-webpki to reuse these values (alternatively they can redefine these values, but meh.)

Moving them here removes that need, and eliminates another reason for people to depend on rustls-webpki directly.

fixes #27

ctz added 5 commits December 23, 2024 13:18
Any downstream crate defining a custom `rustls::CryptoProvider`
currently needs to take a dependency on `rustls-webpki` to reuse
these values (alternatively they can redefine these values, but meh.)

Moving them here removes that need.
> 'go get' is no longer supported outside a module.
> To build and install a command, use 'go install' with a version,
> like 'go install example.com/cmd@latest'
The intention here is to make it easy to cross-reference these
values with other sources of information, and to "lift the veil"
on what these things actually are and are not.

Some of these are trivial (ed25519) while others reveal their true
horror (RSA-PSS).  For the latter, include a reference to their
defining RFC, and decorate the context-specific fields with their
name in comments.
@djc
Copy link
Member

djc commented Dec 23, 2024

How about we move AlgorithmIdentifier into the new module, with a top-level re-export for compatibility?

@cpu
Copy link
Member

cpu commented Jan 24, 2025

@ctz Any thoughts on Djc's last feedback? Should we hold merge on that?

@ctz ctz force-pushed the jbp-alg-ids branch 2 times, most recently from 0193439 to fec0ec9 Compare January 27, 2025 11:17
@ctz
Copy link
Member Author

ctz commented Jan 27, 2025

How about we move AlgorithmIdentifier into the new module, with a top-level re-export for compatibility?

Added a commit for this. I could take it or leave it to be honest, but see what you think.

Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

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

I kinda like it, though IMO AlgorithmIdentifier should go below the consts.

@ctz ctz added this pull request to the merge queue Jan 27, 2025
Merged via the queue into main with commit be3a4c4 Jan 27, 2025
28 checks passed
@ctz ctz deleted the jbp-alg-ids branch January 27, 2025 12:23
@ctz ctz mentioned this pull request Jan 27, 2025
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.

Considering adding constant for the PKIX Algorithm Identifier
3 participants