okay, aes done for real this time.

This commit is contained in:
2022-04-29 04:09:49 -04:00
parent 0203f8b0d8
commit 234de69be2
27 changed files with 198 additions and 687 deletions

View File

@@ -2,6 +2,6 @@ package aesCommon
const (
Aes128Bits aesBitSize = 128
Aes196Bits aesBitSize = 196
Aes192Bits aesBitSize = 192
Aes256Bits aesBitSize = 256
)

View File

@@ -16,7 +16,7 @@ type AesCipher struct {
/*
KeyLen is the length of key used (in bytes) (int(AesCipher.Bits) / 8).
Must be one of 16 (128-bit), 24 (195-bit), or 32 (256-bit).
Must be one of 16 (128-bit), 24 (192-bit), or 32 (256-bit).
*/
KeyLen int `validate:"oneof=16 24 32"`
// Bits is the full bit length of AesCipher.KeyLen (in bits) (AesCipher.KeyLen * 8)