Skip to content

Add support for ML-DSA signing and verification

Stefan Berger linux-integrity 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5checkpatch: Remove warning when function name is found in output stringscripts/checkpatch.pl+7 -70 replies
2/5Set size of xattr_value to MAX_SIGNATURE_SIZEsrc/evmctl.c+1 -10 replies
3/5Support signing with ML-DSA keys when OpenSSL >=3.5 is availableREADME src/evmctl.c src/imaevm.h +1 more+258 -120 replies
4/5examples: Implement script to create ML-DSA-65 CA and signing keysexamples/ima-gen-local-ca-mldsa65.sh examples/ima-genkey-mldsa65.sh examples/ima-genkey-mldsa87.sh+97 -00 replies
5/5test: Add tests for signing and verifying with ML-DSA keystests/gen-keys.sh tests/sign_verify.test+54 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [ima-evm-utils PATCH 0/5] Add support for ML-DSA signing and verification

This series adds support for ML-DSA signing and verification for EVM and IMA using ML-DSA in pure mode and IMA's sigv3 signature format. Evmctl will prevent users from trying to use sigv2 signatures with ML-DSA and therefore ML-DSA requires the usage of --v3. Test cases for IMA and EVM sigv3 are added using ML-DSA-44 (2420 bytes) and ML-DSA-65 (3309 bytes) type of keys since those are more likely to fit into xattrs on most filesystems than the even larger ML-DSA-87 signatures (4627 bytes).

Stefan

Stefan Berger (5):
checkpatch: Remove warning when function name is found in output
string
Set size of xattr_value to MAX_SIGNATURE_SIZE
Support signing with ML-DSA keys when OpenSSL >=3.5 is available
examples: Implement script to create ML-DSA-65 CA and signing keys
test: Add tests for signing and verifying with ML-DSA keys

 README                               |   3 +-
 examples/ima-gen-local-ca-mldsa65.sh |  29 +++
 examples/ima-genkey-mldsa65.sh       |  34 ++++
 examples/ima-genkey-mldsa87.sh       |  34 ++++
 scripts/checkpatch.pl                |  14 +-
 src/evmctl.c                         |   6 +-
 src/imaevm.h                         |   5 +-
 src/libimaevm.c                      | 258 +++++++++++++++++++++++++--
 tests/gen-keys.sh                    |  22 +++
 tests/sign_verify.test               |  40 ++++-
 10 files changed, 417 insertions(+), 28 deletions(-)
 create mode 100755 examples/ima-gen-local-ca-mldsa65.sh
 create mode 100755 examples/ima-genkey-mldsa65.sh
 create mode 100755 examples/ima-genkey-mldsa87.sh
Signature · 1 line
2.53.0