Documentation ¶
Overview ¶
Package keys provides access to public and private keys for signing and verification of signatures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSigner ¶
NewSigner uses a registered ProtoHandler (see RegisterHandler()) to convert a protobuf message into a crypto.Signer. If there is no ProtoHandler registered for this type of protobuf message, an error will be returned.
func RegisterHandler ¶
func RegisterHandler(keyProto proto.Message, handler ProtoHandler)
RegisterHandler enables transformation of protobuf messages of the same type as keyProto into crypto.Signer by invoking the provided handler. The keyProto need only be an empty example of the type of protobuf message that the handler can process - only its type is examined. If a handler for this type of protobuf message has already been added, it will be replaced.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package der contains functions for marshaling and unmarshaling keys in DER format.
|
Package der contains functions for marshaling and unmarshaling keys in DER format. |
Package pem contains functions for marshaling and unmarshaling keys in PEM format.
|
Package pem contains functions for marshaling and unmarshaling keys in PEM format. |
Package pkcs11 provides access to private keys using a PKCS#11 interface.
|
Package pkcs11 provides access to private keys using a PKCS#11 interface. |
Package testonly contains code and data that should only be used by tests.
|
Package testonly contains code and data that should only be used by tests. |