MCPcopy Create free account
hub / github.com/crewjam/saml / FuzzDecrypt

Function FuzzDecrypt

xmlenc/fuzz_coverage_test.go:138–150  ·  view source on GitHub ↗

FuzzDecrypt fuzzes Decrypt with hostile documents, seeded with the corpus and past crashers of the retired go-fuzz harness. Run it with go test -fuzz=FuzzDecrypt ./xmlenc

(f *testing.F)

Source from the content-addressed store, hash-verified

136//
137// go test -fuzz=FuzzDecrypt ./xmlenc
138func FuzzDecrypt(f *testing.F) {
139 for _, seed := range covSeeds(f) {
140 f.Add(seed)
141 }
142 for _, bc := range []BlockCipher{AES128CBC, AES256GCM} {
143 e := OAEP()
144 e.BlockCipher = bc
145 f.Add(covTestKeyDocument(f, e))
146 }
147 f.Fuzz(func(_ *testing.T, data []byte) {
148 _ = decryptForFuzzing(covFuzzKey(), data)
149 })
150}

Callers

nothing calls this directly

Calls 4

covSeedsFunction · 0.85
OAEPFunction · 0.85
covTestKeyDocumentFunction · 0.85
decryptForFuzzingFunction · 0.85

Tested by

no test coverage detected