Skip to content

Commit

Permalink
Update sops.go
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Fontein <felix@fontein.de>
Signed-off-by: Mitar <mitar.github@tnode.com>
  • Loading branch information
mitar and felixfontein authored Sep 25, 2023
1 parent ece45df commit b2dad34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sops.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ const MetadataNotFound = sopsError("sops metadata not found")
// MACOnlyEncryptedInitialization is a constant and known sequence of 32 bytes used to initialize
// MAC which is computed only over values which end up encrypted. That assures that a MAC with the
// setting enabled is always different from a MAC with this setting disabled.
var MACOnlyEncryptedInitialization = []byte{230, 33, 177, 209, 12, 4, 122, 97, 127, 148, 55, 76, 77, 172, 154, 145, 62, 252, 196, 118, 70, 250, 45, 185, 212, 142, 78, 165, 226, 1, 23, 126}
// The following numbers are taken from the output of `echo -n sops | sha256sum` (shell) or `hashlib.sha256(b'sops').hexdigest()` (Python).
var MACOnlyEncryptedInitialization = []byte{0x8a, 0x3f, 0xd2, 0xad, 0x54, 0xce, 0x66, 0x52, 0x7b, 0x10, 0x34, 0xf3, 0xd1, 0x47, 0xbe, 0xb, 0xb, 0x97, 0x5b, 0x3b, 0xf4, 0x4f, 0x72, 0xc6, 0xfd, 0xad, 0xec, 0x81, 0x76, 0xf2, 0x7d, 0x69}

var log *logrus.Logger

Expand Down

0 comments on commit b2dad34

Please # to comment.