Documentation ¶
Overview ¶
Package testonly contains code and data that should only be used by tests. Production code MUST NOT depend on anything in this package. This will be enforced by tools where possible.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckKeyMatchesSpec ¶
func CheckKeyMatchesSpec(key crypto.PrivateKey, spec *keyspb.Specification) error
CheckKeyMatchesSpec verifies that the key conforms to the specification. If it does not, an error is returned.
func MustMarshalPrivatePEMToDER ¶
MustMarshalPrivatePEMToDER decrypts a PEM-encoded private key and returns it in DER encoding. If an error occurs, it panics.
func MustMarshalPublicPEMToDER ¶
MustMarshalPublicPEMToDER reads a PEM-encoded public key and returns it in DER encoding. If an error occurs, it panics.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.