Documentation ¶
Index ¶
- func LoadPrivateKey(file string) (*ecdsa.PrivateKey, error)
- func LoadPrivateKeyFromFile(filePath string) (*ecdsa.PrivateKey, error)
- func NewBase64Encoder() *base64Encoder
- func NewECDSA(privKey *ecdsa.PrivateKey, hasher Hasher, encoder Encoder) *ecdsaSigner
- func NewSHA256Hasher() *sha256Hasher
- type Encoder
- type Hasher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPrivateKey ¶
func LoadPrivateKey(file string) (*ecdsa.PrivateKey, error)
func LoadPrivateKeyFromFile ¶
func LoadPrivateKeyFromFile(filePath string) (*ecdsa.PrivateKey, error)
LoadPrivateKeyFromFile loads a EC private key from file
func NewBase64Encoder ¶
func NewBase64Encoder() *base64Encoder
NewBase64Encoder is a constructor function for the base64Encoder type
func NewECDSA ¶
func NewECDSA(privKey *ecdsa.PrivateKey, hasher Hasher, encoder Encoder) *ecdsaSigner
NewECDSA is a constructor function for the ecdsaSigner type
func NewSHA256Hasher ¶
func NewSHA256Hasher() *sha256Hasher
NewSHA256Hasher is a constructor function for the sha256Hasher type
Types ¶
Click to show internal directories.
Click to hide internal directories.