From 2c7c69ae8baf196b00edf7531a5a824ff9419919 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Mon, 18 Apr 2016 10:03:50 -0700 Subject: [PATCH] crypto doing dinosaur Signed-off-by: Jess Frazelle --- Makefile | 2 +- cryptar/cryptar.go | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 1541c40..8b9952e 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ image.tar: docker export $(shell docker create $(DOCKER_ROOTFS_IMAGE) sh) > $@ rootfs.go: image.tar - GOMAXPROCS=1 go run generate.go + GOMAXPROCS=1 go generate fmt: @echo "+ $@" diff --git a/cryptar/cryptar.go b/cryptar/cryptar.go index 90c08b4..f743bec 100644 --- a/cryptar/cryptar.go +++ b/cryptar/cryptar.go @@ -1,3 +1,4 @@ +// Package cryptar implements the crypto doing dinosaur. package cryptar import ( @@ -51,13 +52,6 @@ func Decrypt(enctar string, key []byte) ([]byte, error) { } func keyToGCM(key []byte) (cipher.AEAD, error) { - /*hash := sha256.New() - if _, err := hash.Write([]byte(key)); err != nil { - return nil, err - } - md := hash.Sum(nil) - mdkey := hex.EncodeToString(md)*/ - // encrypt the tar with the key block, err := aes.NewCipher(key) if err != nil {