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

Function covEncryptedKeyWithCert

xmlenc/decrypt_coverage_test.go:47–51  ·  view source on GitHub ↗

covEncryptedKeyWithCert returns an EncryptedKey element whose KeyInfo holds certText as its X509Certificate.

(certText string)

Source from the content-addressed store, hash-verified

45// covEncryptedKeyWithCert returns an EncryptedKey element whose KeyInfo holds
46// certText as its X509Certificate.
47func covEncryptedKeyWithCert(certText string) *etree.Element {
48 el := etree.NewElement("EncryptedKey")
49 el.CreateElement("KeyInfo").CreateElement("X509Data").CreateElement("X509Certificate").SetText(certText)
50 return el
51}
52
53func TestCovValidateRSAKeyIfPresent(t *testing.T) {
54 key, cert := newKeyAndCert(t)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected