filename stringlengths 19 182 | omp_pragma_line stringlengths 24 416 | context_chars int64 100 100 | text stringlengths 152 177k |
|---|---|---|---|
openwall/john/src/pkzip_fmt_plug.c | #pragma omp parallel for private(idx) | 100 | y globbing many tests into a threads working set will flatten out these differences.
#ifdef _OPENMP
<LOOP-START>for (idx = 0; idx < _count; ++idx) {
int cur_hash_count = salt->cnt;
int cur_hash_idx = -1;
MY_WORD key0, key1, key2;
u8 C;
const u8 *b;
u8 curDecryBuf[256];
#if USE_PKZIP_MAGIC
u8 curInfBuf[128... |
openwall/john/src/drupal7_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index+=MIN_KEYS_PER_CRYPT) {
#ifdef SIMD_COEF_64
unsigned char _IBuf[128*MIN_KEYS_PER_CRYPT+MEM_ALIGN_CACHE], *keys;
uint64_t *keys64;
unsigned i, j, len;
keys = (unsig... |
openwall/john/src/rawmd5u_fmt_plug.c | #pragma omp parallel for | 100 | OCK_LOOPS),
// cause it does not scale well. We would need to parallelize set_key()
#ifdef _OPENMP
<LOOP-START>for (i = 0; i < BLOCK_LOOPS; i++)
SIMDmd5body(&saved_key[i*NBKEYS*64], (unsigned int*)&crypt_key[i*NBKEYS*BINARY_SIZE], NULL, SSEi_MIXED_IN);
#else
SIMDmd5body(saved_key, (unsigned int*)crypt_key, NULL, SS... |
openwall/john/src/skein_fmt_plug.c | #pragma omp parallel for | 100 | nt crypt_256(int *pcount, struct db_salt *salt)
{
int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
sph_skein256_context ctx;
sph_skein256_init(&ctx);
sph_skein256(&ctx, saved_key[index], strlen(saved_key[index]));
sph_skein256_close(&ctx, (unsigned char*)c... |
openwall/john/src/skein_fmt_plug.c | #pragma omp parallel for | 100 | nt crypt_512(int *pcount, struct db_salt *salt)
{
int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
sph_skein512_context ctx;
sph_skein512_init(&ctx);
sph_skein512(&ctx, saved_key[index], strlen(saved_key[index]));
sph_skein512_close(&ctx, (unsigned char*)c... |
openwall/john/src/bks_fmt_plug.c | #pragma omp parallel for | 100 | ny_cracked) {
memset(cracked, 0, sizeof(*cracked) * count);
any_cracked = 0;
}
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
#if !defined(SIMD_COEF_32)
if (cur_salt->format == 0) {
unsigned char mackey[20];
int mackeylen = cur_salt->hmac_key_size / 8;
// macke... |
openwall/john/src/krb5_db_fmt_plug.c | #pragma omp parallel for | 100 | l(int *pcount, struct db_salt *_salt)
{
const int count = *pcount;
int index = 0;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
unsigned char key[32], i;
AES_KEY aeskey;
int key_size;
if (cur_salt->etype == 18 || cur_salt->etype == 17) {
#ifdef SSE_GROUP_SZ_SHA1
... |
openwall/john/src/pem_fmt_plug.c | #pragma omp parallel for | 100 | = *pcount;
int index = 0;
memset(cracked, 0, sizeof(cracked[0])*cracked_count);
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
unsigned char master[MIN_KEYS_PER_CRYPT][32];
int i;
#ifdef SIMD_COEF_32
int lens[MIN_KEYS_PER_CRYPT];
unsigned char *pin[MIN_KEYS_PER_CRY... |
openwall/john/src/leet_cc_fmt_plug.c | #pragma omp parallel for | 100 | ypt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += NBKEYS) {
sph_whirlpool_context wctx;
int i;
union {
unsigned char buf[BINARY_SIZE];
uint64_t p64[1];
} output1[NBKEYS], output2;
#ifdef SIMD_COEF_64
//... |
openwall/john/src/argon2_fmt_plug.c | #pragma omp parallel for | 100 | crypt_all(int *pcount, struct db_salt *salt)
{
int i;
const int count = *pcount;
#ifdef _OPENMP
<LOOP-START>for (i = 0; i < count; i++) {
argon2_hash(saved_salt.t_cost, saved_salt.m_cost, saved_salt.lanes, saved_key[i], saved_len[i], saved_salt.salt,
saved_salt.salt_length, crypted[i], saved_salt.hash_size,... |
openwall/john/src/pfx_fmt_plug.c | #pragma omp parallel for | 100 | ->mac_algo == 512 || cur_salt->mac_algo == 384)
inc = SSE_GROUP_SZ_SHA512;
#endif
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += inc) {
#if !defined(SIMD_COEF_32)
if (cur_salt->mac_algo == 1) {
unsigned char mackey[20];
int mackeylen = cur_salt->key_length;
pkcs12_pbe_derive_key(cur_s... |
openwall/john/src/armory_fmt_plug.c | #pragma omp parallel for default(none) private(index) shared(count, failed, cracked, salt, max_threads, memory, saved_key, saved_salt, crypt_out) | 100 | , struct db_salt *salt)
{
int failed = 0, cracked = !salt, count = *pcount, index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
#ifdef _OPENMP
int t = omp_get_thread_num();
if (t >= max_threads) {
failed = -1;
continue;
}
#else
const int t = 0;
errno = 0;
... |
openwall/john/src/bestcrypt_fmt_plug.c | #pragma omp parallel for | 100 | ount = *pcount;
int index;
memset(cracked, 0, sizeof(cracked[0])*cracked_count);
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MAX_KEYS_PER_CRYPT) {
if (cur_salt->hash_id == bchaWhirlpool512) {
unsigned char key[kBCPasswordMaximumKeySize];
int keylen = 0;
pbe_format_v5_64* pbe64;
... |
openwall/john/src/ssh_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
unsigned char out[N];
// don't do full decryption (except for EC keys)
common_crypt_code(saved_key[index], out, 0);
if (cur_salt->cipher == 0) { // 3DES
... |
openwall/john/src/blackberry_ES10_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
int j;
SHA512_CTX ctx;
#ifdef SIMD_COEF_64
/* We use SSEi_HALF_IN, so can halve SHA_BUF_SIZ */
#undef SHA_BUF_SIZ
#define SHA_BUF_SIZ 8
unsi... |
openwall/john/src/dragonfly3_fmt_plug.c | #pragma omp parallel for | 100 | ypt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
SHA256_CTX ctx;
SHA256_Init(&ctx);
/* First the password */
SHA256_Update(&ctx, saved_key[index], saved_len[index]);
/* Then the salt, including the $3$ ... |
openwall/john/src/tiger_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
sph_tiger_context ctx;
sph_tiger_init(&ctx);
sph_tiger(&ctx, saved_key[index], strlen(saved_key[index]));
sph_tiger_close(&ctx, (unsigned char*)crypt_out[ind... |
openwall/john/src/opencl_gpg_fmt_plug.c | #pragma omp parallel for | 100 | filingEvent[2]),
"Copy result back");
if (ocl_autotune_running)
return count;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
if (gpg_common_check(outbuffer[index].v, gpg_common_keySize(gpg_common_cur_salt->cipher_algorithm))) {
cracked[index] = 1;
#ifdef _OPENMP
#pragma omp atomic
... |
openwall/john/src/mssql12_fmt_plug.c | #pragma omp parallel for | 100 | ll(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index = 0;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
#ifdef SIMD_COEF_64
if (new_keys) {
int i;
for (i = 0; i < MIN_KEYS_PER_CRYPT; i++) {
unsigned char *wucp = (unsigned char *)&saved_ke... |
openwall/john/src/dashlane_fmt_plug.c | #pragma omp parallel for | 100 | *pcount;
int index = 0;
memset(cracked, 0, sizeof(cracked[0]) * cracked_count);
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
unsigned char pkey[MIN_KEYS_PER_CRYPT][32];
int i;
#ifdef SIMD_COEF_32
int len[MIN_KEYS_PER_CRYPT];
unsigned char *pin[MIN_KEYS_PER_CRYPT]... |
openwall/john/src/rawSHA384_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
#ifdef SIMD_COEF_64
SIMDSHA512body(&saved_key[index/SIMD_COEF_64*SHA_BUF_SIZ*SIMD_COEF_64],
&crypt_out[index/SIMD_COEF_64*8*SIMD... |
openwall/john/src/phpassMD5_fmt_plug.c | #pragma omp parallel for | 100 | t loops = 1, index;
loops = (count + MIN_KEYS_PER_CRYPT - 1) / MIN_KEYS_PER_CRYPT;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < loops; index++) {
unsigned Lcount;
#ifdef SIMD_COEF_32
SIMDmd5body(cursalt[index], hash_key[index], NULL, SSEi_OUTPUT_AS_INP_FMT);
Lcount = loopCnt-1;
do {
SIMDmd5body(hash... |
openwall/john/src/NETNTLMv2_fmt_plug.c | #pragma omp parallel for | 100 | hallenge + 1 + identity_length + 1) << 8) | *(challenge + 1 + identity_length + 2);
#ifdef _OPENMP
<LOOP-START>for (i = 0; i < count; i++) {
unsigned char ntlm_v2_hash[16];
HMACMD5Context ctx;
if (!keys_prepared) {
unsigned char ntlm[16];
int len;
/* Generate 16-byte NTLM hash */
len = E_md4hash(sa... |
openwall/john/src/multibit_fmt_plug.c | #pragma omp parallel for | 100 | t, struct db_salt *salt)
{
const int count = *pcount;
int index;
int failed = 0;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
unsigned char iv[16];
unsigned char key[32];
unsigned char outbuf[16];
AES_KEY aes_decrypt_key;
int len = strlen(saved_key[index]);
#ifdef _OPENMP
if (cr... |
openwall/john/src/rawSHA1_fmt_plug.c | #pragma omp parallel for | 100 | int index = 0;
#ifdef _OPENMP
int loops = (count + MAX_KEYS_PER_CRYPT - 1) / MAX_KEYS_PER_CRYPT;
<LOOP-START>for (index = 0; index < loops; ++index)
{
#if SIMD_COEF_32
SIMDSHA1body(saved_key[index], crypt_key[index], NULL, SSEi_flags);
#else
SHA_CTX ctx;
SHA1_Init( &ctx );
SHA1_Update( &ctx, (unsigned cha... |
openwall/john/src/dpapimk_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
unsigned char *passwordBuf;
int passwordBufSize;
unsigned char *sidBuf;
int sidBufSize;
unsigned char out[MIN_KEYS_PER_CRYPT][KEY_LEN2 +... |
openwall/john/src/diskcryptor_fmt_plug.c | #pragma omp parallel for | 100 | ndex;
if (any_cracked) {
memset(cracked, 0, cracked_size);
any_cracked = 0;
}
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
unsigned char seed[MIN_KEYS_PER_CRYPT][128];
int i;
#ifdef SIMD_COEF_64
int lens[MIN_KEYS_PER_CRYPT];
unsigned char *pin[MIN_KEYS_PER_CRYP... |
openwall/john/src/electrum_fmt_plug.c | #pragma omp parallel for | 100 | = *pcount;
int index = 0;
memset(cracked, 0, sizeof(cracked[0])*cracked_count);
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
unsigned char iv[16];
unsigned char key[32];
SHA256_CTX ctx;
AES_KEY aes_decrypt_key;
int extra;
unsigned char static_privkey[MIN_KEYS... |
openwall/john/src/IPB2_fmt_plug.c | #pragma omp parallel for | 100 | truct db_salt *salt)
{
const int count = *pcount;
#ifdef SIMD_COEF_32
#if defined(_OPENMP)
int t;
<LOOP-START>for (t = 0; t < threads; t++)
#define ti (t*NBKEYS+index)
#else
#define t 0
#define ti index
{
unsigned int index, i;
if (new_salt)
for (index = 0; index < NBKEYS; index++) {
const uint32_t *sp =... |
openwall/john/src/IPB2_fmt_plug.c | #pragma omp parallel for | 100 | _msg("result", crypt_key, 16, count-1);
new_salt = new_key = 0;
#else
#ifdef _OPENMP
int index;
<LOOP-START>for (index = 0; index < count; index++)
#else
#define index 0
{
MD5_CTX ctx;
MD5_Init(&ctx);
MD5_Update(&ctx, saved_key[index], MD5_HEX_SIZE * 2);
MD5_Final((unsigned char*)crypt_key[index], &ctx);... |
openwall/john/src/cq_fmt_plug.c | #pragma omp parallel for | 100 | ypt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++)
crypt_key[index] = AdProcessPassword(saved_key[index]);
return count;
}
static int cmp_all(void *binary, int count)
{
int i;
for (i = 0; i < count; ++i)
if (*... |
openwall/john/src/hmacSHA1_fmt_plug.c | #pragma omp parallel for | 100 | crypt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#if _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
#ifdef SIMD_COEF_32
if (new_keys) {
SIMDSHA1body(&ipad[index * SHA_BUF_SIZ * 4],
(unsigned int*)&prep_ipad[index * BINARY_SIZE... |
openwall/john/src/cryptosafe_fmt_plug.c | #pragma omp parallel for | 100 | ) {
memset(cracked, 0, sizeof(cracked[0]) * cracked_count);
any_cracked = 0;
}
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
AES_KEY aes_decrypt_key;
unsigned char plain[16], iv[16] = { 0 };
AES_set_decrypt_key((unsigned char*)saved_key[index], 256, &aes_decrypt_key);
AES_cbc_encry... |
openwall/john/src/rakp_fmt_plug.c | #pragma omp parallel for | 100 | crypt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#if _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
#ifdef SIMD_COEF_32
if (new_keys) {
SIMDSHA1body(&ipad[index * SHA_BUF_SIZ * 4],
(unsigned int*)&prep_ipad[index * BINARY_SIZE... |
openwall/john/src/tezos_fmt_plug.c | #pragma omp parallel for | 100 | endif
if (any_cracked) {
memset(cracked, 0, cracked_size);
any_cracked = 0;
}
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
union {
unsigned char seed[64];
ed25519_secret_key sk;
} seed[MIN_KEYS_PER_CRYPT];
char salt[MIN_KEYS_PER_CRYPT][16 + 256 + PLAINTEXT_... |
openwall/john/src/pgpdisk_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
unsigned char key[40]; // multiple of 20 needed for pgpdisk_kdf()
if (cur_salt->algorithm == 5 || cur_salt->algorithm == 6 || cur_salt->algorithm == 7) {
AES_... |
openwall/john/src/snmp_fmt_plug.c | #pragma omp parallel for | 100 | ount = *pcount;
int index;
memset(cracked, 0, sizeof(cracked[0])*cracked_count);
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
HMACMD5Context ctx;
unsigned char authKey[20];
unsigned char out[20];
/*
* Missed optimization potential:
* This should be re-worked to cache authKey (in glo... |
openwall/john/src/bitshares_fmt_plug.c | #pragma omp parallel for | 100 | ndex;
if (any_cracked) {
memset(cracked, 0, cracked_size);
any_cracked = 0;
}
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
SHA512_CTX ctx;
unsigned char km[64];
AES_KEY aes_decrypt_key;
unsigned char out[MAX_CIPHERTEXT_LENGTH];
unsigned char iv[16] = { 0 }; // does not matter
... |
openwall/john/src/sapG_fmt_plug.c | #pragma omp parallel for | 100 | nst int count = *pcount;
#if SIMD_COEF_32
#define ti (t*NBKEYS+index)
int t;
#if defined(_OPENMP)
<LOOP-START>for (t = 0; t < (count-1)/(NBKEYS)+1; t++) {
unsigned int index, i, longest;
int len;
unsigned int crypt_len[NBKEYS];
longest = 0;
for (index = 0; index < NBKEYS; index++) {
// Store key into ... |
openwall/john/src/sapG_fmt_plug.c | #pragma omp parallel for | 100 | _crypt, (unsigned int*)crypt_key, ti);
}
}
#undef t
#undef ti
#else
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
unsigned int offsetMagicArray, lengthIntoMagicArray;
unsigned char temp_key[BINARY_SIZE];
unsigned char tempVar[UTF8_PLAINTEXT_LENGTH + MAGIC_ARRAY_SIZE + SALT_... |
openwall/john/src/blockchain_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
#ifdef SIMD_COEF_32
unsigned char master[MIN_KEYS_PER_CRYPT][32];
int lens[MIN_KEYS_PER_CRYPT], i;
unsigned char *pin[MIN_KEYS_PER_CRYPT], *... |
openwall/john/src/sapB_fmt_plug.c | #pragma omp parallel for | 100 | , struct db_salt *salt)
{
const int count = *pcount;
#if SIMD_COEF_32
#if defined(_OPENMP)
int t;
<LOOP-START>for (t = 0; t < threads; t++)
#define ti (t*NBKEYS+index)
#else
#define t 0
#define ti index
{
unsigned int index, i;
for (index = 0; index < NBKEYS; index++) {
int len;
if ((len = keyLen[ti]) ... |
openwall/john/src/sapB_fmt_plug.c | #pragma omp parallel for | 100 | TOUTPOS(4, ti)] ^= *(uint32_t*)&crypt_key[GETOUTPOS(12, ti)];
}
}
#else
#ifdef _OPENMP
int t;
<LOOP-START>for (t = 0; t < count; t++)
#else
#define t 0
{
unsigned char temp_key[BINARY_SIZE*2];
unsigned char final_key[BINARY_SIZE*2];
unsigned int i;
unsigned int sum20;
unsigned char destArray[TEMP_ARRA... |
openwall/john/src/lastpass_cli_fmt_plug.c | #pragma omp parallel for | 100 | ypt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
uint32_t key[MIN_KEYS_PER_CRYPT][8];
int i;
if (cur_salt->iterations != 1) {
#ifdef SIMD_COEF_32
int lens[MIN_KEYS_PER_CRYPT];
unsign... |
openwall/john/src/EPI_fmt_plug.c | #pragma omp parallel for private(i) shared(global_salt, saved_key, key_len, crypt_out) | 100 | crypt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int i=0;
#ifdef _OPENMP
<LOOP-START>for (i = 0; i < count; ++i) {
SHA_CTX ctx;
SHA1_Init(&ctx);
SHA1_Update(&ctx, (unsigned char*)global_salt, SALT_LENGTH-1);
SHA1_Update(&ctx, saved_key[i], key_len[i]);
SHA1_Final((unsigned char*)cry... |
openwall/john/src/gost_fmt_plug.c | #pragma omp parallel for | 100 | ypt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
gost_ctx ctx;
if (is_cryptopro)
john_gost_cryptopro_init(&ctx);
else
john_gost_init(&ctx);
john_gost_update(&ctx, (const unsigned char*)saved_key[index... |
openwall/john/src/lotus85_fmt_plug.c | #pragma omp parallel for | 100 | = *pcount;
int index = 0;
/* Compute digest for all given plaintext passwords */
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++)
{
unsigned char user_key[8], deciphered_userid[LOTUS85_MAX_BLOB_SIZE];
memset(lotus85_last_binary_hash1[index], 0, BINARY_LENGTH);
memset(lotus85_last_binary_has... |
openwall/john/src/MD5_std.c | #pragma omp parallel for default(none) private(t) shared(n, salt_changed, saved_salt) | 100 | crypt(int count)
{
#if MD5_std_mt
int t, n = (count + (MD5_N - 1)) / MD5_N;
#endif
#ifdef _OPENMP
<LOOP-START>for_each_t(n) {
/*
* We could move the salt_changed check out of the parallel region (and have
* two specialized parallel regions instead), but MD5_std_crypt_for_thread()
* does so much work that the salt_... |
openwall/john/src/FGT_fmt_plug.c | #pragma omp parallel for default(none) private(i) shared(ctx_salt, count, saved_key, saved_key_len, crypt_key, cp) | 100 | , struct db_salt *salt)
{
int count = *pcount;
int i=0;
char *cp=FORTINET_MAGIC;
#ifdef _OPENMP
<LOOP-START>for (i = 0; i < count; i++) {
SHA_CTX ctx;
memcpy(&ctx, &ctx_salt, sizeof(ctx));
SHA1_Update(&ctx, saved_key[i], saved_key_len[i]);
SHA1_Update(&ctx, cp, FORTINET_MAGIC_LENGTH);
SHA1_Final((unsign... |
openwall/john/src/oldoffice_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
int i;
if (oo_cur_salt->type < 3) {
MD5_CTX ctx;
unsigned char hashBuf[21 * 16];
unsigned char key_hash[16];
MD5_Init(&ctx);
MD5_Update(&ctx, sav... |
openwall/john/src/oldoffice_fmt_plug.c | #pragma omp parallel for | 100 | ;
if (any_cracked) {
memset(oo_cracked, 0, cracked_size);
any_cracked = 0;
}
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
RC4_KEY key;
if (oo_cur_salt->type < 3) {
MD5_CTX ctx;
unsigned char pwdHash[16];
unsigned char hashBuf[32];
if (cur_binary->has_mitm && memcmp(cur_... |
openwall/john/src/rawMD5_fmt_plug.c | #pragma omp parallel for | 100 | t;
int index;
int loops = (count + MIN_KEYS_PER_CRYPT - 1) / MIN_KEYS_PER_CRYPT;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < loops; index++) {
#if SIMD_COEF_32
SIMDmd5body(saved_key[index], crypt_key[index], NULL, SSEi_REVERSE_STEPS | SSEi_MIXED_IN);
#else
MD5_CTX ctx;
MD5_Init(&ctx);
MD5_Update(&ctx... |
openwall/john/src/nsec3_fmt_plug.c | #pragma omp parallel for private(i) | 100 | ic int crypt_all(int *pcount, struct db_salt *salt)
{
int count = *pcount;
int i;
#ifdef _OPENMP
<LOOP-START>for (i = 0; i < count; ++i) {
uint16_t iterations = saved_salt.iterations;
SHA_CTX ctx;
SHA1_Init(&ctx);
if (saved_key_length[i] > 0) {
unsigned char label_wf[PLAINTEXT_LENGTH + 2];
labels_to_w... |
openwall/john/src/MSCHAPv2_bs_fmt_plug.c | #pragma omp parallel for | 100 | struct db_salt *salt)
{
const int count = *pcount;
int i;
if (!keys_prepared) {
#ifdef _OPENMP
<LOOP-START>for (i = 0; i < count; i++) {
int len;
/* Generate 16-byte NTLM hash */
len = E_md4hash((uchar *) saved_plain[i], saved_len[i],
saved_key[i]);
if (len <= 0)
saved_plain[i][-len] =... |
openwall/john/src/ripemd_fmt_plug.c | #pragma omp parallel for | 100 | nt crypt_160(int *pcount, struct db_salt *salt)
{
int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
sph_ripemd160_context ctx;
sph_ripemd160_init(&ctx);
sph_ripemd160(&ctx, saved_key[index], strlen(saved_key[index]));
sph_ripemd160_close(&ctx, (unsigned cha... |
openwall/john/src/ripemd_fmt_plug.c | #pragma omp parallel for | 100 | nt crypt_128(int *pcount, struct db_salt *salt)
{
int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
sph_ripemd128_context ctx;
sph_ripemd128_init(&ctx);
sph_ripemd128(&ctx, saved_key[index], strlen(saved_key[index]));
sph_ripemd128_close(&ctx, (unsigned cha... |
openwall/john/src/krb5pa-sha1_fmt_plug.c | #pragma omp parallel for | 100 | unt = *pcount;
const int key_size = (cur_salt->etype == 17) ? 16 : 32;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
unsigned char tkey[MIN_KEYS_PER_CRYPT][32];
unsigned char base_key[32];
unsigned char Ke[32];
unsigned char plaintext[TIMESTAMP_SIZE];
i... |
openwall/john/src/sha3_512_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
Keccak_HashInstance hash;
Keccak_HashInitialize(&hash, 576, 1024, 512, 0x06);
Keccak_HashUpdate(&hash, (unsigned char*)saved_key[index], saved_len[index] * 8);
... |
openwall/john/src/clipperz_srp_fmt_plug.c | #pragma omp parallel for | 100 | t crypt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int j;
#ifdef _OPENMP
<LOOP-START>for (j = 0; j < count; ++j) {
SHA256_CTX ctx;
unsigned char Tmp[32];
unsigned char TmpHex[64];
memset(crypt_out[j], 0, sizeof(crypt_out[j]));
SHA256_Init(&ctx);
SHA256_Update(&ctx, saved_key[j], ... |
openwall/john/src/sspr_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
uint32_t c;
SHA_CTX ctx;
SHA256_CTX sctx;
SHA512_CTX sctx2;
MD5_CTX mctx;
unsigned char buf[64];
if (cur_salt->fmt == 0) {
MD5_Init(&mctx);
MD5_U... |
openwall/john/src/mysql_fmt_plug.c | #pragma omp parallel for default(none) private(i) shared(count, binary, crypt_key, retval) | 100 | ndex][0];
}
static int cmp_all(void* binary, int count)
{
int i;
#ifdef _OPENMP
int retval = 0;
<LOOP-START>for (i = 0; i < count; i++)
if (*(uint32_t *)binary == crypt_key[i][0])
#pragma omp atomic
retval |= 1;
return retval;
#else
for (i = 0; i < count; i++)
if (*(uint32_t *)binary == crypt_key[i][0])
... |
openwall/john/src/mysql_fmt_plug.c | #pragma omp parallel for default(none) private(i) shared(count, saved_key, crypt_key) | 100 | ic int crypt_all(int *pcount, struct db_salt *salt)
{
int count = *pcount;
int i;
#ifdef _OPENMP
<LOOP-START>for (i = 0; i < count; i++) {
unsigned char *p = (unsigned char *)saved_key[i];
if (*p) {
uint32_t nr, add;
uint32_t tmp;
while (*p == ' ' || *p == '\t')
p++;
tmp = (uint32_t) (unsigned c... |
openwall/john/src/keplr_fmt_plug.c | #pragma omp parallel for | 100 | t, struct db_salt *salt)
{
const int count = *pcount;
int index;
int failed = 0;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
uint8_t key[32];
int len = strlen(saved_key[index]);
#ifdef _OPENMP
if (cracked[index]) /* avoid false sharing of nearby elements */
cracked[index] = 0;
#... |
openwall/john/src/bitwarden_fmt_plug.c | #pragma omp parallel for | 100 | = 0;
if (any_cracked) {
memset(cracked, 0, cracked_size);
any_cracked = 0;
}
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
unsigned char master[MIN_KEYS_PER_CRYPT][32];
int i;
#ifdef SIMD_COEF_32
int lens[MIN_KEYS_PER_CRYPT];
unsigned char *pin[MIN_KEYS_PER_CRY... |
openwall/john/src/SybasePROP_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
generate_hash((unsigned char*)saved_key[index], saved_salt,
(unsigned char*)crypt_out[index]);
}<LOOP-END> <OMP-START>#pragma omp parallel for<OMP-END> |
openwall/john/src/o10glogon_fmt_plug.c | #pragma omp parallel for | 100 | ORACLE
dump_stuff_msg("cur_salt ", buf, cur_salt->userlen+key_length);
#endif
#ifdef _OPENMP
<LOOP-START>for (idx = 0; idx < count; idx++) {
unsigned char buf[256], buf1[256];
unsigned int l;
uint32_t iv[2];
DES_key_schedule desschedule2;
l = cur_salt->userlen + cur_key_len[idx];
memcpy(buf, cur_sal... |
openwall/john/src/NETNTLM_bs_fmt_plug.c | #pragma omp parallel for | 100 | struct db_salt *salt)
{
const int count = *pcount;
int i;
if (!keys_prepared) {
#ifdef _OPENMP
<LOOP-START>for (i = 0; i < count; i++) {
int len;
/* Generate 16-byte NTLM hash */
len = E_md4hash((uchar *) saved_plain[i], saved_len[i],
saved_key[i]);
if (len <= 0)
saved_plain[i][-len] =... |
openwall/john/src/krb5_tgsrep_fmt_plug.c | #pragma omp parallel for | 100 | dex;
if (any_cracked) {
memset(cracked, 0, cracked_size);
any_cracked = 0;
}
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT)
{
unsigned char tkey[MIN_KEYS_PER_CRYPT][32];
int i;
#ifdef SIMD_COEF_32
int len[MIN_KEYS_PER_CRYPT];
unsigned char *pin[MIN_KEYS_PER_CRYP... |
openwall/john/src/racf_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
if (dirty) {
DES_cblock des_key;
int i;
/* process key */
for (i = 0; saved_key[index][i]; i++)
des_key[i] = a2e_precomputed[ARCH_INDEX(saved_key[i... |
openwall/john/src/cloudkeychain_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
#ifdef SSE_GROUP_SZ_SHA512
int lens[SSE_GROUP_SZ_SHA512], i;
unsigned char *pin[SSE_GROUP_SZ_SHA512];
uint64_t key[SSE_GROUP_SZ_SHA512][8];
... |
openwall/john/src/androidbackup_fmt_plug.c | #pragma omp parallel for | 100 | ndex;
if (any_cracked) {
memset(cracked, 0, cracked_size);
any_cracked = 0;
}
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
unsigned char pkey[MIN_KEYS_PER_CRYPT][32];
int i;
#ifdef SIMD_COEF_32
int len[MIN_KEYS_PER_CRYPT];
unsigned char *pin[MIN_KEYS_PER_CRYPT]... |
openwall/john/src/net_md5_fmt_plug.c | #pragma omp parallel for | 100 | ur_salt->magic != MAGIC) {
return pDynamicFmt->methods.crypt_all(pcount, salt);
}
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++)
{
MD5_CTX ctx;
MD5_Init(&ctx);
MD5_Update(&ctx, cur_salt->salt, cur_salt->length);
MD5_Update(&ctx, saved_key[index], PLAINTEXT_LENGTH);
MD5_Final((unsigned... |
openwall/john/src/vdi_fmt_plug.c | #pragma omp parallel for | 100 | crypt_all(int *pcount, struct db_salt *salt)
{
int i;
const int count = *pcount;
#ifdef _OPENMP
<LOOP-START>for (i = 0; i < count; i += MIN_KEYS_PER_CRYPT) {
unsigned char key[MAX_KEY_LEN];
#if SSE_GROUP_SZ_SHA256
unsigned char Keys[SSE_GROUP_SZ_SHA256][MAX_KEY_LEN];
unsigned char Decr[SSE_GROUP_SZ_SHA256][M... |
openwall/john/src/agilekeychain_fmt_plug.c | #pragma omp parallel for | 100 | ypt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MAX_KEYS_PER_CRYPT) {
#ifdef SIMD_COEF_32
unsigned char master[MAX_KEYS_PER_CRYPT][32];
int lens[MAX_KEYS_PER_CRYPT], i;
unsigned char *pin[MAX_KEYS_PER_CRYPT], *... |
openwall/john/src/stribog_fmt_plug.c | #pragma omp parallel for | 100 | pt_256(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
/* GOST34112012Context ctx;
GOST34112012Init(&ctx, 256);
GOST34112012Update(&ctx, (const unsigned char*)saved_key[index], strlen(saved_key[index]));
GOST3411... |
openwall/john/src/stribog_fmt_plug.c | #pragma omp parallel for | 100 | ypt_512(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
GOST34112012Context ctx[2]; // alignment stuff
stribog512_init((void *)ctx);
stribog_update(&ctx, (const unsigned char*)saved_key[index], strlen(saved_key[inde... |
openwall/john/src/snefru_fmt_plug.c | #pragma omp parallel for | 100 | nt crypt_256(int *pcount, struct db_salt *salt)
{
int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
snefru_ctx ctx;;
rhash_snefru256_init(&ctx);
rhash_snefru_update(&ctx, (unsigned char*)saved_key[index], strlen(saved_key[index]));
rhash_snefru_final(&ctx, ... |
openwall/john/src/snefru_fmt_plug.c | #pragma omp parallel for | 100 | nt crypt_128(int *pcount, struct db_salt *salt)
{
int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
snefru_ctx ctx;;
rhash_snefru128_init(&ctx);
rhash_snefru_update(&ctx, (unsigned char*)saved_key[index], strlen(saved_key[index]));
rhash_snefru_final(&ctx, ... |
openwall/john/src/dragonfly4_fmt_plug.c | #pragma omp parallel for | 100 | ypt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
SHA512_CTX ctx;
SHA512_Init(&ctx);
/* First the password */
SHA512_Update(&ctx, saved_key[index], saved_len[index]);
/* Then the salt, including the $4$ ... |
openwall/john/src/radmin_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++)
{
MD5_CTX ctx;
MD5_Init(&ctx);
MD5_Update(&ctx, saved_key[index], sizeof(saved_key[index]));
MD5_Final((unsigned char *)crypt_out[index], &ctx);
}<LOOP-END> <... |
openwall/john/src/MD5_fmt.c | #pragma omp parallel for | 100 | nt, struct db_salt *salt)
{
const int count = *pcount;
#ifdef SIMD_PARA_MD5
#ifdef _OPENMP
int t;
<LOOP-START>for (t = 0; t < omp_para; t++)
md5cryptsse((unsigned char *)(&saved_key[t*MD5_N]), cursalt, (char *)(&sout[t*MD5_N*BINARY_SIZE/sizeof(MD5_word)]), CryptType);
#else
md5cryptsse((unsigned char *)saved_key, ... |
openwall/john/src/o3logon_fmt_plug.c | #pragma omp parallel for | 100 | ORACLE
dump_stuff_msg("cur_salt ", buf, cur_salt->userlen+key_length);
#endif
#ifdef _OPENMP
<LOOP-START>for (idx = 0; idx < count; idx++) {
unsigned char buf[256], buf1[256];
unsigned int l;
uint32_t iv[2];
DES_key_schedule desschedule2;
l = cur_salt->userlen + cur_key_len[idx];
memcpy(buf, cur_sal... |
openwall/john/src/timeroast_fmt_plug.c | #pragma omp parallel for default(none) private(i) shared(count, ms_buffer1x, crypt_out, last) | 100 | output1x[4 * index] & PH_MASK_6; }
static void nt_hash(int count)
{
int i;
#if defined(_OPENMP)
<LOOP-START>for (i = 0; i < count; i++) {
unsigned int a;
unsigned int b;
unsigned int c;
unsigned int d;
/* Round 1 */
a = 0xFFFFFFFF + ms_buffer1x[16 * i + 0];a = (a << 3 ) | (a >> 29);
d = INIT_D ... |
openwall/john/src/timeroast_fmt_plug.c | #pragma omp parallel for | 100 | t);
#if !ARCH_LITTLE_ENDIAN
swap(last, count * 4);
#endif
new_key = 0;
}
#if defined(_OPENMP)
<LOOP-START>for (i = 0; i < count; i++) {
MD5_CTX ctx;
MD5_Init(&ctx);
MD5_Update(&ctx, &((unsigned char*)last)[16 * i], 16);
MD5_Update(&ctx, salt_buffer, SALT_SIZE);
MD5_Final(&((unsigned char*)output1x)[16 ... |
openwall/john/src/tcp_md5_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
MD5_CTX ctx;
MD5_Init(&ctx);
MD5_Update(&ctx, cur_salt->salt, cur_salt->length);
MD5_Update(&ctx, saved_key[index], saved_len[index]);
MD5_Final((unsigned... |
openwall/john/src/DOMINOSEC_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += 3) {
int i, j;
if (keys_changed) {
char *k0 = saved_key[index];
char *k1 = saved_key[index + 1];
char *k2 = saved_key[index + 2];
unsigned char digest1... |
openwall/john/src/oracle_fmt_plug.c | #pragma omp parallel for | 100 | _all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int idx = 0;
#ifdef _OPENMP
<LOOP-START>for (idx = 0; idx < count; idx++) {
unsigned char buf[sizeof(cur_salt)];
unsigned char buf2[SALT_SIZE + PLAINTEXT_LENGTH*2];
DES_key_schedule sched_local;
unsigned int l;
l = salt_length + key_leng... |
openwall/john/src/wpapsk.h | #pragma omp parallel for default(none) private(i) shared(count, outbuffer, msg, mic) | 100 | "PMK Name";
memcpy(msg + 8, hccap->mac1, 6);
memcpy(msg + 14, hccap->mac2, 6);
#ifdef _OPENMP
<LOOP-START>/* Create "keymic" that is actually PMKID */
for (i = 0; i < count; i++) {
hmac_sha1((unsigned char*)outbuffer[i].v, 32,
msg, 20, mic[i].keymic, 16);
}<LOOP-END> <OMP-START>#pragma omp par... |
openwall/john/src/wpapsk.h | #pragma omp parallel for default(none) private(i) shared(count, outbuffer, data, hccap, mic) | 100 | t_mac(hccap, data);
insert_nonce(hccap, data + 12);
}
if (hccap->keyver == 1) {
#ifdef _OPENMP
<LOOP-START>for (i = 0; i < count; i++) {
union {
uint32_t u32[20/4];
unsigned char uc[20];
uint64_t dummy; /* alignment for hmac_md5_init_K16() */
} prf;
HMACMD5Context ctx;
prf_512(outbuffer[i]... |
openwall/john/src/wpapsk.h | #pragma omp parallel for default(none) private(i) shared(count, outbuffer, data, hccap, mic) | 100 | &ctx);
hmac_md5_final(mic[i].keymic, &ctx);
}
} else if (hccap->keyver == 2) {
#ifdef _OPENMP
<LOOP-START>for (i = 0; i < count; i++) {
uint32_t prf[20/4];
prf_512(outbuffer[i].v, data, prf); // PTK
hmac_sha1((unsigned char*)prf, 16, hccap->eapol,
hccap->eapol_size, mic[i].keymic, 16);
}<... |
openwall/john/src/wpapsk.h | #pragma omp parallel for default(none) private(i) shared(count, outbuffer, data, hccap, mic) | 100 | #if HAVE_OPENSSL_CMAC_H
} else if (hccap->keyver == 3) { // 802.11w, WPA-PSK-SHA256
#ifdef _OPENMP
<LOOP-START>for (i = 0; i < count; i++) {
unsigned char ptk[48];
unsigned char cmic[16];
size_t miclen;
CMAC_CTX *ctx;
sha256_prf_bits((unsigned char*)outbuffer[i].v, 32, "Pairwise key expansion", data, 7... |
openwall/john/src/hmacSHA256_fmt_plug.c | #pragma omp parallel for | 100 | LAGS
#else
const int B_LEN
#endif
)
{
const int count = *pcount;
int index = 0;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
#ifdef SIMD_COEF_32
unsigned int i, *pclear;
if (new_keys) {
SIMDSHA256body(&ipad[index * PAD_SIZE],
(unsigned int*)&prep_i... |
openwall/john/src/siemens-s7_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
unsigned char buf[20];
SHA_CTX ctx;
if (new_keys) {
unsigned char pad[20];
int i;
SHA1_Init(&ctx);
SHA1_Update(&ctx, saved_key[index], strlen(saved... |
openwall/john/src/postgres_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
MD5_CTX ctx;
unsigned char out[32];
MD5_Init(&ctx);
MD5_Update(&ctx, saved_key[index], strlen(saved_key[index]));
MD5_Update(&ctx, cur_salt->user, strlen((... |
openwall/john/src/haval_fmt_plug.c | #pragma omp parallel for | 100 | crypt_256_3(int *pcount, struct db_salt *salt)
{
int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
sph_haval256_3_context ctx;
sph_haval256_3_init(&ctx);
sph_haval256_3(&ctx, saved_key[index], strlen(saved_key[index]));
sph_haval256_3_close(&ctx, (unsigned... |
openwall/john/src/haval_fmt_plug.c | #pragma omp parallel for | 100 | crypt_128_4(int *pcount, struct db_salt *salt)
{
int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
sph_haval128_4_context ctx;
sph_haval128_4_init(&ctx);
sph_haval128_4(&ctx, saved_key[index], strlen(saved_key[index]));
sph_haval128_4_close(&ctx, (unsigned... |
openwall/john/src/mdc2_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
JtR_MDC2_CTX ctx;
JtR_MDC2_Init(&ctx);
JtR_MDC2_Update(&ctx, (unsigned char*)saved_key[index], saved_len[index]);
JtR_MDC2_Final((unsigned char*)crypt_out[ind... |
openwall/john/src/strip_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
unsigned char master[MIN_KEYS_PER_CRYPT][32];
unsigned char output[24];
unsigned char *iv_in;
unsigned char iv_out[16];
int size,i;
in... |
openwall/john/src/keychain_fmt_plug.c | #pragma omp parallel for | 100 | pt_all(int *pcount, struct db_salt *salt)
{
const int count = *pcount;
int index;
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index += MIN_KEYS_PER_CRYPT) {
unsigned char master[MIN_KEYS_PER_CRYPT][32];
int i;
#ifdef SIMD_COEF_32
int lens[MIN_KEYS_PER_CRYPT];
unsigned char *pin[MIN_KEYS_PER_CRY... |
openwall/john/src/opencl_electrum_modern_fmt_plug.c | #pragma omp parallel for | 100 | NULL, multi_profilingEvent[3]), "Copy result back");
if (!ocl_autotune_running) {
#ifdef _OPENMP
<LOOP-START>for (index = 0; index < count; index++) {
BIGNUM *p, *q, *r;
BN_CTX *ctx;
uint64_t u[8];
unsigned char static_privkey[64];
unsigned char shared_pubkey[33];
unsigned char keys[128];
unsign... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.