Added encryption support to packets needing it.