Draft: gssapi: Add support for GSSAPI KEX with hybrid ML-KEM

Implements https://datatracker.ietf.org/doc/draft-kario-gss-keyex-pqc.

The initial Claude prompt was:

Commit 88c2ea6752fab7b3da9cc4c51eaf632361a44080 added support for ECDH with GSSAPI key exchange.
Now I need to do the same with hybrid MLKEM implemented in src/hybrid_mlkem.c. Do this by creating
helper functions in src/hybrid_mlkem.c and re-using them in that file and in the GSSAPI implementation.
The RFC draft for GSSAPI KEX with hybrid MLKEM is at draft-kario-gss-keyex-pqc.txt.

Tested compatible with draft OpenSSH implementation at https://github.com/beldmit/openssh-portable/tree/beldmit-f45-103p1-gsshybrids to be featured in Fedora/RHEL.

Tests against upstream/Fedora/RHEl OpenSSH are expected to fail at this point, I will try to disable them where appropriate. I also need to update some docs with the new KEX methods.

Checklist

  • Commits have Signed-off-by: with name/author being identical to the commit author
  • Code modified for feature
  • Test suite updated with functionality tests
  • Test suite updated with negative tests
  • Documentation updated
  • The project pipelines timeout is extended at least to 2 hours.

Reviewer's checklist:

  • Any issues marked for closing are addressed
  • There is a test suite reasonably covering new functionality or modifications
  • Function naming, parameters, return values, types, etc., are consistent and according to CONTRIBUTING.md
  • This feature/change has adequate documentation added
  • No obvious mistakes in the code

Merge request reports

Loading
Loading