Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4252dc8

Browse files
committed
Specify what's wrong with Decode
1 parent 9ecc055 commit 4252dc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

training/crypto/cryptopals/set1/1/go/src/cryptopalslib/cryptopalslib.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func HexEncodeByteArrayToString(plainBytes []byte) string {
4747

4848
/* This is how in a normal world, this function would be implemented...
4949
* The problem is that bytes in byte array are not converted as individual
50-
* values but getted in groups of two (unicode bullshit) by string().
50+
* values but getted in groups of two (unicode bullshit) by Decode().
5151
func HexDecodeByteArrayToString(plainBytes []byte) (string, error) {
5252
decLen := hex.DecodedLen(len(plainBytes))
5353
decoded := make([]byte, decLen)

0 commit comments

Comments
 (0)