mirror of
https://github.com/cloudflare/redoctober.git
synced 2026-01-08 07:11:48 +00:00
Include Usages field when computing HMAC
This commit is contained in:
@@ -223,6 +223,10 @@ func (encrypted *EncryptedData) computeHmac(key []byte) []byte {
|
||||
mac.Write([]byte(usage))
|
||||
}
|
||||
|
||||
for index := range encrypted.Usages {
|
||||
mac.Write([]byte(encrypted.Usages[index]))
|
||||
}
|
||||
|
||||
return mac.Sum(nil)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user