Files
xgcl/sm/sm4/errors_string.go
2026-05-27 23:03:00 +08:00

28 lines
842 B
Go

// Code generated by "stringer -type=ErrorCode -linecomment -output=errors_string.go errors.go"; DO NOT EDIT.
package sm4
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-16793600]
_ = x[ErrSM4EncFailed-16793601]
_ = x[ErrSM4DecFailed-16793602]
_ = x[ErrSM4MacFailed-16793603]
}
const _ErrorCode_name = "输入不合法SM4加密失败SM4解密失败SM4Mac计算失败"
var _ErrorCode_index = [...]uint8{0, 15, 30, 45, 63}
func (i ErrorCode) String() string {
i -= 16793600
if i >= ErrorCode(len(_ErrorCode_index)-1) {
return "ErrorCode(" + strconv.FormatInt(int64(i+16793600), 10) + ")"
}
return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]]
}