Adding nonce packing to private-key encryption methods