Documentation ¶
Index ¶
- func DecodeBase64(s string) []byte
- func DecodePrivateKey(s string) (ed25519.PrivateKey, error)
- func DecodePublicKey(s string) (ed25519.PublicKey, error)
- func Decrypt(b []byte, privateKey ed25519.PrivateKey) ([]byte, error)
- func DecryptLegacy(b []byte, privateKey ed25519.PrivateKey) ([]byte, error)
- func Encode(values ...interface{}) ([]byte, error)
- func Encrypt(body []byte, privateKey ed25519.PrivateKey, publicKey ed25519.PublicKey) ([]byte, error)
- func EncryptLegacy(body []byte, privateKey ed25519.PrivateKey, publicKey ed25519.PublicKey) ([]byte, error)
- func Pack(body, sig []byte) []byte
- func Scan(body []byte, dest ...interface{}) ([]byte, error)
- func Sign(body []byte, privateKey ed25519.PrivateKey) []byte
- func Unpack(b []byte) (body, sig []byte, err error)
- func Verify(body, sig []byte, publicKey ed25519.PublicKey) bool
- type RawMessage
- type Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBase64 ¶
func DecodePrivateKey ¶
func DecodePrivateKey(s string) (ed25519.PrivateKey, error)
func Decrypt ¶
func Decrypt(b []byte, privateKey ed25519.PrivateKey) ([]byte, error)
Decrypt decrypts the body with the private key and public key.
func DecryptLegacy ¶
func DecryptLegacy(b []byte, privateKey ed25519.PrivateKey) ([]byte, error)
DecryptLegacy decrypts the body with the private key and public key. Deprecated, use Decrypt instead
func EncryptLegacy ¶
func EncryptLegacy(body []byte, privateKey ed25519.PrivateKey, publicKey ed25519.PublicKey) ([]byte, error)
EncryptLegacy encrypts data with legacy aes key & iv Deprecated, use Encrypt instead
Types ¶
type RawMessage ¶
type RawMessage []byte
func (RawMessage) MarshalBinary ¶
func (r RawMessage) MarshalBinary() ([]byte, error)
func (*RawMessage) Scan ¶
func (r *RawMessage) Scan(src interface{}) error
func (*RawMessage) UnmarshalBinary ¶
func (r *RawMessage) UnmarshalBinary(data []byte) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.