package common

Import Path
	github.com/jcmturner/gokrb5/v8/crypto/common (on go.dev)

Dependency Relation
	imports 7 packages, and imported by 4 packages

Involved Source Files Package common provides encryption methods common across encryption types
Package-Level Functions (total 11)
GetChecksumHash returns a keyed checksum hash of the bytes provided.
GetHash generates the keyed hash value according to the etype's hash function.
GetIntegrityHash returns a keyed integrity hash of the bytes provided.
GetUsageKc returns the checksum key usage value for the usage number un. See RFC 3961 5.3 key-derivation function definition.
GetUsageKe returns the encryption key usage value for the usage number un See RFC 3961 5.3 key-derivation function definition.
GetUsageKi returns the integrity key usage value for the usage number un See RFC 3961 5.3 key-derivation function definition.
IterationsToS2Kparams converts the number of iterations as an integer to a string representation.
PKCS7Pad pads bytes according to RFC 2315 to nearest multiple of message size m.
PKCS7Unpad removes RFC 2315 padding from byes where message size is m.
VerifyChecksum compares the checksum of the msg bytes is the same as the checksum provided.
ZeroPad pads bytes with zeros to nearest multiple of message size m.