-
Notifications
You must be signed in to change notification settings - Fork 5
/
signaturescheme.go
executable file
·113 lines (107 loc) · 8.65 KB
/
signaturescheme.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// Code generated by usestdlibvars, DO NOT EDIT.
package tls_test
import "fmt"
var (
_ = "ECDSAWithP256AndSHA256" // want `"ECDSAWithP256AndSHA256" can be replaced by tls\.ECDSAWithP256AndSHA256\.String\(\)`
_ = "ECDSAWithP384AndSHA384" // want `"ECDSAWithP384AndSHA384" can be replaced by tls\.ECDSAWithP384AndSHA384\.String\(\)`
_ = "ECDSAWithP521AndSHA512" // want `"ECDSAWithP521AndSHA512" can be replaced by tls\.ECDSAWithP521AndSHA512\.String\(\)`
_ = "ECDSAWithSHA1" // want `"ECDSAWithSHA1" can be replaced by tls\.ECDSAWithSHA1\.String\(\)`
_ = "Ed25519" // want `"Ed25519" can be replaced by tls\.Ed25519\.String\(\)`
_ = "PKCS1WithSHA1" // want `"PKCS1WithSHA1" can be replaced by tls\.PKCS1WithSHA1\.String\(\)`
_ = "PKCS1WithSHA256" // want `"PKCS1WithSHA256" can be replaced by tls\.PKCS1WithSHA256\.String\(\)`
_ = "PKCS1WithSHA384" // want `"PKCS1WithSHA384" can be replaced by tls\.PKCS1WithSHA384\.String\(\)`
_ = "PKCS1WithSHA512" // want `"PKCS1WithSHA512" can be replaced by tls\.PKCS1WithSHA512\.String\(\)`
_ = "PSSWithSHA256" // want `"PSSWithSHA256" can be replaced by tls\.PSSWithSHA256\.String\(\)`
_ = "PSSWithSHA384" // want `"PSSWithSHA384" can be replaced by tls\.PSSWithSHA384\.String\(\)`
_ = "PSSWithSHA512" // want `"PSSWithSHA512" can be replaced by tls\.PSSWithSHA512\.String\(\)`
)
const (
_ = "ECDSAWithP256AndSHA256" // want `"ECDSAWithP256AndSHA256" can be replaced by tls\.ECDSAWithP256AndSHA256\.String\(\)`
_ = "ECDSAWithP384AndSHA384" // want `"ECDSAWithP384AndSHA384" can be replaced by tls\.ECDSAWithP384AndSHA384\.String\(\)`
_ = "ECDSAWithP521AndSHA512" // want `"ECDSAWithP521AndSHA512" can be replaced by tls\.ECDSAWithP521AndSHA512\.String\(\)`
_ = "ECDSAWithSHA1" // want `"ECDSAWithSHA1" can be replaced by tls\.ECDSAWithSHA1\.String\(\)`
_ = "Ed25519" // want `"Ed25519" can be replaced by tls\.Ed25519\.String\(\)`
_ = "PKCS1WithSHA1" // want `"PKCS1WithSHA1" can be replaced by tls\.PKCS1WithSHA1\.String\(\)`
_ = "PKCS1WithSHA256" // want `"PKCS1WithSHA256" can be replaced by tls\.PKCS1WithSHA256\.String\(\)`
_ = "PKCS1WithSHA384" // want `"PKCS1WithSHA384" can be replaced by tls\.PKCS1WithSHA384\.String\(\)`
_ = "PKCS1WithSHA512" // want `"PKCS1WithSHA512" can be replaced by tls\.PKCS1WithSHA512\.String\(\)`
_ = "PSSWithSHA256" // want `"PSSWithSHA256" can be replaced by tls\.PSSWithSHA256\.String\(\)`
_ = "PSSWithSHA384" // want `"PSSWithSHA384" can be replaced by tls\.PSSWithSHA384\.String\(\)`
_ = "PSSWithSHA512" // want `"PSSWithSHA512" can be replaced by tls\.PSSWithSHA512\.String\(\)`
)
func _() {
_ = func(s string) string { return s }("ECDSAWithP256AndSHA256") // want `"ECDSAWithP256AndSHA256" can be replaced by tls\.ECDSAWithP256AndSHA256\.String\(\)`
_ = func(s string) string { return s }("text before key ECDSAWithP256AndSHA256")
_ = func(s string) string { return s }("ECDSAWithP256AndSHA256 text after key")
_ = func(s string) string { return s }("ECDSAWithP384AndSHA384") // want `"ECDSAWithP384AndSHA384" can be replaced by tls\.ECDSAWithP384AndSHA384\.String\(\)`
_ = func(s string) string { return s }("text before key ECDSAWithP384AndSHA384")
_ = func(s string) string { return s }("ECDSAWithP384AndSHA384 text after key")
_ = func(s string) string { return s }("ECDSAWithP521AndSHA512") // want `"ECDSAWithP521AndSHA512" can be replaced by tls\.ECDSAWithP521AndSHA512\.String\(\)`
_ = func(s string) string { return s }("text before key ECDSAWithP521AndSHA512")
_ = func(s string) string { return s }("ECDSAWithP521AndSHA512 text after key")
_ = func(s string) string { return s }("ECDSAWithSHA1") // want `"ECDSAWithSHA1" can be replaced by tls\.ECDSAWithSHA1\.String\(\)`
_ = func(s string) string { return s }("text before key ECDSAWithSHA1")
_ = func(s string) string { return s }("ECDSAWithSHA1 text after key")
_ = func(s string) string { return s }("Ed25519") // want `"Ed25519" can be replaced by tls\.Ed25519\.String\(\)`
_ = func(s string) string { return s }("text before key Ed25519")
_ = func(s string) string { return s }("Ed25519 text after key")
_ = func(s string) string { return s }("PKCS1WithSHA1") // want `"PKCS1WithSHA1" can be replaced by tls\.PKCS1WithSHA1\.String\(\)`
_ = func(s string) string { return s }("text before key PKCS1WithSHA1")
_ = func(s string) string { return s }("PKCS1WithSHA1 text after key")
_ = func(s string) string { return s }("PKCS1WithSHA256") // want `"PKCS1WithSHA256" can be replaced by tls\.PKCS1WithSHA256\.String\(\)`
_ = func(s string) string { return s }("text before key PKCS1WithSHA256")
_ = func(s string) string { return s }("PKCS1WithSHA256 text after key")
_ = func(s string) string { return s }("PKCS1WithSHA384") // want `"PKCS1WithSHA384" can be replaced by tls\.PKCS1WithSHA384\.String\(\)`
_ = func(s string) string { return s }("text before key PKCS1WithSHA384")
_ = func(s string) string { return s }("PKCS1WithSHA384 text after key")
_ = func(s string) string { return s }("PKCS1WithSHA512") // want `"PKCS1WithSHA512" can be replaced by tls\.PKCS1WithSHA512\.String\(\)`
_ = func(s string) string { return s }("text before key PKCS1WithSHA512")
_ = func(s string) string { return s }("PKCS1WithSHA512 text after key")
_ = func(s string) string { return s }("PSSWithSHA256") // want `"PSSWithSHA256" can be replaced by tls\.PSSWithSHA256\.String\(\)`
_ = func(s string) string { return s }("text before key PSSWithSHA256")
_ = func(s string) string { return s }("PSSWithSHA256 text after key")
_ = func(s string) string { return s }("PSSWithSHA384") // want `"PSSWithSHA384" can be replaced by tls\.PSSWithSHA384\.String\(\)`
_ = func(s string) string { return s }("text before key PSSWithSHA384")
_ = func(s string) string { return s }("PSSWithSHA384 text after key")
_ = func(s string) string { return s }("PSSWithSHA512") // want `"PSSWithSHA512" can be replaced by tls\.PSSWithSHA512\.String\(\)`
_ = func(s string) string { return s }("text before key PSSWithSHA512")
_ = func(s string) string { return s }("PSSWithSHA512 text after key")
}
func _() {
_ = fmt.Sprint("ECDSAWithP256AndSHA256") // want `"ECDSAWithP256AndSHA256" can be replaced by tls\.ECDSAWithP256AndSHA256\.String\(\)`
_ = fmt.Sprint("text before key ECDSAWithP256AndSHA256")
_ = fmt.Sprint("ECDSAWithP256AndSHA256 text after key")
_ = fmt.Sprint("ECDSAWithP384AndSHA384") // want `"ECDSAWithP384AndSHA384" can be replaced by tls\.ECDSAWithP384AndSHA384\.String\(\)`
_ = fmt.Sprint("text before key ECDSAWithP384AndSHA384")
_ = fmt.Sprint("ECDSAWithP384AndSHA384 text after key")
_ = fmt.Sprint("ECDSAWithP521AndSHA512") // want `"ECDSAWithP521AndSHA512" can be replaced by tls\.ECDSAWithP521AndSHA512\.String\(\)`
_ = fmt.Sprint("text before key ECDSAWithP521AndSHA512")
_ = fmt.Sprint("ECDSAWithP521AndSHA512 text after key")
_ = fmt.Sprint("ECDSAWithSHA1") // want `"ECDSAWithSHA1" can be replaced by tls\.ECDSAWithSHA1\.String\(\)`
_ = fmt.Sprint("text before key ECDSAWithSHA1")
_ = fmt.Sprint("ECDSAWithSHA1 text after key")
_ = fmt.Sprint("Ed25519") // want `"Ed25519" can be replaced by tls\.Ed25519\.String\(\)`
_ = fmt.Sprint("text before key Ed25519")
_ = fmt.Sprint("Ed25519 text after key")
_ = fmt.Sprint("PKCS1WithSHA1") // want `"PKCS1WithSHA1" can be replaced by tls\.PKCS1WithSHA1\.String\(\)`
_ = fmt.Sprint("text before key PKCS1WithSHA1")
_ = fmt.Sprint("PKCS1WithSHA1 text after key")
_ = fmt.Sprint("PKCS1WithSHA256") // want `"PKCS1WithSHA256" can be replaced by tls\.PKCS1WithSHA256\.String\(\)`
_ = fmt.Sprint("text before key PKCS1WithSHA256")
_ = fmt.Sprint("PKCS1WithSHA256 text after key")
_ = fmt.Sprint("PKCS1WithSHA384") // want `"PKCS1WithSHA384" can be replaced by tls\.PKCS1WithSHA384\.String\(\)`
_ = fmt.Sprint("text before key PKCS1WithSHA384")
_ = fmt.Sprint("PKCS1WithSHA384 text after key")
_ = fmt.Sprint("PKCS1WithSHA512") // want `"PKCS1WithSHA512" can be replaced by tls\.PKCS1WithSHA512\.String\(\)`
_ = fmt.Sprint("text before key PKCS1WithSHA512")
_ = fmt.Sprint("PKCS1WithSHA512 text after key")
_ = fmt.Sprint("PSSWithSHA256") // want `"PSSWithSHA256" can be replaced by tls\.PSSWithSHA256\.String\(\)`
_ = fmt.Sprint("text before key PSSWithSHA256")
_ = fmt.Sprint("PSSWithSHA256 text after key")
_ = fmt.Sprint("PSSWithSHA384") // want `"PSSWithSHA384" can be replaced by tls\.PSSWithSHA384\.String\(\)`
_ = fmt.Sprint("text before key PSSWithSHA384")
_ = fmt.Sprint("PSSWithSHA384 text after key")
_ = fmt.Sprint("PSSWithSHA512") // want `"PSSWithSHA512" can be replaced by tls\.PSSWithSHA512\.String\(\)`
_ = fmt.Sprint("text before key PSSWithSHA512")
_ = fmt.Sprint("PSSWithSHA512 text after key")
}