func (e RC4HMAC) VerifyChecksum(protocolKey, data, chksum []byte, usage uint32) bool {
	checksum, err := rfc4757.Checksum(protocolKey, usage, data)
	if err != nil {
		return false
	}
	return hmac.Equal(checksum, chksum)
}
VerifyChecksum compares the checksum of the message bytes is the same as the checksum provided.
package crypto
import (
	"bytes"
	"crypto/hmac"
	"crypto/md5"
	"hash"
	"io"
	"github.com/jcmturner/gokrb5/v8/crypto/rfc3961"
	"github.com/jcmturner/gokrb5/v8/crypto/rfc4757"
	"github.com/jcmturner/gokrb5/v8/iana/chksumtype"
	"github.com/jcmturner/gokrb5/v8/iana/etypeID"
	"golang.org/x/crypto/md4"
)
type RC4HMAC struct {
}
func (e RC4HMAC) GetETypeID() int32 {
	return etypeID.RC4_HMAC
}
func (e RC4HMAC) GetHashID() int32 {
	return chksumtype.KERB_CHECKSUM_HMAC_MD5
}
func (e RC4HMAC) GetKeyByteSize() int {
	return 16
}
func (e RC4HMAC) GetKeySeedBitLength() int {
	return e.GetKeyByteSize() * 8
}
func (e RC4HMAC) GetHashFunc() func() hash.Hash {
	return md5.New
}
func (e RC4HMAC) GetMessageBlockByteSize() int {
	return 1
}
func (e RC4HMAC) GetDefaultStringToKeyParams() string {
	return ""
}
func (e RC4HMAC) GetConfounderByteSize() int {
	return 8
}
func (e RC4HMAC) GetHMACBitLength() int {
	return md5.Size * 8
}
func (e RC4HMAC) GetCypherBlockBitLength() int {
	return 8  
}
func (e RC4HMAC) StringToKey(secret string, salt string, s2kparams string) ([]byte, error) {
	return rfc4757.StringToKey(secret)
}
func (e RC4HMAC) RandomToKey(b []byte) []byte {
	r := bytes.NewReader(b)
	h := md4.New()
	io.Copy(h, r)
	return h.Sum(nil)
}
func (e RC4HMAC) EncryptData(key, data []byte) ([]byte, []byte, error) {
	b, err := rfc4757.EncryptData(key, data, e)
	return []byte{}, b, err
}
func (e RC4HMAC) EncryptMessage(key, message []byte, usage uint32) ([]byte, []byte, error) {
	b, err := rfc4757.EncryptMessage(key, message, usage, false, e)
	return []byte{}, b, err
}
func (e RC4HMAC) DecryptData(key, data []byte) ([]byte, error) {
	return rfc4757.DecryptData(key, data, e)
}
func (e RC4HMAC) DecryptMessage(key, ciphertext []byte, usage uint32) ([]byte, error) {
	return rfc4757.DecryptMessage(key, ciphertext, usage, false, e)
}
func (e RC4HMAC) DeriveKey(protocolKey, usage []byte) ([]byte, error) {
	return rfc4757.HMAC(protocolKey, usage), nil
}
func (e RC4HMAC) DeriveRandom(protocolKey, usage []byte) ([]byte, error) {
	return rfc3961.DeriveRandom(protocolKey, usage, e)
}
func (e RC4HMAC) VerifyIntegrity(protocolKey, ct, pt []byte, usage uint32) bool {
	return rfc4757.VerifyIntegrity(protocolKey, pt, ct, e)
}
func (e RC4HMAC) GetChecksumHash(protocolKey, data []byte, usage uint32) ([]byte, error) {
	return rfc4757.Checksum(protocolKey, usage, data)
}