From 891707e423f8db059115351ebce1513bf207db46 Mon Sep 17 00:00:00 2001 From: siddharth Date: Sun, 19 Sep 2021 13:48:11 -0400 Subject: lib: aesInvCipher -> AESInvCipher --- lib/aes.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/aes.go') 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 -- cgit v1.2.3