All Downloads are FREE. Search and download functionalities are using the official Maven repository.

vendor.github.com.pion.stun.integrity_debug.go Maven / Gradle / Ivy

There is a newer version: 2.9.1
Show newest version
// +build debug

package stun

import "fmt"

// IntegrityErr occurs when computed HMAC differs from expected.
type IntegrityErr struct {
	Expected []byte
	Actual   []byte
}

func (i *IntegrityErr) Error() string {
	return fmt.Sprintf(
		"Integrity check failed: 0x%x (expected) !- 0x%x (actual)",
		i.Expected, i.Actual,
	)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy