edited to accept new encryption standard from CSI5380