covEncryptedKeyWithCert returns an EncryptedKey element whose KeyInfo holds certText as its X509Certificate.
(certText string)
| 45 | // covEncryptedKeyWithCert returns an EncryptedKey element whose KeyInfo holds |
| 46 | // certText as its X509Certificate. |
| 47 | func 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 | |
| 53 | func TestCovValidateRSAKeyIfPresent(t *testing.T) { |
| 54 | key, cert := newKeyAndCert(t) |
no outgoing calls
no test coverage detected