Skip to content

Commit 5a0811f

Browse files
mmcloughlinneuromncr
authored andcommitted
enable misspell
1 parent a32dc0f commit 5a0811f

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

Diff for: .etc/golangci.yml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ linters:
55
- gocritic
66
- stylecheck
77
- errcheck
8-
- misspell
98
- scopelint
109
- gosec
1110
- lll

Diff for: dh/sidh/internal/p503/params.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ var P503p1s8 = common.Fp{
5555
0x085BDA2211E7A0AC, 0x9BF6C87B7E7DAF13, 0x45C6BDDA77A4D01B, 0x4066F541811E1E60,
5656
}
5757

58-
// P503p1Zeros number of 0 digits in the least significat part of {{ .FIELD }} + 1
58+
// P503p1Zeros number of 0 digits in the least significant part of {{ .FIELD }} + 1
5959
var P503p1Zeros = 3
6060

6161
var params common.SidhParams

Diff for: dh/sidh/internal/p751/params.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var (
2323
HasADXandBMI2 = cpu.X86.HasBMI2 && cpu.X86.HasADX
2424
)
2525

26-
// P751p1Zeros number of 0 digits in the least significat part of {{ .FIELD }} + 1
26+
// P751p1Zeros number of 0 digits in the least significant part of {{ .FIELD }} + 1
2727
var P751p1Zeros = 5
2828

2929
// P751 is a prime used by field Fp751

Diff for: dh/sidh/sidh.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func (prv *PrivateKey) Generate(rand io.Reader) error {
193193
// Private key generation takes advantage of the fact that keyspace for secret
194194
// key is (0, 2^x - 1), for some possitivite value of 'x' (see SIKE, 1.3.8).
195195
// It means that all bytes in the secret key, but the last one, can take any
196-
// value between <0x00,0xFF>. Similarily for the last byte, but generation
196+
// value between <0x00,0xFF>. Similarly for the last byte, but generation
197197
// needs to chop off some bits, to make sure generated value is an element of
198198
// a key-space.
199199
if _, err := io.ReadFull(rand, prv.Scalar); err != nil {
@@ -202,7 +202,7 @@ func (prv *PrivateKey) Generate(rand io.Reader) error {
202202

203203
prv.Scalar[len(prv.Scalar)-1] &= (1 << (dp.SecretBitLen % 8)) - 1
204204
// Make sure scalar is SecretBitLen long. SIKE spec says that key
205-
// space starts from 0, but I'm not confortable with having low
205+
// space starts from 0, but I'm not comfortable with having low
206206
// value scalars used for private keys. It is still secrure as per
207207
// table 5.1 in [SIKE].
208208
prv.Scalar[len(prv.Scalar)-1] |= 1 << ((dp.SecretBitLen % 8) - 1)

Diff for: ecc/fourq/fp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var modulusP = Fp{
1313
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f,
1414
}
1515

16-
// SizeFp is the lenght in bytes to represent an element in the base field.
16+
// SizeFp is the length in bytes to represent an element in the base field.
1717
const SizeFp = 16
1818

1919
// Fp is an element (in littleEndian order) of prime field GF(2^127-1).

0 commit comments

Comments
 (0)