Adds nonce packing/unpacking to public-key encryption methods

This revision adds nonce packing to the set of public-key encryption and decryption methods. If this approach is approved, I will add similar methods to the private-key encryption as well.