diff options
author | siddharth <s@ricketyspace.net> | 2021-09-19 13:48:11 -0400 |
---|---|---|
committer | siddharth <s@ricketyspace.net> | 2021-09-19 13:48:11 -0400 |
commit | 891707e423f8db059115351ebce1513bf207db46 (patch) | |
tree | 28e2eca9e1925a1cc1c1794dd6a7f6c0bc2fc5fe | |
parent | 7f9cb955e0ad81bf424727bdeb3ba119877b5b71 (diff) |
lib: aesInvCipher -> AESInvCipher
-rw-r--r-- | lib/aes.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -91,7 +91,7 @@ func AESDecryptCBC(cipher, key, iv []byte) ([]byte, error) { s := (i * 16) e := (i * 16) + 16 c := cipher[s:e] - output = append(output, FixedXORBytes(aesInvCipher(c, key), lc)...) + output = append(output, FixedXORBytes(AESInvCipher(c, key), lc)...) lc = c } @@ -127,7 +127,7 @@ func AESDecryptECB(cipher, key []byte) []byte { for i := 0; i < iter; i++ { s := (i * 16) e := (i * 16) + 16 - output = append(output, aesInvCipher(cipher[s:e], key)...) + output = append(output, AESInvCipher(cipher[s:e], key)...) } // Undo padding @@ -171,7 +171,7 @@ func AESCipher(in, ky []byte) []byte { return output } -func aesInvCipher(in, ky []byte) []byte { +func AESInvCipher(in, ky []byte) []byte { nb := 4 nr := 10 |