add APIs to do a single file encryption and decryption