Versions in this module Expand all Collapse all v8 v8.5.1 Mar 8, 2023 Changes in this version + func DecryptEncPart(ed types.EncryptedData, key types.EncryptionKey, usage uint32) ([]byte, error) + func DecryptMessage(ciphertext []byte, key types.EncryptionKey, usage uint32) ([]byte, error) + func GetChksumEtype(id int32) (etype.EType, error) + func GetEncryptedData(plainBytes []byte, key types.EncryptionKey, usage uint32, kvno int) (types.EncryptedData, error) + func GetEtype(id int32) (etype.EType, error) + func GetKeyFromPassword(passwd string, cname types.PrincipalName, realm string, etypeID int32, ...) (types.EncryptionKey, etype.EType, error) + type Aes128CtsHmacSha256128 struct + func (e Aes128CtsHmacSha256128) DecryptData(key, data []byte) ([]byte, error) + func (e Aes128CtsHmacSha256128) DecryptMessage(key, ciphertext []byte, usage uint32) ([]byte, error) + func (e Aes128CtsHmacSha256128) DeriveKey(protocolKey, usage []byte) ([]byte, error) + func (e Aes128CtsHmacSha256128) DeriveRandom(protocolKey, usage []byte) ([]byte, error) + func (e Aes128CtsHmacSha256128) EncryptData(key, data []byte) ([]byte, []byte, error) + func (e Aes128CtsHmacSha256128) EncryptMessage(key, message []byte, usage uint32) ([]byte, []byte, error) + func (e Aes128CtsHmacSha256128) GetChecksumHash(protocolKey, data []byte, usage uint32) ([]byte, error) + func (e Aes128CtsHmacSha256128) GetConfounderByteSize() int + func (e Aes128CtsHmacSha256128) GetCypherBlockBitLength() int + func (e Aes128CtsHmacSha256128) GetDefaultStringToKeyParams() string + func (e Aes128CtsHmacSha256128) GetETypeID() int32 + func (e Aes128CtsHmacSha256128) GetHMACBitLength() int + func (e Aes128CtsHmacSha256128) GetHashFunc() func() hash.Hash + func (e Aes128CtsHmacSha256128) GetHashID() int32 + func (e Aes128CtsHmacSha256128) GetKeyByteSize() int + func (e Aes128CtsHmacSha256128) GetKeySeedBitLength() int + func (e Aes128CtsHmacSha256128) GetMessageBlockByteSize() int + func (e Aes128CtsHmacSha256128) RandomToKey(b []byte) []byte + func (e Aes128CtsHmacSha256128) StringToKey(secret string, salt string, s2kparams string) ([]byte, error) + func (e Aes128CtsHmacSha256128) VerifyChecksum(protocolKey, data, chksum []byte, usage uint32) bool + func (e Aes128CtsHmacSha256128) VerifyIntegrity(protocolKey, ct, pt []byte, usage uint32) bool + type Aes128CtsHmacSha96 struct + func (e Aes128CtsHmacSha96) DecryptData(key, data []byte) ([]byte, error) + func (e Aes128CtsHmacSha96) DecryptMessage(key, ciphertext []byte, usage uint32) ([]byte, error) + func (e Aes128CtsHmacSha96) DeriveKey(protocolKey, usage []byte) ([]byte, error) + func (e Aes128CtsHmacSha96) DeriveRandom(protocolKey, usage []byte) ([]byte, error) + func (e Aes128CtsHmacSha96) EncryptData(key, data []byte) ([]byte, []byte, error) + func (e Aes128CtsHmacSha96) EncryptMessage(key, message []byte, usage uint32) ([]byte, []byte, error) + func (e Aes128CtsHmacSha96) GetChecksumHash(protocolKey, data []byte, usage uint32) ([]byte, error) + func (e Aes128CtsHmacSha96) GetConfounderByteSize() int + func (e Aes128CtsHmacSha96) GetCypherBlockBitLength() int + func (e Aes128CtsHmacSha96) GetDefaultStringToKeyParams() string + func (e Aes128CtsHmacSha96) GetETypeID() int32 + func (e Aes128CtsHmacSha96) GetHMACBitLength() int + func (e Aes128CtsHmacSha96) GetHashFunc() func() hash.Hash + func (e Aes128CtsHmacSha96) GetHashID() int32 + func (e Aes128CtsHmacSha96) GetKeyByteSize() int + func (e Aes128CtsHmacSha96) GetKeySeedBitLength() int + func (e Aes128CtsHmacSha96) GetMessageBlockByteSize() int + func (e Aes128CtsHmacSha96) RandomToKey(b []byte) []byte + func (e Aes128CtsHmacSha96) StringToKey(secret string, salt string, s2kparams string) ([]byte, error) + func (e Aes128CtsHmacSha96) VerifyChecksum(protocolKey, data, chksum []byte, usage uint32) bool + func (e Aes128CtsHmacSha96) VerifyIntegrity(protocolKey, ct, pt []byte, usage uint32) bool + type Aes256CtsHmacSha384192 struct + func (e Aes256CtsHmacSha384192) DecryptData(key, data []byte) ([]byte, error) + func (e Aes256CtsHmacSha384192) DecryptMessage(key, ciphertext []byte, usage uint32) ([]byte, error) + func (e Aes256CtsHmacSha384192) DeriveKey(protocolKey, usage []byte) ([]byte, error) + func (e Aes256CtsHmacSha384192) DeriveRandom(protocolKey, usage []byte) ([]byte, error) + func (e Aes256CtsHmacSha384192) EncryptData(key, data []byte) ([]byte, []byte, error) + func (e Aes256CtsHmacSha384192) EncryptMessage(key, message []byte, usage uint32) ([]byte, []byte, error) + func (e Aes256CtsHmacSha384192) GetChecksumHash(protocolKey, data []byte, usage uint32) ([]byte, error) + func (e Aes256CtsHmacSha384192) GetConfounderByteSize() int + func (e Aes256CtsHmacSha384192) GetCypherBlockBitLength() int + func (e Aes256CtsHmacSha384192) GetDefaultStringToKeyParams() string + func (e Aes256CtsHmacSha384192) GetETypeID() int32 + func (e Aes256CtsHmacSha384192) GetHMACBitLength() int + func (e Aes256CtsHmacSha384192) GetHashFunc() func() hash.Hash + func (e Aes256CtsHmacSha384192) GetHashID() int32 + func (e Aes256CtsHmacSha384192) GetKeyByteSize() int + func (e Aes256CtsHmacSha384192) GetKeySeedBitLength() int + func (e Aes256CtsHmacSha384192) GetMessageBlockByteSize() int + func (e Aes256CtsHmacSha384192) RandomToKey(b []byte) []byte + func (e Aes256CtsHmacSha384192) StringToKey(secret string, salt string, s2kparams string) ([]byte, error) + func (e Aes256CtsHmacSha384192) VerifyChecksum(protocolKey, data, chksum []byte, usage uint32) bool + func (e Aes256CtsHmacSha384192) VerifyIntegrity(protocolKey, ct, pt []byte, usage uint32) bool + type Aes256CtsHmacSha96 struct + func (e Aes256CtsHmacSha96) DecryptData(key, data []byte) ([]byte, error) + func (e Aes256CtsHmacSha96) DecryptMessage(key, ciphertext []byte, usage uint32) ([]byte, error) + func (e Aes256CtsHmacSha96) DeriveKey(protocolKey, usage []byte) ([]byte, error) + func (e Aes256CtsHmacSha96) DeriveRandom(protocolKey, usage []byte) ([]byte, error) + func (e Aes256CtsHmacSha96) EncryptData(key, data []byte) ([]byte, []byte, error) + func (e Aes256CtsHmacSha96) EncryptMessage(key, message []byte, usage uint32) ([]byte, []byte, error) + func (e Aes256CtsHmacSha96) GetChecksumHash(protocolKey, data []byte, usage uint32) ([]byte, error) + func (e Aes256CtsHmacSha96) GetConfounderByteSize() int + func (e Aes256CtsHmacSha96) GetCypherBlockBitLength() int + func (e Aes256CtsHmacSha96) GetDefaultStringToKeyParams() string + func (e Aes256CtsHmacSha96) GetETypeID() int32 + func (e Aes256CtsHmacSha96) GetHMACBitLength() int + func (e Aes256CtsHmacSha96) GetHashFunc() func() hash.Hash + func (e Aes256CtsHmacSha96) GetHashID() int32 + func (e Aes256CtsHmacSha96) GetKeyByteSize() int + func (e Aes256CtsHmacSha96) GetKeySeedBitLength() int + func (e Aes256CtsHmacSha96) GetMessageBlockByteSize() int + func (e Aes256CtsHmacSha96) RandomToKey(b []byte) []byte + func (e Aes256CtsHmacSha96) StringToKey(secret string, salt string, s2kparams string) ([]byte, error) + func (e Aes256CtsHmacSha96) VerifyChecksum(protocolKey, data, chksum []byte, usage uint32) bool + func (e Aes256CtsHmacSha96) VerifyIntegrity(protocolKey, ct, pt []byte, usage uint32) bool + type Des3CbcSha1Kd struct + func (e Des3CbcSha1Kd) DecryptData(key, data []byte) ([]byte, error) + func (e Des3CbcSha1Kd) DecryptMessage(key, ciphertext []byte, usage uint32) ([]byte, error) + func (e Des3CbcSha1Kd) DeriveKey(protocolKey, usage []byte) ([]byte, error) + func (e Des3CbcSha1Kd) DeriveRandom(protocolKey, usage []byte) ([]byte, error) + func (e Des3CbcSha1Kd) EncryptData(key, data []byte) ([]byte, []byte, error) + func (e Des3CbcSha1Kd) EncryptMessage(key, message []byte, usage uint32) ([]byte, []byte, error) + func (e Des3CbcSha1Kd) GetChecksumHash(protocolKey, data []byte, usage uint32) ([]byte, error) + func (e Des3CbcSha1Kd) GetConfounderByteSize() int + func (e Des3CbcSha1Kd) GetCypherBlockBitLength() int + func (e Des3CbcSha1Kd) GetDefaultStringToKeyParams() string + func (e Des3CbcSha1Kd) GetETypeID() int32 + func (e Des3CbcSha1Kd) GetHMACBitLength() int + func (e Des3CbcSha1Kd) GetHashFunc() func() hash.Hash + func (e Des3CbcSha1Kd) GetHashID() int32 + func (e Des3CbcSha1Kd) GetKeyByteSize() int + func (e Des3CbcSha1Kd) GetKeySeedBitLength() int + func (e Des3CbcSha1Kd) GetMessageBlockByteSize() int + func (e Des3CbcSha1Kd) RandomToKey(b []byte) []byte + func (e Des3CbcSha1Kd) StringToKey(secret string, salt string, s2kparams string) ([]byte, error) + func (e Des3CbcSha1Kd) VerifyChecksum(protocolKey, data, chksum []byte, usage uint32) bool + func (e Des3CbcSha1Kd) VerifyIntegrity(protocolKey, ct, pt []byte, usage uint32) bool + type RC4HMAC struct + func (e RC4HMAC) DecryptData(key, data []byte) ([]byte, error) + func (e RC4HMAC) DecryptMessage(key, ciphertext []byte, usage uint32) ([]byte, error) + func (e RC4HMAC) DeriveKey(protocolKey, usage []byte) ([]byte, error) + func (e RC4HMAC) DeriveRandom(protocolKey, usage []byte) ([]byte, error) + func (e RC4HMAC) EncryptData(key, data []byte) ([]byte, []byte, error) + func (e RC4HMAC) EncryptMessage(key, message []byte, usage uint32) ([]byte, []byte, error) + func (e RC4HMAC) GetChecksumHash(protocolKey, data []byte, usage uint32) ([]byte, error) + func (e RC4HMAC) GetConfounderByteSize() int + func (e RC4HMAC) GetCypherBlockBitLength() int + func (e RC4HMAC) GetDefaultStringToKeyParams() string + func (e RC4HMAC) GetETypeID() int32 + func (e RC4HMAC) GetHMACBitLength() int + func (e RC4HMAC) GetHashFunc() func() hash.Hash + func (e RC4HMAC) GetHashID() int32 + func (e RC4HMAC) GetKeyByteSize() int + func (e RC4HMAC) GetKeySeedBitLength() int + func (e RC4HMAC) GetMessageBlockByteSize() int + func (e RC4HMAC) RandomToKey(b []byte) []byte + func (e RC4HMAC) StringToKey(secret string, salt string, s2kparams string) ([]byte, error) + func (e RC4HMAC) VerifyChecksum(protocolKey, data, chksum []byte, usage uint32) bool + func (e RC4HMAC) VerifyIntegrity(protocolKey, ct, pt []byte, usage uint32) bool Other modules containing this package github.com/jesusdf/gokrb5