Documentation ¶
Overview ¶
Package encryption contains all the ECB and CBC encryption routines
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BlockSize = aes.BlockSize
BlockSize Export this value (which is always 16 lol) to other packages so they don't need to import crypto/aes
Functions ¶
func DecryptFile ¶
DecryptFile This function uses the decrypted data encryption key and the retrieved IV to decrypt the data file
func EncryptFile ¶
EncryptFile This function uses the provided data encryption key and generates an IV to encrypt the data file
func GenerateDataKey ¶
func GenerateDataKey() []byte
GenerateDataKey Does what's on the tin, generates the data encryption key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.