Adds nonce packing/unpacking methods

This revision adds nonce packing to the set of public-key and private-key encryption and decryption methods.