We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ebc789 commit e4c84d1Copy full SHA for e4c84d1
pkg/nsdp/crypto.go
@@ -8,7 +8,7 @@ import (
8
// FixedLengthXOR creates a fixed-length XOR encryption of the given data.
9
// The length of the hash will be the minimum length of the data and the key.
10
func FixedLengthXOR(data []byte, key []byte) []byte {
11
- // Suprisingly, Golang does not have a built-in `min` function for integers,
+ // Surprisingly, Golang does not have a built-in `min` function for integers,
12
// so we have to resort to this ugliness.
13
length := int(math.Min(float64(len(data)), float64(len(key))))
14
hash := make([]byte, length)
0 commit comments