Documentation ¶
Index ¶
- func GenerateEd25519KeyPair() (PublicKey, PrivateKey, error)
- func VerifyEd25519(key PublicKey, signature Signature, payload Payload) bool
- func VerifyHash(key MacKey, algo HashAlgo, hashValue HashValue, payload Payload) bool
- type HashAlgo
- type HashValue
- type MacKey
- type Payload
- type PrivateKey
- type PrivatePem
- type PublicKey
- type PublicPem
- type Signature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateEd25519KeyPair ¶
func GenerateEd25519KeyPair() (PublicKey, PrivateKey, error)
Types ¶
type HashValue ¶
type HashValue []byte
func Blake2b256 ¶
Blake2b256 calculates the BLAKE2b-256 hash of the given data If a key is provided, it is used as the HMAC key
type PrivateKey ¶
type PrivateKey []byte
func DecodeEd25519PrivateKey ¶ added in v0.1.2
func DecodeEd25519PrivateKey(key PrivatePem) (PrivateKey, error)
type PrivatePem ¶ added in v0.1.2
type PrivatePem []byte
func EncodeEd25519PrivateKey ¶ added in v0.1.2
func EncodeEd25519PrivateKey(key PrivateKey) (PrivatePem, error)
type PublicPem ¶ added in v0.1.2
type PublicPem []byte
func EncodeEd25519PublicKey ¶ added in v0.1.2
Click to show internal directories.
Click to hide internal directories.