support crypto mode