encryption

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2021 License: MIT Imports: 6 Imported by: 0

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

func DecryptFile(data []byte, iv []byte, key []byte) []byte

DecryptFile This function uses the decrypted data encryption key and the retrieved IV to decrypt the data file

func EncryptFile

func EncryptFile(data []byte, key []byte) ([]byte, []byte)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL