Loading ePassport/ttcn/ePassport_Functions.ttcn +10 −0 Original line number Diff line number Diff line Loading @@ -23,9 +23,19 @@ group securityExternalFunctions { /** * @desc Derive Kenc (KencA+KencB) and Kmac (KmacA+KmacB) key from key seed. * @remark Key seed is derived itself from MRZ information fields (document number, dat of birth and date of expiry) * @param p_mrzInfo MRZ * @param p_Kenc Calculated Kenc * @param p_Kmac Calculated Kmac */ external function fx_deriveBasicAccessKeysFromKeySeed( in octetstring p_mrzInfo, out octetstring p_Kenc, out octetstring p_Kmac); /** * @desc Set the master key for message encryption between ePassport and IS * @remark The master key is the concatenation of two length fixed key * @param The master key to used, derived from kenc and Kmac) */ external function fx_setEncrypKeyFor3DES( in octetstring p_masterKey); Loading Loading
ePassport/ttcn/ePassport_Functions.ttcn +10 −0 Original line number Diff line number Diff line Loading @@ -23,9 +23,19 @@ group securityExternalFunctions { /** * @desc Derive Kenc (KencA+KencB) and Kmac (KmacA+KmacB) key from key seed. * @remark Key seed is derived itself from MRZ information fields (document number, dat of birth and date of expiry) * @param p_mrzInfo MRZ * @param p_Kenc Calculated Kenc * @param p_Kmac Calculated Kmac */ external function fx_deriveBasicAccessKeysFromKeySeed( in octetstring p_mrzInfo, out octetstring p_Kenc, out octetstring p_Kmac); /** * @desc Set the master key for message encryption between ePassport and IS * @remark The master key is the concatenation of two length fixed key * @param The master key to used, derived from kenc and Kmac) */ external function fx_setEncrypKeyFor3DES( in octetstring p_masterKey); Loading