Description
// A LmsOtsPrivateKey is used to sign exactly one message.
type LmsOtsPrivateKey struct {
typecode common.LmsOtsAlgorithmType
q uint32
id common.ID
x [][]byte
valid bool
}
// A LmsOtsPublicKey is used to verify exactly one message.
type LmsOtsPublicKey struct {
typecode common.LmsOtsAlgorithmType
q uint32
id common.ID
k []byte
}
// A LmsOtsSignature is a signature of one message.
type LmsOtsSignature struct {
typecode common.LmsOtsAlgorithmType
c []byte
y [][]byte
}
// A LmsPrivateKey is used to sign a finite number of messages
type LmsPrivateKey struct {
typecode common.LmsAlgorithmType
otstype common.LmsOtsAlgorithmType
q uint32
id common.ID
seed []byte
authtree [][]byte
}
// A LmsPublicKey is used to verify messages signed by a LmsPrivateKey
type LmsPublicKey struct {
typecode common.LmsAlgorithmType
otstype common.LmsOtsAlgorithmType
id common.ID
k []byte
}
// A LmsSignature represents a signature produced by an LmsPrivateKey
// which an LmsPublicKey can validate for a given message
type LmsSignature struct {
typecode common.LmsAlgorithmType
q uint32
ots ots.LmsOtsSignature
path [][]byte
}
Reactions are currently unavailable
You can’t perform that action at this time.
lms-go/lms/ots/types.go
Lines 7 to 29 in c7cd3ad
lms-go/lms/lms/types.go
Lines 8 to 33 in c7cd3ad
Remove stale comment
lms-go/lms/lms/signature.go
Line 78 in c7cd3ad
Remove commented out code
lms-go/lms/lms/private.go
Line 93 in c7cd3ad