Rewrote to use higher level functions for encryption/decryption.
Rewrote to use higher level functions for encryption/decryption.
Added test case for metadata generation.
Right kind of key.
Don't need to send metadata i two different parameters.