init: v1.0.0
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
// Code generated by "stringer -type=ErrorCode -linecomment -output=errors_string.go errors.go"; DO NOT EDIT.
|
||||
|
||||
package sm9m
|
||||
|
||||
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[ErrRandomFaile-16846848]
|
||||
_ = x[ErrInvalidInput-16846849]
|
||||
_ = x[ErrKeyTooBig-16846850]
|
||||
_ = x[ErrKeyIsZero-16846851]
|
||||
_ = x[ErrInvalidCipherC1-16846852]
|
||||
}
|
||||
|
||||
const _ErrorCode_name = "生成随机数失败输入不合法密钥太大(>=N)密钥为0密文不合法(C1不是合法的曲线上的点)"
|
||||
|
||||
var _ErrorCode_index = [...]uint8{0, 21, 36, 53, 63, 112}
|
||||
|
||||
func (i ErrorCode) String() string {
|
||||
i -= 16846848
|
||||
if i >= ErrorCode(len(_ErrorCode_index)-1) {
|
||||
return "ErrorCode(" + strconv.FormatInt(int64(i+16846848), 10) + ")"
|
||||
}
|
||||
return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]]
|
||||
}
|
||||
Reference in New Issue
Block a user