Fixed issue where the proper encryption algorithem was not passed to the
encryption check