mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 15:50:51 +02:00
15398c26d0
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.