Skip to main content
. 2024 Dec 13;24(24):7979. doi: 10.3390/s24247979
Algorithm 4 The Challenge–Response Step 2.1 [HN]
   Inputs:  k,SQNHN
      Generate an ephemeral private-public key pair (epkHN,epkHN1), where epkHN=epkHN1·G
      Compute a Diffie-Hellman key DHKepkHN1·C0
      Set RANDepkHN as a challenge
      Compute MACf1(k,SQNHN,AMF,RANDDHK)
      Compute AKf5(k,RANDDHK)
      Compute CONCAKSQNHN
      Set AUTN(CONC,AMF,MAC)
      Compute CKf3(k,RANDDHK) and IKf4(k,RANDDHK)
      Compute expected response XRESf2(k,RANDDHK)
      Compute XRES*KDF(CKIK,IDSNRANDXRES)
      Compute HXRES*LEFT(128,HSHA-256(RANDXRES*))
      Derive KAUSFKDF(CKIK,IDSNCONCDHK)
      Derive KSEAFKDF(KAUSF,IDSN)
      Increase SQNHNSQNHN+1
      Set HE-AV(RAND,AUTN,XRES*,KAUSF)
      Set SE-AV(RAND,AUTN,HXRES*)
   Outputs. HN sends (SE-AV) to SN.