MCPcopy Create free account
hub / github.com/prometheus/procfs / TestFS_Crypto

Function TestFS_Crypto

crypto_test.go:23–123  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21)
22
23func TestFS_Crypto(t *testing.T) {
24 fs := getProcFixtures(t)
25 crypto, err := fs.Crypto()
26
27 if err != nil {
28 t.Fatalf("parsing of reference-file failed entirely: %s", err)
29 }
30
31 refs := []Crypto{
32 {
33 Name: "ccm(aes)",
34 Driver: "ccm_base(ctr(aes-aesni),cbcmac(aes-aesni))",
35 Module: "ccm",
36 Priority: newint64(300),
37 Refcnt: newint64(4),
38 Selftest: "passed",
39 Internal: "no",
40 Type: "aead",
41 Async: false,
42 Blocksize: newuint64(1),
43 Ivsize: newuint64(16),
44 Maxauthsize: newuint64(16),
45 Geniv: "<none>",
46 },
47 {
48 Name: "cbcmac(aes)",
49 Driver: "cbcmac(aes-aesni)",
50 Module: "ccm",
51 Priority: newint64(300),
52 Refcnt: newint64(7),
53 Selftest: "passed",
54 Internal: "no",
55 Type: "shash",
56 Blocksize: newuint64(1),
57 Digestsize: newuint64(16),
58 },
59 {
60 Name: "ecdh",
61 Driver: "ecdh-generic",
62 Module: "ecdh_generic",
63 Priority: newint64(100),
64 Refcnt: newint64(1),
65 Selftest: "passed",
66 Internal: "no",
67 Type: "kpp",
68 Async: true,
69 },
70 {
71 Name: "ecb(arc4)",
72 Driver: "ecb(arc4)-generic",
73 Module: "arc4",
74 Priority: newint64(100),
75 Refcnt: newint64(1),
76 Selftest: "passed",
77 Internal: "no",
78 Type: "skcipher",
79 Async: false,
80 Blocksize: newuint64(1),

Callers

nothing calls this directly

Calls 4

getProcFixturesFunction · 0.85
newint64Function · 0.85
newuint64Function · 0.85
CryptoMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…