fix crypto functions for huge data under x64