Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
  • Loading branch information
lumjjb committed Aug 9, 2019
1 parent 7a69214 commit 38685e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion encryption/enclib/blockcipher/blockcipher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
Expand Down

0 comments on commit 38685e8

Please sign in to comment.