summaryrefslogtreecommitdiffstats
path: root/lib/aes.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/aes.go')
-rw-r--r--lib/aes.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/aes.go b/lib/aes.go
index fd570fa..d45e74a 100644
--- a/lib/aes.go
+++ b/lib/aes.go
@@ -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