UeauCommon

package
v0.0.0-...-cad1217 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FC_FOR_CK_PRIME_IK_PRIME_DERIVATION  = "20"
	FC_FOR_KSEAF_DERIVATION              = "6C"
	FC_FOR_RES_STAR_XRES_STAR_DERIVATION = "6B"
	FC_FOR_KAUSF_DERIVATION              = "6A"
	FC_FOR_KAMF_DERIVATION               = "6D"
	FC_FOR_KGNB_KN3IWF_DERIVATION        = "6E"
	FC_FOR_NH_DERIVATION                 = "6F"
	FC_FOR_ALGORITHM_KEY_DERIVATION      = "69"
)

Variables

This section is empty.

Functions

func GetKDFValue

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

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 originially 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