Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPublicKey = errors.New("invalid public key")
Functions ¶
func ParsePublicKeyFile ¶ added in v0.9.0
Types ¶
type Signer ¶
func NewSigner ¶
NewSigner returns a signer object. It requires a private key file path. To generate a valid key use openssl tool. Ex: openssl ecparam -name prime256v1 -genkey -noout -out ec.key
func NewSignerFromPKey ¶
func NewSignerFromPKey(r io.Reader, pk *ecdsa.PrivateKey) Signer
NewSignerFromPKey returns a signer from a io.Reader and a *ecdsa.PrivateKey.
Click to show internal directories.
Click to hide internal directories.