Documentation
¶
Overview ¶
Package compatibility provides test helpers for verifying cryptographic interoperability with external tools like OpenSSL.
Index ¶
- func CompareECDSAKeys(key1, key2 *ecdsa.PrivateKey) bool
- func CompareEd25519Keys(key1, key2 ed25519.PrivateKey) bool
- func CompareRSAKeys(key1, key2 *rsa.PrivateKey) bool
- func CreateTestData() []byte
- func ParsePrivateKeyPEM(pemData []byte) (interface{}, error)
- func ParsePublicKeyPEM(pemData []byte) (interface{}, error)
- type OpenSSLHelper
- func (h *OpenSSLHelper) Cleanup()
- func (h *OpenSSLHelper) ConvertCertDERToPEMWithOpenSSL(certDER []byte) ([]byte, error)
- func (h *OpenSSLHelper) ConvertCertPEMToDERWithOpenSSL(certPEM []byte) ([]byte, error)
- func (h *OpenSSLHelper) ConvertPEMToSSHWithSSHKeygen(pemPrivateKey []byte) ([]byte, error)
- func (h *OpenSSLHelper) ConvertSSHToPEMWithSSHKeygen(sshPrivateKey []byte) ([]byte, error)
- func (h *OpenSSLHelper) CreatePKCS7SignatureWithOpenSSL(data, privateKeyPEM, certPEM []byte, detached bool) ([]byte, error)
- func (h *OpenSSLHelper) CreateRawSignatureWithOpenSSL(data, privateKeyPEM []byte, algorithm, hashAlg string) ([]byte, error)
- func (h *OpenSSLHelper) CreateTestCertificate(publicKey interface{}, privateKey interface{}, subject string) (*x509.Certificate, error)
- func (h *OpenSSLHelper) DecryptAESGCMWithOpenSSL(encryptedData []byte, key []byte, iv []byte, tag []byte, keySize int) ([]byte, error)
- func (h *OpenSSLHelper) DecryptRSAOAEPWithOpenSSL(encryptedData []byte, privateKeyPEM []byte) ([]byte, error)
- func (h *OpenSSLHelper) EncryptAESGCMWithOpenSSL(data []byte, key []byte, keySize int) ([]byte, []byte, []byte, error)
- func (h *OpenSSLHelper) EncryptRSAOAEPWithOpenSSL(data []byte, publicKeyPEM []byte) ([]byte, error)
- func (h *OpenSSLHelper) ExtractPublicKeyWithSSHKeygen(privateKeyData []byte) ([]byte, error)
- func (h *OpenSSLHelper) ExtractSignatureInfoWithOpenSSL(signatureData []byte) (string, error)
- func (h *OpenSSLHelper) GenerateCACertWithOpenSSL(privateKeyPEM []byte, subject string) ([]byte, error)
- func (h *OpenSSLHelper) GenerateCSRWithOpenSSL(privateKeyPEM []byte, subject, san string) ([]byte, error)
- func (h *OpenSSLHelper) GenerateECDSAWithOpenSSL(curveName string) (privateKeyPEM, publicKeyPEM []byte, err error)
- func (h *OpenSSLHelper) GenerateEd25519WithOpenSSL() (privateKeyPEM, publicKeyPEM []byte, err error)
- func (h *OpenSSLHelper) GenerateRSAWithOpenSSL(keySize int) (privateKeyPEM, publicKeyPEM []byte, err error)
- func (h *OpenSSLHelper) GenerateSSHKeyWithPassphrase(algorithm string, keySize int, passphrase string) (privateKeyData, publicKeyData []byte, err error)
- func (h *OpenSSLHelper) GenerateSSHKeyWithSSHKeygen(algorithm string, keySize int) (privateKeyData, publicKeyData []byte, err error)
- func (h *OpenSSLHelper) GenerateSelfSignedCertWithOpenSSL(privateKeyPEM []byte, subject, san string) ([]byte, error)
- func (h *OpenSSLHelper) GenerateX25519KeyPairWithOpenSSL() ([]byte, []byte, error)
- func (h *OpenSSLHelper) GetSSHKeyFingerprint(publicKeyData []byte, hashAlg string) (string, error)
- func (h *OpenSSLHelper) GetSSHKeyInformation(publicKeyData []byte) (string, error)
- func (h *OpenSSLHelper) PerformECDHWithOpenSSL(privateKeyPEM []byte, peerPublicKeyPEM []byte) ([]byte, error)
- func (h *OpenSSLHelper) PerformX25519WithOpenSSL(privateKeyPEM []byte, peerPublicKeyPEM []byte) ([]byte, error)
- func (h *OpenSSLHelper) ReadFile(filepath string) ([]byte, error)
- func (h *OpenSSLHelper) RunOpenSSL(args ...string) ([]byte, error)
- func (h *OpenSSLHelper) RunOpenSSLCommand(cmd string) ([]byte, error)
- func (h *OpenSSLHelper) SignCertificateWithOpenSSL(csrPEM, caCertPEM, caKeyPEM []byte, subject, san string) ([]byte, error)
- func (h *OpenSSLHelper) SignDataWithOpenSSL(data, privateKeyPEM []byte, algorithm string) ([]byte, error)
- func (h *OpenSSLHelper) SignDataWithOpenSSLCMS(data, privateKeyPEM, certPEM []byte, hashAlg string) ([]byte, error)
- func (h *OpenSSLHelper) SignWithOpenSSL(data []byte, privateKeyPEM []byte, hashAlg string) ([]byte, error)
- func (h *OpenSSLHelper) TempDir() string
- func (h *OpenSSLHelper) TempFile(name string, content []byte) string
- func (h *OpenSSLHelper) ValidateAuthorizedKeysFormat(publicKeyData []byte) error
- func (h *OpenSSLHelper) ValidateCMSWithOpenSSL(cmsData []byte) error
- func (h *OpenSSLHelper) ValidateCertificateWithOpenSSL(certPEM []byte) error
- func (h *OpenSSLHelper) ValidatePrivateKeyWithOpenSSL(privateKeyPEM []byte, algorithm string) error
- func (h *OpenSSLHelper) ValidatePublicKeyWithOpenSSL(publicKeyPEM []byte) error
- func (h *OpenSSLHelper) ValidateSSHPrivateKeyWithSSHKeygen(privateKeyData []byte) error
- func (h *OpenSSLHelper) ValidateSSHPublicKeyWithSSHKeygen(publicKeyData []byte) error
- func (h *OpenSSLHelper) ValidateSignatureFormatWithOpenSSL(signatureData []byte, format string) error
- func (h *OpenSSLHelper) VerifyAlgorithmSignatureWithOpenSSL(data, signature, publicKeyPEM []byte, algorithm, hashAlg string) error
- func (h *OpenSSLHelper) VerifyCertificateChainWithOpenSSL(certPEM, caCertPEM []byte) error
- func (h *OpenSSLHelper) VerifyDetachedPKCS7SignatureWithOpenSSL(data, signatureData []byte) error
- func (h *OpenSSLHelper) VerifyECDSASignatureInterop(data []byte, derSignature []byte, publicKey *ecdsa.PublicKey) (bool, error)
- func (h *OpenSSLHelper) VerifyPKCS7SignatureWithCertificateChainWithOpenSSL(data, signatureData, caCertPEM []byte) error
- func (h *OpenSSLHelper) VerifyPKCS7SignatureWithOpenSSL(data, signatureData []byte) error
- func (h *OpenSSLHelper) VerifyRawSignatureWithOpenSSL(data []byte, signature []byte, publicKeyPEM []byte, hashAlg string) error
- func (h *OpenSSLHelper) VerifySignatureWithOpenSSL(data, signature, publicKeyPEM []byte, algorithm string) error
- func (h *OpenSSLHelper) WriteFile(filepath string, content []byte) error
- type TestKeyPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareECDSAKeys ¶
func CompareECDSAKeys(key1, key2 *ecdsa.PrivateKey) bool
CompareECDSAKeys compares ECDSA keys for mathematical equivalence
func CompareEd25519Keys ¶
func CompareEd25519Keys(key1, key2 ed25519.PrivateKey) bool
CompareEd25519Keys compares Ed25519 keys for equivalence
func CompareRSAKeys ¶
func CompareRSAKeys(key1, key2 *rsa.PrivateKey) bool
CompareRSAKeys compares RSA keys for mathematical equivalence
func CreateTestData ¶
func CreateTestData() []byte
CreateTestData creates test data for signing/verification
func ParsePrivateKeyPEM ¶
ParsePrivateKeyPEM parses a PEM-encoded private key
func ParsePublicKeyPEM ¶
ParsePublicKeyPEM parses a PEM-encoded public key
Types ¶
type OpenSSLHelper ¶
type OpenSSLHelper struct {
// contains filtered or unexported fields
}
OpenSSLHelper provides utilities for OpenSSL command execution
func NewOpenSSLHelper ¶
func NewOpenSSLHelper(t *testing.T) *OpenSSLHelper
NewOpenSSLHelper creates a new OpenSSL helper instance
func (*OpenSSLHelper) ConvertCertDERToPEMWithOpenSSL ¶
func (h *OpenSSLHelper) ConvertCertDERToPEMWithOpenSSL(certDER []byte) ([]byte, error)
ConvertCertDERToPEMWithOpenSSL converts certificate from DER to PEM using OpenSSL
func (*OpenSSLHelper) ConvertCertPEMToDERWithOpenSSL ¶
func (h *OpenSSLHelper) ConvertCertPEMToDERWithOpenSSL(certPEM []byte) ([]byte, error)
ConvertCertPEMToDERWithOpenSSL converts certificate from PEM to DER using OpenSSL
func (*OpenSSLHelper) ConvertPEMToSSHWithSSHKeygen ¶
func (h *OpenSSLHelper) ConvertPEMToSSHWithSSHKeygen(pemPrivateKey []byte) ([]byte, error)
ConvertPEMToSSHWithSSHKeygen converts a PEM private key to SSH format using ssh-keygen
func (*OpenSSLHelper) ConvertSSHToPEMWithSSHKeygen ¶ added in v1.15.0
func (h *OpenSSLHelper) ConvertSSHToPEMWithSSHKeygen(sshPrivateKey []byte) ([]byte, error)
ConvertSSHToPEMWithSSHKeygen converts SSH private key to PEM format using ssh-keygen
func (*OpenSSLHelper) CreatePKCS7SignatureWithOpenSSL ¶ added in v1.14.0
func (h *OpenSSLHelper) CreatePKCS7SignatureWithOpenSSL(data, privateKeyPEM, certPEM []byte, detached bool) ([]byte, error)
CreatePKCS7SignatureWithOpenSSL creates a PKCS#7 signature using OpenSSL
func (*OpenSSLHelper) CreateRawSignatureWithOpenSSL ¶ added in v1.14.0
func (h *OpenSSLHelper) CreateRawSignatureWithOpenSSL(data, privateKeyPEM []byte, algorithm, hashAlg string) ([]byte, error)
CreateRawSignatureWithOpenSSL creates a raw signature using OpenSSL
func (*OpenSSLHelper) CreateTestCertificate ¶ added in v1.16.0
func (h *OpenSSLHelper) CreateTestCertificate(publicKey interface{}, privateKey interface{}, subject string) (*x509.Certificate, error)
CreateTestCertificate creates a test certificate for encryption testing
func (*OpenSSLHelper) DecryptAESGCMWithOpenSSL ¶ added in v1.16.0
func (h *OpenSSLHelper) DecryptAESGCMWithOpenSSL(encryptedData []byte, key []byte, iv []byte, tag []byte, keySize int) ([]byte, error)
DecryptAESGCMWithOpenSSL decrypts data using AES-GCM with OpenSSL
func (*OpenSSLHelper) DecryptRSAOAEPWithOpenSSL ¶ added in v1.16.0
func (h *OpenSSLHelper) DecryptRSAOAEPWithOpenSSL(encryptedData []byte, privateKeyPEM []byte) ([]byte, error)
DecryptRSAOAEPWithOpenSSL decrypts data using RSA-OAEP with OpenSSL
func (*OpenSSLHelper) EncryptAESGCMWithOpenSSL ¶ added in v1.16.0
func (h *OpenSSLHelper) EncryptAESGCMWithOpenSSL(data []byte, key []byte, keySize int) ([]byte, []byte, []byte, error)
EncryptAESGCMWithOpenSSL encrypts data using AES-GCM with OpenSSL
func (*OpenSSLHelper) EncryptRSAOAEPWithOpenSSL ¶ added in v1.16.0
func (h *OpenSSLHelper) EncryptRSAOAEPWithOpenSSL(data []byte, publicKeyPEM []byte) ([]byte, error)
EncryptRSAOAEPWithOpenSSL encrypts data using RSA-OAEP with OpenSSL
func (*OpenSSLHelper) ExtractPublicKeyWithSSHKeygen ¶
func (h *OpenSSLHelper) ExtractPublicKeyWithSSHKeygen(privateKeyData []byte) ([]byte, error)
ExtractPublicKeyWithSSHKeygen extracts public key from private key using ssh-keygen
func (*OpenSSLHelper) ExtractSignatureInfoWithOpenSSL ¶ added in v1.14.0
func (h *OpenSSLHelper) ExtractSignatureInfoWithOpenSSL(signatureData []byte) (string, error)
ExtractSignatureInfoWithOpenSSL extracts signature information using OpenSSL
func (*OpenSSLHelper) GenerateCACertWithOpenSSL ¶
func (h *OpenSSLHelper) GenerateCACertWithOpenSSL(privateKeyPEM []byte, subject string) ([]byte, error)
GenerateCACertWithOpenSSL generates a CA certificate using OpenSSL
func (*OpenSSLHelper) GenerateCSRWithOpenSSL ¶
func (h *OpenSSLHelper) GenerateCSRWithOpenSSL(privateKeyPEM []byte, subject, san string) ([]byte, error)
GenerateCSRWithOpenSSL generates a certificate signing request using OpenSSL
func (*OpenSSLHelper) GenerateECDSAWithOpenSSL ¶
func (h *OpenSSLHelper) GenerateECDSAWithOpenSSL(curveName string) (privateKeyPEM, publicKeyPEM []byte, err error)
GenerateECDSAWithOpenSSL generates an ECDSA key pair using OpenSSL
func (*OpenSSLHelper) GenerateEd25519WithOpenSSL ¶
func (h *OpenSSLHelper) GenerateEd25519WithOpenSSL() (privateKeyPEM, publicKeyPEM []byte, err error)
GenerateEd25519WithOpenSSL generates an Ed25519 key pair using OpenSSL
func (*OpenSSLHelper) GenerateRSAWithOpenSSL ¶
func (h *OpenSSLHelper) GenerateRSAWithOpenSSL(keySize int) (privateKeyPEM, publicKeyPEM []byte, err error)
GenerateRSAWithOpenSSL generates an RSA key pair using OpenSSL
func (*OpenSSLHelper) GenerateSSHKeyWithPassphrase ¶
func (h *OpenSSLHelper) GenerateSSHKeyWithPassphrase(algorithm string, keySize int, passphrase string) (privateKeyData, publicKeyData []byte, err error)
GenerateSSHKeyWithPassphrase generates a passphrase-protected SSH key using ssh-keygen
func (*OpenSSLHelper) GenerateSSHKeyWithSSHKeygen ¶
func (h *OpenSSLHelper) GenerateSSHKeyWithSSHKeygen(algorithm string, keySize int) (privateKeyData, publicKeyData []byte, err error)
GenerateSSHKeyWithSSHKeygen generates an SSH key pair using ssh-keygen
func (*OpenSSLHelper) GenerateSelfSignedCertWithOpenSSL ¶
func (h *OpenSSLHelper) GenerateSelfSignedCertWithOpenSSL(privateKeyPEM []byte, subject, san string) ([]byte, error)
GenerateSelfSignedCertWithOpenSSL generates a self-signed certificate using OpenSSL
func (*OpenSSLHelper) GenerateX25519KeyPairWithOpenSSL ¶ added in v1.16.0
func (h *OpenSSLHelper) GenerateX25519KeyPairWithOpenSSL() ([]byte, []byte, error)
GenerateX25519KeyPairWithOpenSSL generates X25519 key pair using OpenSSL
func (*OpenSSLHelper) GetSSHKeyFingerprint ¶
func (h *OpenSSLHelper) GetSSHKeyFingerprint(publicKeyData []byte, hashAlg string) (string, error)
GetSSHKeyFingerprint gets the fingerprint of an SSH public key using ssh-keygen
func (*OpenSSLHelper) GetSSHKeyInformation ¶ added in v1.15.0
func (h *OpenSSLHelper) GetSSHKeyInformation(publicKeyData []byte) (string, error)
GetSSHKeyInformation gets detailed information about an SSH key using ssh-keygen
func (*OpenSSLHelper) PerformECDHWithOpenSSL ¶ added in v1.16.0
func (h *OpenSSLHelper) PerformECDHWithOpenSSL(privateKeyPEM []byte, peerPublicKeyPEM []byte) ([]byte, error)
PerformECDHWithOpenSSL performs ECDH key agreement using OpenSSL
func (*OpenSSLHelper) PerformX25519WithOpenSSL ¶ added in v1.16.0
func (h *OpenSSLHelper) PerformX25519WithOpenSSL(privateKeyPEM []byte, peerPublicKeyPEM []byte) ([]byte, error)
PerformX25519WithOpenSSL performs X25519 key agreement using OpenSSL
func (*OpenSSLHelper) ReadFile ¶ added in v1.16.0
func (h *OpenSSLHelper) ReadFile(filepath string) ([]byte, error)
ReadFile reads content from a file
func (*OpenSSLHelper) RunOpenSSL ¶
func (h *OpenSSLHelper) RunOpenSSL(args ...string) ([]byte, error)
RunOpenSSL executes an OpenSSL command and returns the output
func (*OpenSSLHelper) RunOpenSSLCommand ¶ added in v1.16.0
func (h *OpenSSLHelper) RunOpenSSLCommand(cmd string) ([]byte, error)
RunOpenSSLCommand runs a raw OpenSSL command string
func (*OpenSSLHelper) SignCertificateWithOpenSSL ¶
func (h *OpenSSLHelper) SignCertificateWithOpenSSL(csrPEM, caCertPEM, caKeyPEM []byte, subject, san string) ([]byte, error)
SignCertificateWithOpenSSL signs a certificate using OpenSSL CA
func (*OpenSSLHelper) SignDataWithOpenSSL ¶
func (h *OpenSSLHelper) SignDataWithOpenSSL(data, privateKeyPEM []byte, algorithm string) ([]byte, error)
SignDataWithOpenSSL signs data using OpenSSL
func (*OpenSSLHelper) SignDataWithOpenSSLCMS ¶ added in v1.14.0
func (h *OpenSSLHelper) SignDataWithOpenSSLCMS(data, privateKeyPEM, certPEM []byte, hashAlg string) ([]byte, error)
SignDataWithOpenSSLCMS creates a CMS signature using OpenSSL cms command
func (*OpenSSLHelper) SignWithOpenSSL ¶ added in v1.15.0
func (h *OpenSSLHelper) SignWithOpenSSL(data []byte, privateKeyPEM []byte, hashAlg string) ([]byte, error)
SignWithOpenSSL creates a signature using OpenSSL pkeyutl
func (*OpenSSLHelper) TempDir ¶ added in v1.16.0
func (h *OpenSSLHelper) TempDir() string
TempDir returns the temporary directory path
func (*OpenSSLHelper) TempFile ¶
func (h *OpenSSLHelper) TempFile(name string, content []byte) string
TempFile creates a temporary file with the given content
func (*OpenSSLHelper) ValidateAuthorizedKeysFormat ¶
func (h *OpenSSLHelper) ValidateAuthorizedKeysFormat(publicKeyData []byte) error
ValidateAuthorizedKeysFormat checks if a public key works in authorized_keys format
func (*OpenSSLHelper) ValidateCMSWithOpenSSL ¶ added in v1.16.0
func (h *OpenSSLHelper) ValidateCMSWithOpenSSL(cmsData []byte) error
ValidateCMSWithOpenSSL validates CMS format using OpenSSL
func (*OpenSSLHelper) ValidateCertificateWithOpenSSL ¶
func (h *OpenSSLHelper) ValidateCertificateWithOpenSSL(certPEM []byte) error
ValidateCertificateWithOpenSSL validates a certificate using OpenSSL
func (*OpenSSLHelper) ValidatePrivateKeyWithOpenSSL ¶
func (h *OpenSSLHelper) ValidatePrivateKeyWithOpenSSL(privateKeyPEM []byte, algorithm string) error
ValidatePrivateKeyWithOpenSSL validates a private key using OpenSSL
func (*OpenSSLHelper) ValidatePublicKeyWithOpenSSL ¶
func (h *OpenSSLHelper) ValidatePublicKeyWithOpenSSL(publicKeyPEM []byte) error
ValidatePublicKeyWithOpenSSL validates a public key using OpenSSL
func (*OpenSSLHelper) ValidateSSHPrivateKeyWithSSHKeygen ¶
func (h *OpenSSLHelper) ValidateSSHPrivateKeyWithSSHKeygen(privateKeyData []byte) error
ValidateSSHPrivateKeyWithSSHKeygen validates an SSH private key using ssh-keygen
func (*OpenSSLHelper) ValidateSSHPublicKeyWithSSHKeygen ¶
func (h *OpenSSLHelper) ValidateSSHPublicKeyWithSSHKeygen(publicKeyData []byte) error
ValidateSSHPublicKeyWithSSHKeygen validates an SSH public key using ssh-keygen
func (*OpenSSLHelper) ValidateSignatureFormatWithOpenSSL ¶ added in v1.14.0
func (h *OpenSSLHelper) ValidateSignatureFormatWithOpenSSL(signatureData []byte, format string) error
ValidateSignatureFormatWithOpenSSL validates signature format using OpenSSL
func (*OpenSSLHelper) VerifyAlgorithmSignatureWithOpenSSL ¶ added in v1.15.0
func (h *OpenSSLHelper) VerifyAlgorithmSignatureWithOpenSSL(data, signature, publicKeyPEM []byte, algorithm, hashAlg string) error
VerifyAlgorithmSignatureWithOpenSSL verifies a signature using OpenSSL with specific algorithm
func (*OpenSSLHelper) VerifyCertificateChainWithOpenSSL ¶
func (h *OpenSSLHelper) VerifyCertificateChainWithOpenSSL(certPEM, caCertPEM []byte) error
VerifyCertificateChainWithOpenSSL verifies certificate chain using OpenSSL
func (*OpenSSLHelper) VerifyDetachedPKCS7SignatureWithOpenSSL ¶ added in v1.14.0
func (h *OpenSSLHelper) VerifyDetachedPKCS7SignatureWithOpenSSL(data, signatureData []byte) error
VerifyDetachedPKCS7SignatureWithOpenSSL verifies a detached PKCS#7 signature using OpenSSL
func (*OpenSSLHelper) VerifyECDSASignatureInterop ¶ added in v1.15.0
func (h *OpenSSLHelper) VerifyECDSASignatureInterop(data []byte, derSignature []byte, publicKey *ecdsa.PublicKey) (bool, error)
VerifyECDSASignatureInterop verifies ECDSA signature with proper DER parsing
func (*OpenSSLHelper) VerifyPKCS7SignatureWithCertificateChainWithOpenSSL ¶ added in v1.14.0
func (h *OpenSSLHelper) VerifyPKCS7SignatureWithCertificateChainWithOpenSSL(data, signatureData, caCertPEM []byte) error
VerifyPKCS7SignatureWithCertificateChainWithOpenSSL verifies PKCS#7 signature with certificate chain
func (*OpenSSLHelper) VerifyPKCS7SignatureWithOpenSSL ¶ added in v1.14.0
func (h *OpenSSLHelper) VerifyPKCS7SignatureWithOpenSSL(data, signatureData []byte) error
VerifyPKCS7SignatureWithOpenSSL verifies a PKCS#7 signature using OpenSSL
func (*OpenSSLHelper) VerifyRawSignatureWithOpenSSL ¶ added in v1.14.0
func (h *OpenSSLHelper) VerifyRawSignatureWithOpenSSL(data []byte, signature []byte, publicKeyPEM []byte, hashAlg string) error
VerifyRawSignatureWithOpenSSL verifies a raw signature using OpenSSL pkeyutl
func (*OpenSSLHelper) VerifySignatureWithOpenSSL ¶
func (h *OpenSSLHelper) VerifySignatureWithOpenSSL(data, signature, publicKeyPEM []byte, algorithm string) error
VerifySignatureWithOpenSSL verifies a signature using OpenSSL
type TestKeyPair ¶
type TestKeyPair struct {
Algorithm string
KeySize int
CurveName string
PrivateKey interface{}
PublicKey interface{}
PrivatePEM []byte
PublicPEM []byte
PrivateDER []byte
PublicDER []byte
TempDir string
}
TestKeyPair represents a generated key pair for testing
func (*TestKeyPair) Cleanup ¶
func (tkp *TestKeyPair) Cleanup()
Cleanup removes temporary files created during testing