etype

package
v8.4.3+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package etype provides the Kerberos Encryption Type interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EType

type EType interface {
	GetETypeID() int32
	GetHashID() int32
	GetKeyByteSize() int
	GetKeySeedBitLength() int
	GetDefaultStringToKeyParams() string
	StringToKey(string, salt, s2kparams string) ([]byte, error)
	RandomToKey(b []byte) []byte
	GetHMACBitLength() int
	GetMessageBlockByteSize() int
	EncryptData(key, data []byte) ([]byte, []byte, error)
	EncryptMessage(key, message []byte, usage uint32) ([]byte, []byte, error)
	DecryptData(key, data []byte) ([]byte, error)
	DecryptMessage(key, ciphertext []byte, usage uint32) ([]byte, error)
	GetCypherBlockBitLength() int
	GetConfounderByteSize() int
	DeriveKey(protocolKey, usage []byte) ([]byte, error)
	DeriveRandom(protocolKey, usage []byte) ([]byte, error)
	VerifyIntegrity(protocolKey, ct, pt []byte, usage uint32) bool
	GetChecksumHash(protocolKey, data []byte, usage uint32) ([]byte, error)
	VerifyChecksum(protocolKey, data, chksum []byte, usage uint32) bool
	GetHashFunc() func() hash.Hash
}

EType is the interface defining the Encryption Type.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL