Repository navigation
Conversation
bettio
left a comment
There was a problem hiding this comment.
Looks good, I have just some doubts on this being an extension.
There was a problem hiding this comment.
Is this an AtomVM extension? I didn't find it on OTP. If so, we should prefix it and we should document that it is an extension.
In that case maybe we should have an atomvm_crypto module OR prefix the function name with avm_, like avm_crypto. Maybe atomvm_crypto module is the cleanest solution.
There was a problem hiding this comment.
Definitely right. We don't need an extension, I fixed this to use OTP's API.
This comment was marked as outdated.
This comment was marked as outdated.
f337e64 to
8dbf458
Compare
|
Tests are now properly run against OTP, including this: "The test does not verify that ciphertext and shared secret correspond" |
|
pick and choose: PR Re-review:
|
8dbf458 to
57d867b
Compare
There was a problem hiding this comment.
There is no PublicKey param here
- generic_unix: add an AVM_STATIC_LIBSODIUM option - otp_crypto: add the ML-KEM-768 encapsulation NIF (requires libsodium >= 1.0.22) - test_crypto_pk: cover ML-KEM-768 encapsulation Signed-off-by: Paul Guyot <pguyot@kallisys.net>
57d867b to
1ae90fe
Compare

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later