1 // Code generated by "stringer -type=SignatureScheme,CurveID,ClientAuthType -output=common_string.go"; DO NOT EDIT.
8 // An "invalid array index" compiler error signifies that the constant values have changed.
9 // Re-run the stringer command to generate them again.
11 _ = x[PKCS1WithSHA256-1025]
12 _ = x[PKCS1WithSHA384-1281]
13 _ = x[PKCS1WithSHA512-1537]
14 _ = x[PSSWithSHA256-2052]
15 _ = x[PSSWithSHA384-2053]
16 _ = x[PSSWithSHA512-2054]
17 _ = x[ECDSAWithP256AndSHA256-1027]
18 _ = x[ECDSAWithP384AndSHA384-1283]
19 _ = x[ECDSAWithP521AndSHA512-1539]
21 _ = x[PKCS1WithSHA1-513]
22 _ = x[ECDSAWithSHA1-515]
23 _ = x[GOSTR34102012256A-1801]
24 _ = x[GOSTR34102012256B-1802]
25 _ = x[GOSTR34102012256C-1803]
26 _ = x[GOSTR34102012256D-1804]
27 _ = x[GOSTR34102012512A-1805]
28 _ = x[GOSTR34102012512B-1806]
29 _ = x[GOSTR34102012512C-1807]
33 _SignatureScheme_name_0 = "PKCS1WithSHA1"
34 _SignatureScheme_name_1 = "ECDSAWithSHA1"
35 _SignatureScheme_name_2 = "PKCS1WithSHA256"
36 _SignatureScheme_name_3 = "ECDSAWithP256AndSHA256"
37 _SignatureScheme_name_4 = "PKCS1WithSHA384"
38 _SignatureScheme_name_5 = "ECDSAWithP384AndSHA384"
39 _SignatureScheme_name_6 = "PKCS1WithSHA512"
40 _SignatureScheme_name_7 = "ECDSAWithP521AndSHA512"
41 _SignatureScheme_name_8 = "GOSTR34102012256AGOSTR34102012256BGOSTR34102012256CGOSTR34102012256DGOSTR34102012512AGOSTR34102012512BGOSTR34102012512C"
42 _SignatureScheme_name_9 = "PSSWithSHA256PSSWithSHA384PSSWithSHA512Ed25519"
46 _SignatureScheme_index_8 = [...]uint8{0, 17, 34, 51, 68, 85, 102, 119}
47 _SignatureScheme_index_9 = [...]uint8{0, 13, 26, 39, 46}
50 func (i SignatureScheme) String() string {
53 return _SignatureScheme_name_0
55 return _SignatureScheme_name_1
57 return _SignatureScheme_name_2
59 return _SignatureScheme_name_3
61 return _SignatureScheme_name_4
63 return _SignatureScheme_name_5
65 return _SignatureScheme_name_6
67 return _SignatureScheme_name_7
68 case 1801 <= i && i <= 1807:
70 return _SignatureScheme_name_8[_SignatureScheme_index_8[i]:_SignatureScheme_index_8[i+1]]
71 case 2052 <= i && i <= 2055:
73 return _SignatureScheme_name_9[_SignatureScheme_index_9[i]:_SignatureScheme_index_9[i+1]]
75 return "SignatureScheme(" + strconv.FormatInt(int64(i), 10) + ")"
79 // An "invalid array index" compiler error signifies that the constant values have changed.
80 // Re-run the stringer command to generate them again.
86 _ = x[GOSTCurve256A-34]
87 _ = x[GOSTCurve256B-35]
88 _ = x[GOSTCurve256C-36]
89 _ = x[GOSTCurve256D-37]
90 _ = x[GOSTCurve512A-38]
91 _ = x[GOSTCurve512B-39]
92 _ = x[GOSTCurve512C-40]
96 _CurveID_name_0 = "CurveP256CurveP384CurveP521"
97 _CurveID_name_1 = "X25519"
98 _CurveID_name_2 = "GOSTCurve256AGOSTCurve256BGOSTCurve256CGOSTCurve256DGOSTCurve512AGOSTCurve512BGOSTCurve512C"
102 _CurveID_index_0 = [...]uint8{0, 9, 18, 27}
103 _CurveID_index_2 = [...]uint8{0, 13, 26, 39, 52, 65, 78, 91}
106 func (i CurveID) String() string {
108 case 23 <= i && i <= 25:
110 return _CurveID_name_0[_CurveID_index_0[i]:_CurveID_index_0[i+1]]
112 return _CurveID_name_1
113 case 34 <= i && i <= 40:
115 return _CurveID_name_2[_CurveID_index_2[i]:_CurveID_index_2[i+1]]
117 return "CurveID(" + strconv.FormatInt(int64(i), 10) + ")"
121 // An "invalid array index" compiler error signifies that the constant values have changed.
122 // Re-run the stringer command to generate them again.
124 _ = x[NoClientCert-0]
125 _ = x[RequestClientCert-1]
126 _ = x[RequireAnyClientCert-2]
127 _ = x[VerifyClientCertIfGiven-3]
128 _ = x[RequireAndVerifyClientCert-4]
131 const _ClientAuthType_name = "NoClientCertRequestClientCertRequireAnyClientCertVerifyClientCertIfGivenRequireAndVerifyClientCert"
133 var _ClientAuthType_index = [...]uint8{0, 12, 29, 49, 72, 98}
135 func (i ClientAuthType) String() string {
136 if i < 0 || i >= ClientAuthType(len(_ClientAuthType_index)-1) {
137 return "ClientAuthType(" + strconv.FormatInt(int64(i), 10) + ")"
139 return _ClientAuthType_name[_ClientAuthType_index[i]:_ClientAuthType_index[i+1]]