milenage

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 4 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func F1

func F1(opc, k, _rand, sqn, amf, mac_a, mac_s []uint8) error

func F2345

func F2345(opc, k, _rand, res, ck, ik, ak, akstar []uint8) error

func GenerateOPC

func GenerateOPC(k, op []uint8) ([]uint8, error)

func Gsm_milenage

func Gsm_milenage(opc, k, _rand, sres, kc []uint8) int

*

  • gsm_milenage - Generate GSM-Milenage (3GPP TS 55.205) authentication triplet
  • @opc: OPc = 128-bit operator variant algorithm configuration field (encr.)
  • @k: K = 128-bit subscriber key
  • @_rand: RAND = 128-bit random challenge
  • @sres: Buffer for SRES = 32-bit SRES
  • @kc: Buffer for Kc = 64-bit Kc
  • Returns: 0 on success, -1 on failure

func InsertData

func InsertData(op, k, _rand, sqn, amf []uint8, OP, K, RAND, SQN, AMF string)

func MilenageGenerate

func MilenageGenerate(opc, amf, k, sqn, _rand, autn, ik, ck, ak, res []uint8, res_len *uint)

func Milenage_auts

func Milenage_auts(opc, k, _rand, auts, sqn []uint8) int

*

  • milenage_auts - Milenage AUTS validation
  • @opc: OPc = 128-bit operator variant algorithm configuration field (encr.)
  • @k: K = 128-bit subscriber key
  • @_rand: RAND = 128-bit random challenge
  • @auts: AUTS = 112-bit authentication token from client
  • @sqn: Buffer for SQN = 48-bit sequence number
  • Returns: 0 = success (sqn filled), -1 on failure

int milenage_auts(const c_uint8_t *opc, const c_uint8_t *k, const c_uint8_t *_rand,

const c_uint8_t *auts, c_uint8_t *sqn)

func Milenage_check

func Milenage_check(opc, k, sqn, _rand, autn, ik, ck, res []uint8, res_len *uint, auts []uint8) int

*

  • milenage_generate - Generate AKA AUTN,IK,CK,RES
  • @opc: OPc = 128-bit operator variant algorithm configuration field (encr.)
  • @k: K = 128-bit subscriber key
  • @sqn: SQN = 48-bit sequence number
  • @_rand: RAND = 128-bit random challenge
  • @autn: AUTN = 128-bit authentication token
  • @ik: Buffer for IK = 128-bit integrity key (f4), or %NULL
  • @ck: Buffer for CK = 128-bit confidentiality key (f3), or %NULL
  • @res: Buffer for RES = 64-bit signed response (f2), or %NULL
  • @res_len: Variable that will be set to RES length
  • @auts: 112-bit buffer for AUTS
  • Returns: 0 on success, -1 on failure, or -2 on synchronization failure

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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