Fixed rsa encryption test and added a size check to the data to be encrypted