1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 12:45:21 +01:00

Fix golint errors

This commit is contained in:
Adrian Utrilla
2017-09-12 09:59:23 -07:00
parent d1637e0da7
commit 93570b20d7
23 changed files with 107 additions and 62 deletions

View File

@@ -33,10 +33,12 @@ type MasterKey struct {
EncryptionContext map[string]*string
}
// EncryptedDataKey returns the encrypted data key this master key holds
func (key *MasterKey) EncryptedDataKey() []byte {
return []byte(key.EncryptedKey)
}
// SetEncryptedDataKey sets the encrypted data key for this master key
func (key *MasterKey) SetEncryptedDataKey(enc []byte) {
key.EncryptedKey = string(enc)
}