Skip to content

Commit f0c47f1

Browse files
committed
win.go: move constants and global variables before the type struct.
1 parent 0c92ead commit f0c47f1

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

wincrypto/win.go

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@ package wincrypto
44
// https://learn.microsoft.com/en-us/windows/win32/seccrypto/alg-id
55
// https://learn.microsoft.com/en-us/windows/win32/seccrypto/rsa-schannel-key-blobs
66

7+
const (
8+
curBlobVersion = 0x02
9+
10+
cAlgRSASign = 0x00002400
11+
cAlgRSAKeyX = 0x0000A400
12+
13+
publicKeyBlob = 0x06
14+
privateKeyBlob = 0x07
15+
16+
magicRSA1 = 0x31415352
17+
magicRSA2 = 0x32415352
18+
)
19+
20+
var (
21+
_ rsaPublicKey
22+
_ rsaPrivateKey
23+
)
24+
725
//nolint:unused
826
type blobHeader struct {
927
Type byte
@@ -38,21 +56,3 @@ type rsaPrivateKey struct {
3856
coefficient []byte
3957
priExponent []byte
4058
}
41-
42-
var (
43-
_ rsaPublicKey
44-
_ rsaPrivateKey
45-
)
46-
47-
const (
48-
curBlobVersion = 0x02
49-
50-
cAlgRSASign = 0x00002400
51-
cAlgRSAKeyX = 0x0000A400
52-
53-
publicKeyBlob = 0x06
54-
privateKeyBlob = 0x07
55-
56-
magicRSA1 = 0x31415352
57-
magicRSA2 = 0x32415352
58-
)

0 commit comments

Comments
 (0)