Documentation
¶
Index ¶
- Variables
- func CanonicalSignaturePayload(method, path, timestamp, nonce string, canonicalBody []byte) []byte
- func DecryptAESGCM(key, ciphertext, aad []byte) ([]byte, error)
- func EncryptAESGCM(key, plaintext, aad []byte) ([]byte, error)
- func EqualHMACHex(a, b string) bool
- func HMACSHA256Hex(secret, data []byte) string
- func RandomBase64URL(n int) (string, error)
- func RandomBytes(n int) ([]byte, error)
- func RandomHex(n int) (string, error)
- func SHA256Hex(data []byte) string
- func SignHMACSHA256(secret []byte, method, path, timestamp, nonce string, canonicalBody []byte) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCiphertextTooShort = errors.New("security crypto: ciphertext too short")
Functions ¶
func DecryptAESGCM ¶
func EncryptAESGCM ¶
func EqualHMACHex ¶
func HMACSHA256Hex ¶
func RandomBase64URL ¶
func RandomBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.