// Code generated by "stringer -type=ErrorCode -linecomment -output=errors_string.go errors.go"; DO NOT EDIT.

package errors

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-16814080]
	_ = x[ErrMarshalFailed-16814081]
	_ = x[ErrUnmarshalFailed-16814082]
	_ = x[ErrGenerateRandomFailed-16814083]
	_ = x[ErrEncodeASN1Failed-16814084]
	_ = x[ErrDecodeASN1Failed-16814085]
	_ = x[ErrInvalidPoint-16814086]
	_ = x[ErrInvalidMastPublicKey-16814087]
	_ = x[ErrInvalidPublicKey-16814088]
	_ = x[ErrSignFailed-16814089]
	_ = x[ErrVerifyFailed-16814090]
	_ = x[ErrEncFailed-16814091]
	_ = x[ErrDecFailed-16814092]
	_ = x[ErrKeyExchangeFailed-16814093]
	_ = x[ErrKeyEncapsuleFailed-16814094]
	_ = x[ErrKeyUnencapsuleFailed-16814095]
	_ = x[ErrKGCRebuildKey-16814096]
	_ = x[ErrEncUnsupportedMode-16814097]
}

const _ErrorCode_name = "输入不合法Marshal失败Unmarshal失败生成随机数失败ASN.1编码失败ASN.1解码失败不是SM9曲线上的点SM9主公钥不合法SM9公钥不合法SM9签名失败SM9签名验证失败SM9加密失败SM9解密失败SM9密钥交换失败SM9密钥封装失败SM9密钥解封装失败KGC主密钥需要重新SM9加密不支持的模式"

var _ErrorCode_index = [...]uint16{0, 15, 28, 43, 64, 81, 98, 122, 143, 161, 176, 197, 212, 227, 248, 269, 293, 317, 344}

func (i ErrorCode) String() string {
	i -= 16814080
	if i >= ErrorCode(len(_ErrorCode_index)-1) {
		return "ErrorCode(" + strconv.FormatInt(int64(i+16814080), 10) + ")"
	}
	return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]]
}
