Files
2026-05-27 23:03:00 +08:00

32 lines
1.0 KiB
Go

// Code generated by "stringer -type=ErrorCode -linecomment -output=errors_string.go errors.go"; DO NOT EDIT.
package blockmode
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[ErrInvalidInput-16822272]
_ = x[ErrInvalidIV-16822273]
_ = x[ErrAEADTagCheckFailed-16822274]
_ = x[ErrAEADOpenFailed-16822275]
_ = x[ErrGCMEncFailed-16822276]
_ = x[ErrGCMDecFailed-16822277]
_ = x[ErrXTSEncFailed-16822278]
_ = x[ErrXTSDecFailed-16822279]
}
const _ErrorCode_name = "输入不合法输入IV不合法AEAD解密tag校验失败AEAD解密失败GCM加密失败GCM解密失败XTS加密失败XTS解密失败"
var _ErrorCode_index = [...]uint8{0, 15, 32, 57, 73, 88, 103, 118, 133}
func (i ErrorCode) String() string {
i -= 16822272
if i >= ErrorCode(len(_ErrorCode_index)-1) {
return "ErrorCode(" + strconv.FormatInt(int64(i+16822272), 10) + ")"
}
return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]]
}