Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto: figure out AKEM API #20

Open
elagergren-spideroak opened this issue Jan 7, 2025 · 0 comments
Open

crypto: figure out AKEM API #20

elagergren-spideroak opened this issue Jan 7, 2025 · 0 comments
Assignees

Comments

@elagergren-spideroak
Copy link
Member

One option is to split Kem into an unauthenticated Kem and a separate authenticated AuthKem.

But that might not play well with Hpke. It uses an enum for auth modes, and I don't really want to rewrite that as one method per auth mode. Plus, we'll probably run into specialization issues.

Maybe we just make Kem's authenticated methods return a sentinel "unsupported" error (not the panicking macro!) by default?

Failing at runtime is lame, though.

/cc @jdygert

@elagergren-spideroak elagergren-spideroak self-assigned this Jan 7, 2025
@elagergren-spideroak elagergren-spideroak transferred this issue from aranya-project/aranya-core Jan 21, 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

No branches or pull requests

1 participant