Loading ePassport/ttcn/ePassport_Functions.ttcn +2 −0 Original line number Diff line number Diff line Loading @@ -360,6 +360,7 @@ // i) compute new K.SEED and derive keys v_kSeed := bit2oct(oct2bit(v_keyIfd) xor4b oct2bit(v_keyIcc)); f_deriveKeys(v_kSeed, vc_simu.kEnc, vc_simu.kMac); f_setKeysForSecureMessaging(vc_simu.kEnc & vc_simu.kMac); v_ssc := substr(p_rndIcc, 4, 4) & substr(v_rndIfd, 4, 4); Loading Loading @@ -416,6 +417,7 @@ // b) The session keys KMAC and KEnc derived from K for Secure Messaging. f_deriveKeys(v_k, vc_simu.kEnc, vc_simu.kMac); f_setKeysForSecureMessaging(vc_simu.kEnc & vc_simu.kMac); // c) The hash of the inspection system's ephemeral public key H(^PKPCD) for Terminal Authentication. v_h := f_digest(e_sha1, p_publicKeyPcd); Loading Loading
ePassport/ttcn/ePassport_Functions.ttcn +2 −0 Original line number Diff line number Diff line Loading @@ -360,6 +360,7 @@ // i) compute new K.SEED and derive keys v_kSeed := bit2oct(oct2bit(v_keyIfd) xor4b oct2bit(v_keyIcc)); f_deriveKeys(v_kSeed, vc_simu.kEnc, vc_simu.kMac); f_setKeysForSecureMessaging(vc_simu.kEnc & vc_simu.kMac); v_ssc := substr(p_rndIcc, 4, 4) & substr(v_rndIfd, 4, 4); Loading Loading @@ -416,6 +417,7 @@ // b) The session keys KMAC and KEnc derived from K for Secure Messaging. f_deriveKeys(v_k, vc_simu.kEnc, vc_simu.kMac); f_setKeysForSecureMessaging(vc_simu.kEnc & vc_simu.kMac); // c) The hash of the inspection system's ephemeral public key H(^PKPCD) for Terminal Authentication. v_h := f_digest(e_sha1, p_publicKeyPcd); Loading