Repository navigation
Add ML-DSA (AKP) support to step crypto jwk, jws, and jwt - #1742
Conversation
maraino
commented
Nov 21, 2026
- Create AKP JWKs with ML-DSA-44, ML-DSA-65, and ML-DSA-87
- Infer the key type and use from --alg when --kty is not set
- Allow jwk public and thumbprint to read from a file or STDIN
- Allow creating JWK provisioners with ML-DSA keys
- Upgrade go.step.sm/crypto to v0.92.1
- Create AKP JWKs with ML-DSA-44, ML-DSA-65, and ML-DSA-87 - Infer the key type and use from --alg when --kty is not set - Allow jwk public and thumbprint to read from a file or STDIN - Allow creating JWK provisioners with ML-DSA keys - Upgrade go.step.sm/crypto to v0.92.1
|
|
||
| if mldsa.Supported { | ||
| _, mldsa44JSONBytes := generateJWK(t, "AKP", "ML-DSA-44") | ||
| err = os.WriteFile(filepath.Join(e.Cd, "mldsa44.json"), mldsa44JSONBytes, 0600) |
There was a problem hiding this comment.
This file isn't referenced in a .txtar, so likely needs to be added as a test.
| err = os.WriteFile(filepath.Join(e.Cd, "mldsa44.json"), mldsa44JSONBytes, 0600) | ||
| require.NoError(t, err) | ||
| err = os.WriteFile(filepath.Join(e.Cd, "mldsa44token.txt"), []byte(mldsa44Token), 0600) | ||
| require.NoError(t, err) |
|
The PR lists |
Co-authored-by: Herman Slatman <hslatman@users.noreply.github.com>
@hslatman Yes, that's creating the JWK first, and then using |
| if cond == "mldsa" { | ||
| return mldsa.Supported, nil | ||
| } | ||
| return true, nil |
There was a problem hiding this comment.
It doesn't break the current tests, but I believe this would allow through all other condition values, and thus run those tests without erroring, right? It may be good to return an error on unknown conditions, but I don't see it as a blocker.
| } else { | ||
| err = os.WriteFile(filepath.Join(e.Cd, "mldsa44token.txt"), []byte{}, 0600) | ||
| require.NoError(t, err) | ||
| } | ||
|
|
There was a problem hiding this comment.
I think this can be removed? The tests using the file have the mldsa condition, so no need to write an empty file.
There was a problem hiding this comment.
Yes this can be removed now, I left it before I added [mldsa] to the input too.