From 38685e8452c668926d6530707eaf5a6d4e6d432c Mon Sep 17 00:00:00 2001 From: Brandon Lum Date: Fri, 9 Aug 2019 14:11:12 -0400 Subject: [PATCH] lint Signed-off-by: Brandon Lum --- encryption/enclib/blockcipher/blockcipher.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/encryption/enclib/blockcipher/blockcipher.go b/encryption/enclib/blockcipher/blockcipher.go index 48017504ea..f886f8d295 100644 --- a/encryption/enclib/blockcipher/blockcipher.go +++ b/encryption/enclib/blockcipher/blockcipher.go @@ -80,6 +80,7 @@ type LayerBlockCipherHandler struct { cipherMap map[LayerCipherType]LayerBlockCipher } +// Finalizer is called after data blobs are written, and returns the LayerBlockCipherOptions for the encrypted blob type Finalizer func() (LayerBlockCipherOptions, error) // GetOpt returns the value of the cipher option and if the option exists @@ -98,7 +99,7 @@ func (lbco LayerBlockCipherOptions) SymmetricKey() []byte { return lbco.Private.SymmetricKey } -// SymmetricKey returns the value of the symmetric key for the cipher +// OriginalDigest returns the value of the original digest of the unencrypted blob func (lbco LayerBlockCipherOptions) OriginalDigest() digest.Digest { return lbco.Private.Digest }