Skip to content

Commit 977bb19

Browse files
committed
Integrate SLH-DSA in the list of signature schemes.
1 parent ad3afa4 commit 977bb19

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

sign/schemes/schemes.go

+13-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/cloudflare/circl/sign/ed448"
1717
"github.com/cloudflare/circl/sign/eddilithium2"
1818
"github.com/cloudflare/circl/sign/eddilithium3"
19-
19+
"github.com/cloudflare/circl/sign/slhdsa"
2020
dilithium2 "github.com/cloudflare/circl/sign/dilithium/mode2"
2121
dilithium3 "github.com/cloudflare/circl/sign/dilithium/mode3"
2222
dilithium5 "github.com/cloudflare/circl/sign/dilithium/mode5"
@@ -36,6 +36,18 @@ var allSchemes = [...]sign.Scheme{
3636
mldsa44.Scheme(),
3737
mldsa65.Scheme(),
3838
mldsa87.Scheme(),
39+
slhdsa.ParamIDSHA2Small128,
40+
slhdsa.ParamIDSHAKESmall128,
41+
slhdsa.ParamIDSHA2Fast128,
42+
slhdsa.ParamIDSHAKEFast128,
43+
slhdsa.ParamIDSHA2Small192,
44+
slhdsa.ParamIDSHAKESmall192,
45+
slhdsa.ParamIDSHA2Fast192,
46+
slhdsa.ParamIDSHAKEFast192,
47+
slhdsa.ParamIDSHA2Small256,
48+
slhdsa.ParamIDSHAKESmall256,
49+
slhdsa.ParamIDSHA2Fast256,
50+
slhdsa.ParamIDSHAKEFast256,
3951
}
4052

4153
var allSchemeNames map[string]sign.Scheme

sign/schemes/schemes_test.go

+12
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,18 @@ func Example() {
122122
// ML-DSA-44
123123
// ML-DSA-65
124124
// ML-DSA-87
125+
// SLH-DSA-SHA2-128s
126+
// SLH-DSA-SHAKE-128s
127+
// SLH-DSA-SHA2-128f
128+
// SLH-DSA-SHAKE-128f
129+
// SLH-DSA-SHA2-192s
130+
// SLH-DSA-SHAKE-192s
131+
// SLH-DSA-SHA2-192f
132+
// SLH-DSA-SHAKE-192f
133+
// SLH-DSA-SHA2-256s
134+
// SLH-DSA-SHAKE-256s
135+
// SLH-DSA-SHA2-256f
136+
// SLH-DSA-SHAKE-256f
125137
}
126138

127139
func BenchmarkGenerateKeyPair(b *testing.B) {

0 commit comments

Comments
 (0)