New API for KEMs #2087
praveksharma
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A lot of KEM usecases (such as TLS), allow preserving state between keygen and decaps; this means that the matrix A can be kept expanded and makes input validation for the secret key unnecessary. This would make KEM operations a lot faster but also raises the question of what the new KEM API should look like. The consensus, when this topic came up during a status call, was that the API should allow OQS user to interoperate as much as possible between the different existing standards.
Here are the proposed new functions for mlkem-native (from PQCP) which shall operate on internal data structures:
The old API would then be wrappers around these new functions:
Along with these new functions to aid interop:
Does this API miss any particular use case?
Beta Was this translation helpful? Give feedback.
All reactions