Added error checking for size parameter. Added parameter error checking for new encryption functions. Renamed driver to testDriver in relevant files.