Skip to content

Commit a2a63ad

Browse files
committed
ML-KEM: fix comments, API signatures, minor issues
More checks for public or private key not set. wc_MlKemKey_Free clears key->flags wc_MlKemKey_DecodePrivateKey now checks the public key is valid. wc_MlKemKey_EncodePrivateKey doesn't need calculate hash of public key as encoding the public key will do this. EncodePrivateKey/EncodePublicKey now return BAD_STATE_E when flags not set. mlkem_kdf, mlkem_check_public, mlkem_xof_absorb pointer parameters are now const. Now all mlkem_redistribute_*_rand_avx2 functions are WOLFSSL_LOCAL. Changed Kyber uses to MlKem.
1 parent 6a3eb6f commit a2a63ad

3 files changed

Lines changed: 273 additions & 195 deletions

File tree

0 commit comments

Comments
 (0)