package pem
import "github.com/google/trillian/crypto/keys/pem"
Index ¶
- func FromProto(_ context.Context, pb proto.Message) (crypto.Signer, error)
- func ReadPrivateKeyFile(file, password string) (crypto.Signer, error)
- func UnmarshalPrivateKey(keyPEM, password string) (crypto.Signer, error)
Functions ¶
func FromProto ¶
FromProto builds a crypto.Signer from a proto.Message, which must be of type PEMKeyFile.
func ReadPrivateKeyFile ¶
ReadPrivateKeyFile reads a PEM-encoded private key from a file. The key must be protected by a password.
func UnmarshalPrivateKey ¶
UnmarshalPrivateKey reads a PEM-encoded private key from a string. The key may be protected by a password.
Source Files ¶
- Version
- v1.4.0
- Published
- Sep 21, 2021
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 2 hours ago –
Tools for package owners.