awsfuncs

package
v0.0.0-...-f53915b Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2016 License: MIT Imports: 10 Imported by: 1

Documentation

Overview

Package awsfuncs contains all the code that deals directly with AWS services

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchFile

func FetchFile(remfilename string, bucket string) ([]byte, []byte, []byte)

FetchFile This function is used to fetch the decrypted file from S3 and grab all pertinent metatdata (IV, key)

func FetchKey

func FetchKey(remfilename string, bucket string, context string) []byte

FetchKey This function is used to fetch a saved encrypted key from S3 and decrypt it with KMS

func GenerateEnvKey

func GenerateEnvKey(cmkID string, context string) ([]byte, []byte)

GenerateEnvKey This function is used to generate KMS encryption keys for envelope encryption

func PutEncFile

func PutEncFile(filedata []byte, remfilename string, bucket string, iv []byte, cryptdatakey []byte, sse string)

PutEncFile encrypts and uploads the file with the proper metadata

func PutEncKey

func PutEncKey(key []byte, remfilename string, bucket string, sse string)

PutEncKey places the encrypted envelope key in AWS S3.

Types

This section is empty.

Jump to

Keyboard shortcuts

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