Exemplo n.º 1
0
static void crypt_all(int count)
{
	int i;
	if (any_cracked) {
		memset(outbuffer, 0, sizeof(crypt_md5_crack) * KEYS_PER_CRYPT);
		any_cracked = 0;
	}
	md5_crypt_gpu(inbuffer, outbuffer, &host_salt);
	for (i = 0; i < count; i++) {
		any_cracked|=outbuffer[i].cracked;
	}
#ifdef CUDA_DEBUG
	printf("crypt_all(%d)\n", count);
	printf("any_cracked=%d\n",any_cracked);
#endif
}
Exemplo n.º 2
0
static int crypt_all(int *pcount, struct db_salt *salt)
{
	md5_crypt_gpu(inbuffer, outbuffer, &host_salt, *pcount);
	return *pcount;
}