Added DES/AES switch by msg len