Update CryptoSocket for new encryption methods