Match the MCRYPT key length behaviors.