Documentation ¶
Index ¶
- Constants
- func DecryptBase64String(b64msg string, aead cipher.AEAD, priv []byte) ([]byte, error)
- func DecryptKind0Message(msg []byte, aead cipher.AEAD) ([]byte, error)
- func DecryptKind1Message(msg []byte, priv []byte) ([]byte, error)
- func DecryptMessage(msg []byte, aead cipher.AEAD, priv []byte) ([]byte, error)
- func DeriveHKDFKey(secret []byte) ([]byte, error)
- func EncryptKind0Message(msg []byte, aead cipher.AEAD) ([]byte, error)
- func EncryptKind0MessageWithNonce(msg []byte, aead cipher.AEAD, nonce []byte) ([]byte, error)
- func EncryptKind1Message(msg []byte, selfPriv []byte, peerPub []byte) ([]byte, error)
- func GenerateSymmetricKeyFromKeyAgreement(selfPriv []byte, peerPub []byte) ([]byte, error)
- func GetMessageKind(bs []byte) byte
Constants ¶
View Source
const ( ENVELOPE_TYPE_SIZE = 1 NONCE_SIZE = 12 KEY_SIZE = 32 )
Variables ¶
This section is empty.
Functions ¶
func DecryptBase64String ¶
func DecryptMessage ¶
func DeriveHKDFKey ¶
func EncryptKind1Message ¶
func GetMessageKind ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.