updated deps; updated healthchecks.io integration
This commit is contained in:
4
vendor/maunium.net/go/mautrix/crypto/utils/utils.go
generated
vendored
4
vendor/maunium.net/go/mautrix/crypto/utils/utils.go
generated
vendored
@@ -124,9 +124,9 @@ func EncodeBase58RecoveryKey(key []byte) string {
|
||||
return spacedKey
|
||||
}
|
||||
|
||||
// HMACSHA256B64 calculates the base64 of the SHA256 hmac of the input with the given key.
|
||||
// HMACSHA256B64 calculates the unpadded base64 of the SHA256 hmac of the input with the given key.
|
||||
func HMACSHA256B64(input []byte, hmacKey [HMACKeyLength]byte) string {
|
||||
h := hmac.New(sha256.New, hmacKey[:])
|
||||
h.Write(input)
|
||||
return base64.StdEncoding.EncodeToString(h.Sum(nil))
|
||||
return base64.RawStdEncoding.EncodeToString(h.Sum(nil))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user