Fix ifdefs for Samsung encryption