Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
produce the plaintext and extra data from the packet created by Seal
The key must be the same as the one used for encryption. Produce an error if the message cannot be authenticated.
func Seal ¶
produce a packet
signature: "aGCM" noncelen: uint8(12) extralen: uint8 nonce: radomly generated extra: sealed: plaintext authenticated and encrypted with key extra is also authenticated Note that the design of crypto/cipher.AEAD makes it difficult at best to create a streaming interface. We are stuck with a message-oriented protocol unless we want to reimplement the GCM. This may or may not be a bad thing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.