Context Sensitive and Secure Parser Generation for Deep Packet Inspection of Binary Protocols