summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsiddharth <s@ricketyspace.net>2021-09-19 13:48:11 -0400
committersiddharth <s@ricketyspace.net>2021-09-19 13:48:11 -0400
commit891707e423f8db059115351ebce1513bf207db46 (patch)
tree28e2eca9e1925a1cc1c1794dd6a7f6c0bc2fc5fe
parent7f9cb955e0ad81bf424727bdeb3ba119877b5b71 (diff)
lib: aesInvCipher -> AESInvCipher
-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