aes128 completely done.

ish. done-ish. it's entirely untested. CTR should work as i modeled it after PoC, and CBC *probably* works as it's straightforward, but I have no idea about the GCM. TODO.
This commit is contained in:
2022-04-29 02:49:33 -04:00
parent 9027750325
commit 0203f8b0d8
19 changed files with 479 additions and 280 deletions

13
errs/errors.go Normal file
View File

@@ -0,0 +1,13 @@
package errs
import (
"errors"
)
var (
ErrBadData error = errors.New("unable to serialize/cast data into buffer; unknown or invalid data object")
ErrBadIVLen = errors.New("the cipher IV/nonce does not match the expected key size/is of an invalid length")
ErrBadKeyLen = errors.New("the cipher key does not match the expected key size/is of an invalid length")
ErrMissingIV = errors.New("the cipher IV/nonce is empty or missing; Cipher was not setup properly")
ErrMissingKey = errors.New("the cipher key is empty or missing; Cipher was not setup properly")
)

View File

@@ -1,9 +0,0 @@
package errs
import (
"errors"
)
var (
ErrBadData = errors.New("unable to serialize/cast data into buffer; unknown or invalid data object")
)