Skip to content

Refactor: Move generic code out of apple-crypto so other dimpl based crates can share the common code#904

Closed
efer-ms wants to merge 4 commits intoalgesten:mainfrom
pthatcher:efer/cleaner_apple
Closed

Refactor: Move generic code out of apple-crypto so other dimpl based crates can share the common code#904
efer-ms wants to merge 4 commits intoalgesten:mainfrom
pthatcher:efer/cleaner_apple

Conversation

@efer-ms
Copy link
Copy Markdown
Contributor

@efer-ms efer-ms commented Mar 12, 2026

When we were moving wincrypto to utilize dimpl, we saw lots of generic code that could be shared with Apple-crypto. I anticipate it will be the same with other dimpl cryptos.

@algesten
Copy link
Copy Markdown
Owner

@efer-ms I realize now that we can make the prf and hkdf stuff impls once for all crypto providers in dimpl, and only have the CryptoProvider provide the hmac functions.

I prepared a PR for that here: algesten/dimpl#94 - this also copies across the tests you made for this in the macro.

The other part, making certificate generation without rcgen, is something that was also discussed on Discord. I am for that, and think we should make dimpl create certs without that dep, just relying on what we already have. I think this is a another PR in dimpl.

@efer-ms efer-ms closed this Mar 23, 2026
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