]> git.ipfire.org Git - thirdparty/openssl.git/commit
Implement seed/key preference when decoding
authorViktor Dukhovni <openssl-users@dukhovni.org>
Mon, 27 Jan 2025 16:12:47 +0000 (03:12 +1100)
committerTomas Mraz <tomas@openssl.org>
Fri, 14 Feb 2025 09:50:58 +0000 (10:50 +0100)
commit5b2d996f9145100f5e6d9fbf8ad2488022496931
tree05b94580f174634cf9d31b061745ac786dd44e23
parentcc5403f33ae9c3a367ca4a578baf86d1abb485d6
Implement seed/key preference when decoding

- Moved the codec code out of `ml_kem.c` into its own file in
  the provider tree.  Will be easier to share some code with
  ML-DSA, and possible to use PROV_CTX, to do config lookups
  directly in the functions doing the work.

- Update and fixes of the EVP_PKEY-ML-KEM(8) documentation, which
  had accumulated some stale/inaccurate material, and needed new
  text for the "prefer_seed" parameter.

- Test the "prefer_seed=no" behaviour.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/26569)
13 files changed:
crypto/ml_kem/ml_kem.c
doc/man7/EVP_PKEY-ML-KEM.pod
include/crypto/ml_kem.h
providers/implementations/encode_decode/build.info
providers/implementations/encode_decode/decode_der2key.c
providers/implementations/encode_decode/encode_key2any.c
providers/implementations/encode_decode/encode_key2text.c
providers/implementations/encode_decode/ml_kem_codecs.c [new file with mode: 0644]
providers/implementations/encode_decode/ml_kem_codecs.h [new file with mode: 0644]
providers/implementations/keymgmt/ml_kem_kmgmt.c
test/ml_kem_internal_test.c
test/recipes/15-test_ml_kem.t
util/perl/OpenSSL/paramnames.pm