Documentation ¶
Overview ¶
Package encryption contains all the ECB and CBC encryption routines
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 from the S3 metadata to decrypt the data file
func ECBDecrypt ¶
ECBDecrypt This function does the ECB decryption of the stored data encryption key with the KMS generated envelope key
func ECBEncrypt ¶
ECBEncrypt This function encrypts the data encryption key with the KMS generated envelope key
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.