Documentation ¶
Index ¶
Constants ¶
View Source
const MinPackedEncryptedSize = 24 + secretbox.Overhead
MinPackedEncryptedSize is the minimum size of an encrypted message packed with a nonce.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
Open decrypts a message with the provided key. It uses the prefixed nonce and returns the decrypted message and true. If the message is corrupt or could not be decrypted it returns false.
func PackedEncryptedSize ¶
PackedEncryptedSize returns the estimated size for an encrypted sw message with a prepended (packed) nonce, given the specified payload msg size.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.