File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed
Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff 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
826type 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- )
You can’t perform that action at this time.
0 commit comments