ueauth

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FCForCkPrimeIkPrimeDerivation  = "20"
	FCForKseafDerivation           = "6C"
	FCForResStarXresStarDerivation = "6B"
	FCForKausfDerivation           = "6A"
	FCForKamfDerivation            = "6D"
	FCForKgnbKn3iwfDerivation      = "6E"
	FCForNhDerivation              = "6F"
	FCForAlgorithmKeyDerivation    = "69"
)

Variables

This section is empty.

Functions

func GetKDFValue

func GetKDFValue(key []byte, FC string, param ...[]byte) ([]byte, error)

This function implements the KDF defined in TS.33220 cluase B.2.0.

For P0-Pn, the ones that will be used directly as a string (e.g. "WLAN") should be type-casted by []byte(), and the ones originally in hex (e.g. "bb52e91c747a") should be converted by using hex.DecodeString().

For L0-Ln, use KDFLen() function to calculate them (e.g. KDFLen(P0)).

func KDFLen

func KDFLen(input []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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