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:
13
errs/errors.go
Normal file
13
errs/errors.go
Normal 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")
|
||||
)
|
||||
@@ -1,9 +0,0 @@
|
||||
package errs
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrBadData = errors.New("unable to serialize/cast data into buffer; unknown or invalid data object")
|
||||
)
|
||||
Reference in New Issue
Block a user