Loading ePassport/ttcn/ePassport_Functions.ttcn +22 −0 Original line number Diff line number Diff line Loading @@ -23,18 +23,40 @@ group securityExternalFunctions { /** * @desc Set the master key for message encryption between ePassport and IS * @remark The master key is the concatenation of two length fixed key */ external function fx_setEncrypKeyFor3DES( in octetstring p_masterKey); external function fx_verifyCertificate( in octetstring p_psoData ) return boolean; external function fx_verifySignature( in octetstring p_signature ) return boolean; /** * @desc Calculate a pseudo-random integer value as described in RFC2246 * @return A random integer value */ external function fx_random( ) return integer; } // end securityExternalFunctions group fileExternalFunctions { /** * @desc Load in memory cache the specified passport file system * @param p_configurationID Configuration identifier (e.g. "CFG.DFLT.PLAIN" means that ePasport files are located in <EPASSPORT_DATA>/CFG/DFLT/PLAIN> * @remark This method SHALL be call before any call to ReadElementFile method * @return Error code */ external function fx_loadPassportConfiguration(in charstring p_configurationID) return charstring; /** * @desc Read the specified amount of bytes from the specified offset * @param p_filename file to read (e.g. EF.COM or EF.SOD or EF.DGF1...) * @param p_offset Offset to apply before to read * @param p_dataLength amount of bytes to read */ external function fx_readFileData( in charstring p_filename, in integer p_offset, Loading Loading
ePassport/ttcn/ePassport_Functions.ttcn +22 −0 Original line number Diff line number Diff line Loading @@ -23,18 +23,40 @@ group securityExternalFunctions { /** * @desc Set the master key for message encryption between ePassport and IS * @remark The master key is the concatenation of two length fixed key */ external function fx_setEncrypKeyFor3DES( in octetstring p_masterKey); external function fx_verifyCertificate( in octetstring p_psoData ) return boolean; external function fx_verifySignature( in octetstring p_signature ) return boolean; /** * @desc Calculate a pseudo-random integer value as described in RFC2246 * @return A random integer value */ external function fx_random( ) return integer; } // end securityExternalFunctions group fileExternalFunctions { /** * @desc Load in memory cache the specified passport file system * @param p_configurationID Configuration identifier (e.g. "CFG.DFLT.PLAIN" means that ePasport files are located in <EPASSPORT_DATA>/CFG/DFLT/PLAIN> * @remark This method SHALL be call before any call to ReadElementFile method * @return Error code */ external function fx_loadPassportConfiguration(in charstring p_configurationID) return charstring; /** * @desc Read the specified amount of bytes from the specified offset * @param p_filename file to read (e.g. EF.COM or EF.SOD or EF.DGF1...) * @param p_offset Offset to apply before to read * @param p_dataLength amount of bytes to read */ external function fx_readFileData( in charstring p_filename, in integer p_offset, Loading