ported TCrypt module