Commit b3e50750 authored by berge's avatar berge
Browse files

Added missing calls to f_setKeysForSecureMessaging()

parent d53dccab
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);
 			
@@ -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);