mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-09-11 12:22:30 +00:00
Update dependencies and go1.18 (#1873)
* Update dependencies and go1.18 * Exclude unnecessary linters and update build to go1.18
This commit is contained in:
4
vendor/go.mau.fi/whatsmeow/appstate/hash.go
vendored
4
vendor/go.mau.fi/whatsmeow/appstate/hash.go
vendored
@@ -19,7 +19,7 @@ import (
|
||||
)
|
||||
|
||||
type Mutation struct {
|
||||
Operation waProto.SyncdMutation_SyncdMutationSyncdOperation
|
||||
Operation waProto.SyncdMutation_SyncdOperation
|
||||
Action *waProto.SyncActionValue
|
||||
Index []string
|
||||
IndexMAC []byte
|
||||
@@ -89,7 +89,7 @@ func generatePatchMAC(patch *waProto.SyncdPatch, name WAPatchName, key []byte) [
|
||||
return concatAndHMAC(sha256.New, key, dataToHash...)
|
||||
}
|
||||
|
||||
func generateContentMAC(operation waProto.SyncdMutation_SyncdMutationSyncdOperation, data, keyID, key []byte) []byte {
|
||||
func generateContentMAC(operation waProto.SyncdMutation_SyncdOperation, data, keyID, key []byte) []byte {
|
||||
operationBytes := []byte{byte(operation) + 1}
|
||||
keyDataLength := uint64ToBytes(uint64(len(keyID) + 1))
|
||||
return concatAndHMAC(sha512.New, key, operationBytes, keyID, data, keyDataLength)[:32]
|
||||
|
Reference in New Issue
Block a user