Skip to content

Commit ade6a4b

Browse files
lcloselclose
authored andcommitted
fix: update help text tests and lint for PQ curve additions
1 parent 0d002c3 commit ade6a4b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cert/sign_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func TestCertificateV2_SignPQ(t *testing.T) {
173173
assert.Equal(t, pubBytes, c.PublicKey())
174174

175175
// Verify signature length matches ML-DSA-87
176-
assert.Equal(t, mldsa87.SignatureSize, len(c.Signature()))
176+
assert.Len(t, c.Signature(), mldsa87.SignatureSize)
177177

178178
// Marshal and unmarshal roundtrip
179179
b, err := c.Marshal()

cmd/nebula-cert/ca_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func Test_caHelp(t *testing.T) {
3434
" -argon-parallelism uint\n"+
3535
" \tOptional: Argon2 parallelism parameter used for encrypted private key passphrase (default 4)\n"+
3636
" -curve string\n"+
37-
" \tEdDSA/ECDSA Curve (25519, P256) (default \"25519\")\n"+
37+
" \tEdDSA/ECDSA/PQ Curve (25519, P256, PQ) (default \"25519\")\n"+
3838
" -duration duration\n"+
3939
" \tOptional: amount of time the certificate should be valid for. Valid time units are seconds: \"s\", minutes: \"m\", hours: \"h\" (default 8760h0m0s)\n"+
4040
" -encrypt\n"+

cmd/nebula-cert/keygen_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func Test_keygenHelp(t *testing.T) {
2121
t,
2222
"Usage of "+os.Args[0]+" keygen <flags>: create a public/private key pair. the public key can be passed to `nebula-cert sign`\n"+
2323
" -curve string\n"+
24-
" \tECDH Curve (25519, P256) (default \"25519\")\n"+
24+
" \tECDH/KEM Curve (25519, P256, PQ) (default \"25519\")\n"+
2525
" -out-key string\n"+
2626
" \tRequired: path to write the private key to\n"+
2727
" -out-pub string\n"+

0 commit comments

Comments
 (0)