shaUpdate(&ctx1, crypt_hash_xor1, 64); /* Start of additions */ if(j>=3) ctx1.sizeLo = 0x1ff; /* End of additions */ shaUpdate(&ctx1, magic_key_char, 4); shaFinal(&ctx1, digest1);