Skip to content

Commit

Permalink
ssp: crypto: des_ecb_lm: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
oiweiwei committed Jul 18, 2024
1 parent 2b1aafd commit cdc8684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssp/crypto/des_ecb_lm.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func DES_ECB_LM(k uint32, b []byte) ([]byte, error) {
key2 := []byte{key[3], key[0], key[1], key[2], key[3], key[0], key[1]}

h1 := DES_ECB(key1, b[:8], false)
h2 := DES_ECB(key2, b[:8], false)
h2 := DES_ECB(key2, b[8:], false)

return append(h1, h2...), nil
}

0 comments on commit cdc8684

Please sign in to comment.