go_sshkeys/errs/errors.go
brent s 0203f8b0d8
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.
2022-04-29 02:49:33 -04:00

14 lines
597 B
Go

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")
)