Loading ePassport/ttcn/ePassport_Types.ttcn +31 −21 Original line number Diff line number Diff line Loading @@ -43,6 +43,14 @@ module ePassport_Types { }//end enumeratedTypes group simuParamsGroup { type set of Chr ChrList; type charstring Chr; } // end simuParamsGroup // Group for EF file definition and Test file Configuration group filesGroup { Loading Loading @@ -74,7 +82,8 @@ module ePassport_Types { Instruction ins, GenericParams params, LengthC lengthC optional, GenericPayload payload GenericPayload payload, LengthE lengthE optional } with {variant "isPdu;"}; type record CommandManageSecurityEnvironment { Loading @@ -82,7 +91,8 @@ module ePassport_Types { Instruction ins(e_manageSecurityEnvironment), ManageSecurityEnvironmentParams params, LengthC lengthC optional, ManageSecurityEnvironmentPayload payload optional // presence depends on crtTag (present if 0xa4, 0xa6, 0xaa, 0xb4, 0xb6, 0xb8) ManageSecurityEnvironmentPayload payload optional, // presence depends on crtTag (present if 0xa4, 0xa6, 0xaa, 0xb4, 0xb6, 0xb8) LengthE lengthE optional } with { variant "isPdu;present=bits(5,8,0x22);" variant (payload) Loading @@ -100,7 +110,8 @@ module ePassport_Types { Instruction ins(e_externalOrMutualAuthenticate), ExternalOrMutualAuthenticateParams params, LengthC lengthC optional, ExternalOrMutualAuthenticatePayload payload ExternalOrMutualAuthenticatePayload payload, LengthE lengthE optional } with {variant "isPdu;present=bits(5,8,0x82);"}; type record CommandGetChallenge { Loading @@ -108,7 +119,8 @@ module ePassport_Types { Instruction ins(e_getChallenge), GetChallengeParams params, LengthC lengthC optional, GetChallengePayload payload GetChallengePayload payload, LengthE lengthE optional } with {variant "isPdu;present=bits(5,8,0x84);"}; type record CommandInternalAuthenticate { Loading @@ -116,7 +128,8 @@ module ePassport_Types { Instruction ins(e_internalAuthenticate), InternalAuthenticateParams params, LengthC lengthC optional, InternalAuthenticatePayload payload InternalAuthenticatePayload payload, LengthE lengthE optional } with {variant "isPdu;present=bits(5,8,0x88);"}; type record CommandSelect { Loading @@ -124,7 +137,8 @@ module ePassport_Types { Instruction ins(e_select), SelectParams params, LengthC lengthC optional, SelectPayload payload SelectPayload payload, LengthE lengthE optional } with {variant "isPdu;present=bits(5,8,0xA4);"}; type record CommandReadBinary { Loading @@ -132,7 +146,8 @@ module ePassport_Types { Instruction ins(e_readBinary), ReadBinaryParams params, LengthC lengthC optional, ReadBinaryPayload payload ReadBinaryPayload payload, LengthE lengthE optional } with {variant "isPdu;present=bits(5,8,0xB0);"}; type record CommandReadBinaryWithOffsetDataObject { Loading @@ -140,7 +155,8 @@ module ePassport_Types { Instruction ins(e_readBinaryWithOffsetDataObject), ReadBinaryWithOffsetDataObjectParams params, LengthC lengthC optional, ReadBinaryWithOffsetDataObjectPayload payload ReadBinaryWithOffsetDataObjectPayload payload, LengthE lengthE optional } with { variant "isPdu;present=bits(5,8,0xB1);" variant (lengthC) "intTag='lengthC'" Loading Loading @@ -366,8 +382,7 @@ module ePassport_Types { } type record GenericData { octetstring data optional, LengthE lengthE optional octetstring data optional } } // end GenericMsg Loading Loading @@ -407,7 +422,8 @@ module ePassport_Types { } with {variant "length=2;unsigned;"} type union SelectPayload { SelectData selectData, RawPayload rawPayload SelectData selectData, RawPayload rawPayload } with { variant "use=com.testingtech.ttcn.tci.helper.EPassportCodecHelper;" Loading @@ -416,8 +432,7 @@ module ePassport_Types { } type record SelectData { octetstring fileId, LengthE lengthE optional octetstring fileId } } // end SelectMsg Loading Loading @@ -460,7 +475,6 @@ module ePassport_Types { } type record ReadBinaryData { LengthE lengthE } } // end ReadBinaryMsg Loading @@ -482,8 +496,7 @@ module ePassport_Types { } type record ReadBinaryWithOffsetDataObjectData { octetstring data, // FIXME: unfinished; maybe more variants are to be used later LengthE lengthE octetstring data // FIXME: unfinished; maybe more variants are to be used later } with { variant (data) "length=getIntTag('lengthC');unsigned;" } Loading @@ -508,7 +521,6 @@ module ePassport_Types { } type record GetChallengeData { LengthE lengthE } } // end GetChallengeMsg Loading Loading @@ -542,8 +554,7 @@ module ePassport_Types { } type record ExternalOrMutualAuthenticateData { octetstring challengeResponse, LengthE lengthE octetstring challengeResponse } } // end ExternalOrMutualAuthenticateMsg Loading @@ -566,8 +577,7 @@ module ePassport_Types { } type record InternalAuthenticateData { octetstring challenge, LengthE lengthE octetstring challenge } } // end InternalAuthenticateMsg Loading Loading
ePassport/ttcn/ePassport_Types.ttcn +31 −21 Original line number Diff line number Diff line Loading @@ -43,6 +43,14 @@ module ePassport_Types { }//end enumeratedTypes group simuParamsGroup { type set of Chr ChrList; type charstring Chr; } // end simuParamsGroup // Group for EF file definition and Test file Configuration group filesGroup { Loading Loading @@ -74,7 +82,8 @@ module ePassport_Types { Instruction ins, GenericParams params, LengthC lengthC optional, GenericPayload payload GenericPayload payload, LengthE lengthE optional } with {variant "isPdu;"}; type record CommandManageSecurityEnvironment { Loading @@ -82,7 +91,8 @@ module ePassport_Types { Instruction ins(e_manageSecurityEnvironment), ManageSecurityEnvironmentParams params, LengthC lengthC optional, ManageSecurityEnvironmentPayload payload optional // presence depends on crtTag (present if 0xa4, 0xa6, 0xaa, 0xb4, 0xb6, 0xb8) ManageSecurityEnvironmentPayload payload optional, // presence depends on crtTag (present if 0xa4, 0xa6, 0xaa, 0xb4, 0xb6, 0xb8) LengthE lengthE optional } with { variant "isPdu;present=bits(5,8,0x22);" variant (payload) Loading @@ -100,7 +110,8 @@ module ePassport_Types { Instruction ins(e_externalOrMutualAuthenticate), ExternalOrMutualAuthenticateParams params, LengthC lengthC optional, ExternalOrMutualAuthenticatePayload payload ExternalOrMutualAuthenticatePayload payload, LengthE lengthE optional } with {variant "isPdu;present=bits(5,8,0x82);"}; type record CommandGetChallenge { Loading @@ -108,7 +119,8 @@ module ePassport_Types { Instruction ins(e_getChallenge), GetChallengeParams params, LengthC lengthC optional, GetChallengePayload payload GetChallengePayload payload, LengthE lengthE optional } with {variant "isPdu;present=bits(5,8,0x84);"}; type record CommandInternalAuthenticate { Loading @@ -116,7 +128,8 @@ module ePassport_Types { Instruction ins(e_internalAuthenticate), InternalAuthenticateParams params, LengthC lengthC optional, InternalAuthenticatePayload payload InternalAuthenticatePayload payload, LengthE lengthE optional } with {variant "isPdu;present=bits(5,8,0x88);"}; type record CommandSelect { Loading @@ -124,7 +137,8 @@ module ePassport_Types { Instruction ins(e_select), SelectParams params, LengthC lengthC optional, SelectPayload payload SelectPayload payload, LengthE lengthE optional } with {variant "isPdu;present=bits(5,8,0xA4);"}; type record CommandReadBinary { Loading @@ -132,7 +146,8 @@ module ePassport_Types { Instruction ins(e_readBinary), ReadBinaryParams params, LengthC lengthC optional, ReadBinaryPayload payload ReadBinaryPayload payload, LengthE lengthE optional } with {variant "isPdu;present=bits(5,8,0xB0);"}; type record CommandReadBinaryWithOffsetDataObject { Loading @@ -140,7 +155,8 @@ module ePassport_Types { Instruction ins(e_readBinaryWithOffsetDataObject), ReadBinaryWithOffsetDataObjectParams params, LengthC lengthC optional, ReadBinaryWithOffsetDataObjectPayload payload ReadBinaryWithOffsetDataObjectPayload payload, LengthE lengthE optional } with { variant "isPdu;present=bits(5,8,0xB1);" variant (lengthC) "intTag='lengthC'" Loading Loading @@ -366,8 +382,7 @@ module ePassport_Types { } type record GenericData { octetstring data optional, LengthE lengthE optional octetstring data optional } } // end GenericMsg Loading Loading @@ -407,7 +422,8 @@ module ePassport_Types { } with {variant "length=2;unsigned;"} type union SelectPayload { SelectData selectData, RawPayload rawPayload SelectData selectData, RawPayload rawPayload } with { variant "use=com.testingtech.ttcn.tci.helper.EPassportCodecHelper;" Loading @@ -416,8 +432,7 @@ module ePassport_Types { } type record SelectData { octetstring fileId, LengthE lengthE optional octetstring fileId } } // end SelectMsg Loading Loading @@ -460,7 +475,6 @@ module ePassport_Types { } type record ReadBinaryData { LengthE lengthE } } // end ReadBinaryMsg Loading @@ -482,8 +496,7 @@ module ePassport_Types { } type record ReadBinaryWithOffsetDataObjectData { octetstring data, // FIXME: unfinished; maybe more variants are to be used later LengthE lengthE octetstring data // FIXME: unfinished; maybe more variants are to be used later } with { variant (data) "length=getIntTag('lengthC');unsigned;" } Loading @@ -508,7 +521,6 @@ module ePassport_Types { } type record GetChallengeData { LengthE lengthE } } // end GetChallengeMsg Loading Loading @@ -542,8 +554,7 @@ module ePassport_Types { } type record ExternalOrMutualAuthenticateData { octetstring challengeResponse, LengthE lengthE octetstring challengeResponse } } // end ExternalOrMutualAuthenticateMsg Loading @@ -566,8 +577,7 @@ module ePassport_Types { } type record InternalAuthenticateData { octetstring challenge, LengthE lengthE octetstring challenge } } // end InternalAuthenticateMsg Loading