Various changes

-Aes -> AES
-doc.md
This commit is contained in:
Haris Khan
2024-10-06 10:45:26 -04:00
parent 684e89c957
commit 278bdee277
3 changed files with 83 additions and 18 deletions

View File

@@ -22,7 +22,7 @@ func TestAESEncryptDecrypt(t *testing.T) {
t.Fatalf("Failed to generate random IV: %v", err)
}
symmetricKey := AesSymmetricKey{
symmetricKey := AESSymmetricKey{
Key: key,
IV: iv,
}
@@ -82,7 +82,7 @@ func TestAESEncryptInvalidKey(t *testing.T) {
_, _ = rand.Read(iv)
for _, key := range invalidKeys {
symmetricKey := &AesSymmetricKey{
symmetricKey := &AESSymmetricKey{
Key: key,
IV: iv,
}
@@ -104,7 +104,7 @@ func TestAESDecryptInvalidInput(t *testing.T) {
_, _ = rand.Read(key)
_, _ = rand.Read(iv)
symmetricKey := &AesSymmetricKey{
symmetricKey := &AESSymmetricKey{
Key: key,
IV: iv,
}