File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ func (kshare *KeyShare) MarshalBinary() ([]byte, error) {
40
40
}
41
41
42
42
if kshare .Threshold > math .MaxUint16 {
43
- return nil , fmt .Errorf ("rsa_threshold: keyshare marshall: Threhsold is too big to fit in a uint16" )
43
+ return nil , fmt .Errorf ("rsa_threshold: keyshare marshall: Threshold is too big to fit in a uint16" )
44
44
}
45
45
46
46
if kshare .Index > math .MaxUint16 {
@@ -105,7 +105,7 @@ func (kshare *KeyShare) UnmarshalBinary(data []byte) error {
105
105
// | Players: uint16 | Threshold: uint16 | Index: uint16 | siLen: uint16 | si: []byte | twoDeltaSiNil: bool | twoDeltaSiLen: uint16 | twoDeltaSi: []byte |
106
106
// with all values in big-endian.
107
107
if len (data ) < 6 {
108
- return fmt .Errorf ("rsa_threshold: keyshare unmarshalKeyShareTest failed: data length was too short for reading Players, Threashold , Index" )
108
+ return fmt .Errorf ("rsa_threshold: keyshare unmarshalKeyShareTest failed: data length was too short for reading Players, Threshold , Index" )
109
109
}
110
110
111
111
players := binary .BigEndian .Uint16 (data [0 :2 ])
You can’t perform that action at this time.
0 commit comments