Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Overhead includes the nonce size and the auth tag size. Overhead = chacha20poly1305.NonceSizeX + poly1305.TagSize // ChunkOverhead is the normal overhead plus the header for each chunk. ChunkOverhead = Overhead + 8 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Crypto ¶
type Crypto struct {
// contains filtered or unexported fields
}
Crypto represents a wrapper for AES de- and encryption.
func ExistingCrypto ¶
ExistingCrypto returns a crypto wrapper for the given key.
Click to show internal directories.
Click to hide internal directories.