def authenticationAndCipheringResponse(AuthenticationParameterSRES_presence=0, MobileId_presence=0):
 a = TpPd(pd=3)
 b = MessageType(mesType=19)
 c = AcReferenceNumberAndSpareHalfOctets()
 packet = ((a / b) / c)
 if (AuthenticationParameterSRES_presence is 1):
  e = AuthenticationParameterSRES(ieiAPS=34)
  packet = (packet / e)
 if (MobileId_presence is 1):
  f = MobileIdHdr(ieiMI=35, eightBitMI=0)
  packet = (packet / f)
 return packet

def authenticationAndCipheringResponse ( AuthenticationParameterSRES_presence = 0 , MobileId_presence = 0 ) : a = TpPd ( pd = 3 ) b = MessageType ( mesType = 19 ) c = AcReferenceNumberAndSpareHalfOctets ( ) packet = ( ( a / b ) / c ) if ( AuthenticationParameterSRES_presence is 1 ) : e = AuthenticationParameterSRES ( ieiAPS = 34 ) packet = ( packet / e ) if ( MobileId_presence is 1 ) : f = MobileIdHdr ( ieiMI = 35 , eightBitMI = 0 ) packet = ( packet / f ) return packet
authentication and ciphering response section 9 .