/dports/security/john/john-1.9.0-jumbo-1/src/ |
H A D | rar_fmt_plug.c | 113 #define MIN_KEYS_PER_CRYPT NBKEYS 114 #define MAX_KEYS_PER_CRYPT NBKEYS 139 static uint32_t (*vec_out)[NBKEYS*5]; 140 static uint8_t (*tmp_in)[NBKEYS*64]; 141 static uint32_t (*tmp_out)[NBKEYS*5]; 230 while (tot_todo % NBKEYS) in crypt_all() 239 uint8_t (*RawPsw)[NBKEYS*64] = vec_in[index/NBKEYS]; in crypt_all() 252 for (j = 0; j < NBKEYS; ++j) { in crypt_all() 298 for (j = 0; j < NBKEYS; ++j) { in crypt_all() 317 for (j = 0; j < NBKEYS; ++j) { in crypt_all() [all …]
|
H A D | wpapsk_fmt_plug.c | 56 #define NBKEYS (SIMD_COEF_32 * SIMD_PARA_SHA1) macro 58 #define NBKEYS 1 macro 61 #define MIN_KEYS_PER_CRYPT NBKEYS 62 #define MAX_KEYS_PER_CRYPT (NBKEYS * 2) 133 int loops = (count+NBKEYS-1) / NBKEYS; in wpapsk_sse() 139 int lens[NBKEYS], i; in wpapsk_sse() 140 unsigned char *pin[NBKEYS]; in wpapsk_sse() 142 uint32_t *pout[NBKEYS]; in wpapsk_sse() 145 for (i = 0; i < NBKEYS; ++i) { in wpapsk_sse() 146 lens[i] = in[t*NBKEYS+i].length; in wpapsk_sse() [all …]
|
H A D | rawMD5flat_fmt_plug.c | 43 #define NBKEYS (SIMD_COEF_32 * SIMD_PARA_MD5) macro 45 #define MIN_KEYS_PER_CRYPT NBKEYS 46 #define MAX_KEYS_PER_CRYPT (NBKEYS * 128) 91 static uint32_t (*crypt_key)[DIGEST_SIZE/4*NBKEYS]; 110 crypt_key = mem_calloc_align(self->params.max_keys_per_crypt/NBKEYS, in init() 170 static int get_hash_0(int index) { return crypt_key[index/NBKEYS][HASH_OFFSET] & PH_MASK_0; } in get_hash_0() 171 static int get_hash_1(int index) { return crypt_key[index/NBKEYS][HASH_OFFSET] & PH_MASK_1; } in get_hash_1() 172 static int get_hash_2(int index) { return crypt_key[index/NBKEYS][HASH_OFFSET] & PH_MASK_2; } in get_hash_2() 173 static int get_hash_3(int index) { return crypt_key[index/NBKEYS][HASH_OFFSET] & PH_MASK_3; } in get_hash_3() 213 const int inc = NBKEYS; in crypt_all() [all …]
|
H A D | salted_sha1_fmt_plug.c | 48 #define NBKEYS (SIMD_COEF_32 * SIMD_PARA_SHA1) macro 51 #define MIN_KEYS_PER_CRYPT NBKEYS 52 #define MAX_KEYS_PER_CRYPT (NBKEYS * 512) 75 static uint32_t (*saved_key)[SHA_BUF_SIZ*NBKEYS]; 76 static uint32_t (*crypt_key)[BINARY_SIZE/4*NBKEYS]; 95 saved_key = mem_calloc_align(self->params.max_keys_per_crypt/NBKEYS, in init() 183 unsigned int i, idx=index%NBKEYS; in set_onesalt() 184 unsigned char *sk = (unsigned char*)&saved_key[index/NBKEYS]; in set_onesalt() 204 inc = NBKEYS; in crypt_all() 214 for (i=0;i<NBKEYS;i++) in crypt_all() [all …]
|
H A D | IPB2_fmt_plug.c | 70 #define MIN_KEYS_PER_CRYPT NBKEYS 71 #define MAX_KEYS_PER_CRYPT NBKEYS 80 #define NBKEYS 1 macro 160 threads /= NBKEYS; in init() 166 empty_key = mem_calloc_align(64 * NBKEYS, in init() 168 for (i = 0; i < NBKEYS; ++i) { in init() 314 #define ti (t*NBKEYS+index) 323 for (index = 0; index < NBKEYS; index++) { 337 for (index = 0; index < NBKEYS; index++) { 401 SIMDmd5body(&key_buf[t*NBKEYS*64], (unsigned int*)&crypt_key[t*NBKEYS*16], NULL, SSEi_MIXED_IN); [all …]
|
H A D | rawSHA1_fmt_plug.c | 65 #define NBKEYS (SIMD_COEF_32 * SIMD_PARA_SHA1) macro 76 #define MIN_KEYS_PER_CRYPT NBKEYS 77 #define MAX_KEYS_PER_CRYPT NBKEYS 87 static uint32_t (*saved_key)[SHA_BUF_SIZ*NBKEYS]; 88 static uint32_t (*crypt_key)[DIGEST_SIZE/4*NBKEYS]; 105 saved_key = mem_calloc_align(self->params.max_keys_per_crypt/NBKEYS, in init() 107 crypt_key = mem_calloc_align(self->params.max_keys_per_crypt/NBKEYS, in init() 154 static int get_hash_0(int index) { return crypt_key[index/NBKEYS][HASH_OFFSET] & PH_MASK_0; } in get_hash_0() 155 static int get_hash_1(int index) { return crypt_key[index/NBKEYS][HASH_OFFSET] & PH_MASK_1; } in get_hash_1() 156 static int get_hash_2(int index) { return crypt_key[index/NBKEYS][HASH_OFFSET] & PH_MASK_2; } in get_hash_2() [all …]
|
H A D | sl3_fmt_plug.c | 43 #define NBKEYS (SIMD_COEF_32 * SIMD_PARA_SHA1) macro 49 #define MIN_KEYS_PER_CRYPT NBKEYS 50 #define MAX_KEYS_PER_CRYPT (NBKEYS * 256) 63 static uint32_t (*saved_key)[SHA_BUF_SIZ*NBKEYS]; 64 static uint32_t (*crypt_key)[BINARY_SIZE/4*NBKEYS]; 83 saved_key = mem_calloc_align(self->params.max_keys_per_crypt/NBKEYS, in init() 85 crypt_key = mem_calloc_align(self->params.max_keys_per_crypt/NBKEYS, in init() 227 unsigned int i, idx = index % NBKEYS; in set_onesalt() 228 unsigned char *sk = (unsigned char*)&saved_key[index / NBKEYS]; in set_onesalt() 250 for (i=0;i<NBKEYS;i++) in crypt_all() [all …]
|
H A D | HDAA_fmt_plug.c | 49 #define MIN_KEYS_PER_CRYPT NBKEYS 50 #define MAX_KEYS_PER_CRYPT NBKEYS 436 static unsigned int crypt_len[NBKEYS]; in crypt_all() 439 for (index = 0; index < NBKEYS; index++) in crypt_all() 474 SIMDmd5body(&saved_key[0][thread*64*NBKEYS], &crypt_key[thread*4*NBKEYS], NULL, SSEi_MIXED_IN); in crypt_all() 475 …_bin2ascii((unsigned char*)&saved_key[0][thread*64*NBKEYS], (unsigned char*)&crypt_key[thread*4*NB… in crypt_all() 478 for (index = 0; index < NBKEYS; index++) in crypt_all() 530 SIMDmd5body(&saved_key[0][thread*64*NBKEYS], &interm_key[thread*4*NBKEYS], NULL, SSEi_MIXED_IN); in crypt_all() 534 memcpy(&crypt_key[thread*4*NBKEYS], &interm_key[thread*4*NBKEYS], 16*NBKEYS); in crypt_all() 542 …SIMDmd5body(&saved_key[i][thread*64*NBKEYS], &interm_key[thread*4*NBKEYS], &interm_key[thread*4*NB… in crypt_all() [all …]
|
H A D | sapG_fmt_plug.c | 67 #define MIN_KEYS_PER_CRYPT NBKEYS 69 #define MAX_KEYS_PER_CRYPT (NBKEYS * 64) 456 #define ti (t*NBKEYS+index) 465 unsigned int crypt_len[NBKEYS]; 564 …SIMDSHA1body(&saved_key[0][t*SHA_BUF_SIZ*4*NBKEYS], (unsigned int*)&crypt_key[t*20*NBKEYS], NULL, … 567 memcpy(&interm_crypt[t*20*NBKEYS], &crypt_key[t*20*NBKEYS], 20*NBKEYS); 569 …&saved_key[i][t*SHA_BUF_SIZ*4*NBKEYS], (unsigned int*)&interm_crypt[t*20*NBKEYS], (unsigned int*)&… 571 for (index = 0; index < NBKEYS; index++) 637 for (index = 0; index < NBKEYS; index++) 643 …&saved_key[i][t*SHA_BUF_SIZ*4*NBKEYS], (unsigned int*)&interm_crypt[t*20*NBKEYS], (unsigned int*)&… [all …]
|
H A D | AzureAD_fmt_plug.c | 51 #define NBKEYS (SIMD_COEF_32 * SIMD_PARA_SHA256) macro 53 #define NBKEYS 1 macro 66 #define MIN_KEYS_PER_CRYPT NBKEYS 67 #define MAX_KEYS_PER_CRYPT (NBKEYS * 4) 145 int lens[NBKEYS]; in crypt_all() 146 unsigned char *pin[NBKEYS]; in crypt_all() 148 uint32_t *pout[NBKEYS]; in crypt_all() 151 cnt = NBKEYS; in crypt_all() 167 for (i = 0; i < NBKEYS; ++i) { in crypt_all()
|
H A D | citrix_ns_fmt_plug.c | 52 #define NBKEYS (SIMD_COEF_32 * SIMD_PARA_SHA1) macro 74 #define MIN_KEYS_PER_CRYPT NBKEYS 75 #define MAX_KEYS_PER_CRYPT (NBKEYS * 256) 100 static unsigned char (*saved_key)[SHA_BUF_SIZ * 4 * NBKEYS]; 101 static unsigned char (*crypt_key)[BINARY_SIZE * NBKEYS]; 114 saved_key = mem_calloc_align(self->params.max_keys_per_crypt / NBKEYS, in init() 116 crypt_key = mem_calloc_align(self->params.max_keys_per_crypt / NBKEYS, in init() 198 int idx = index % NBKEYS; in set_salt() 199 unsigned char *sk = saved_key[index/NBKEYS]; in set_salt()
|
H A D | mysqlSHA1_fmt_plug.c | 40 #define NBKEYS (SIMD_COEF_32 * SIMD_PARA_SHA1) macro 68 #define MIN_KEYS_PER_CRYPT NBKEYS 69 #define MAX_KEYS_PER_CRYPT NBKEYS 103 JTR_ALIGN(MEM_ALIGN_SIMD) char saved_key[SHA_BUF_SIZ*4*NBKEYS]; 104 JTR_ALIGN(MEM_ALIGN_SIMD) char crypt_key[BINARY_SIZE*NBKEYS]; 105 JTR_ALIGN(MEM_ALIGN_SIMD) char interm_key[SHA_BUF_SIZ*4*NBKEYS]; in JTR_ALIGN() 149 for (i = 0; i < NBKEYS; i++) { in init()
|
H A D | XSHA_fmt_plug.c | 19 #define NBKEYS (SIMD_COEF_32 * SIMD_PARA_SHA1) macro 55 #define MIN_KEYS_PER_CRYPT NBKEYS 56 #define MAX_KEYS_PER_CRYPT NBKEYS 102 self->params.min_keys_per_crypt = threads * NBKEYS; in init() 104 self->params.max_keys_per_crypt = threads * NBKEYS; in init() 209 unsigned int *in = &saved_key[i*NBKEYS*SHA_BUF_SIZ]; in crypt_all() 210 unsigned int *out = &crypt_key[i*NBKEYS*BINARY_SIZE/4]; in crypt_all() 212 for (j=0; j < NBKEYS; j++) in crypt_all()
|
H A D | phpassMD5_fmt_plug.c | 57 #define NBKEYS (SIMD_COEF_32 * SIMD_PARA_MD5) macro 74 #define MIN_KEYS_PER_CRYPT NBKEYS 75 #define MAX_KEYS_PER_CRYPT (NBKEYS * 2) 90 static uint32_t (*hash_key)[MD5_BUF_SIZ*NBKEYS]; 92 static uint32_t (*cursalt)[MD5_BUF_SIZ*NBKEYS]; 93 static uint32_t (*crypt_key)[DIGEST_SIZE/4*NBKEYS]; 107 crypt_key = mem_calloc_align(self->params.max_keys_per_crypt/NBKEYS, in init() 109 hash_key = mem_calloc_align(self->params.max_keys_per_crypt/NBKEYS, in init() 111 cursalt = mem_calloc_align(self->params.max_keys_per_crypt/NBKEYS, in init()
|
H A D | oracle11_fmt_plug.c | 63 #define NBKEYS (SIMD_COEF_32 * SIMD_PARA_SHA1) macro 102 #define MIN_KEYS_PER_CRYPT NBKEYS 103 #define MAX_KEYS_PER_CRYPT NBKEYS 143 saved_key = mem_calloc_align(SHA_BUF_SIZ * 4, NBKEYS, MEM_ALIGN_SIMD); in init() 144 crypt_key = mem_calloc_align(BINARY_SIZE, NBKEYS, MEM_ALIGN_SIMD); in init() 145 saved_len = mem_calloc(sizeof(int), NBKEYS); in init() 150 for (i=0; i < NBKEYS; i++) in init() 196 memset(saved_key, 0, SHA_BUF_SIZ * 4 * NBKEYS); in clear_keys() 201 for (i=0; i < NBKEYS; i++) in clear_keys()
|
H A D | rawMD5_fmt_plug.c | 44 #define NBKEYS (SIMD_COEF_32 * SIMD_PARA_MD5) macro 91 #define MIN_KEYS_PER_CRYPT NBKEYS 92 #define MAX_KEYS_PER_CRYPT (NBKEYS * 16) 101 static uint32_t (*saved_key)[MD5_BUF_SIZ*NBKEYS]; 102 static uint32_t (*crypt_key)[DIGEST_SIZE/4*NBKEYS]; 120 saved_key = mem_calloc_align(self->params.max_keys_per_crypt/NBKEYS, in init() 122 crypt_key = mem_calloc_align(self->params.max_keys_per_crypt/NBKEYS, in init()
|
H A D | 7z_fmt_plug.c | 67 #define NBKEYS (SIMD_COEF_32*SIMD_PARA_SHA256) macro 74 #define MIN_KEYS_PER_CRYPT NBKEYS 75 #define MAX_KEYS_PER_CRYPT NBKEYS 141 static uint32_t (*vec_in)[2][NBKEYS*16]; 142 static uint32_t (*vec_out)[NBKEYS*8]; 566 uint32_t (*buf_in)[NBKEYS*16] = vec_in[buf_idx]; in sevenzip_kdf() 581 for (i = 0; i < NBKEYS; ++i) { in sevenzip_kdf() 619 for (i = 0; i < NBKEYS; ++i) { in sevenzip_kdf() 626 for (i = 0; i < NBKEYS; ++i) { in sevenzip_kdf() 691 while (tot_todo % NBKEYS) in crypt_all() [all …]
|
H A D | keystore_fmt_plug.c | 43 #define NBKEYS (SIMD_COEF_32 * SIMD_PARA_SHA1) macro 65 #define MIN_KEYS_PER_CRYPT NBKEYS 66 #define MAX_KEYS_PER_CRYPT (64 * NBKEYS) 90 uint32_t (*first_blk)[21][SHA_BUF_SIZ*NBKEYS]; 197 for (idx = 0; idx < NBKEYS; ++idx) { in link_salt() 213 64*NBKEYS, MEM_ALIGN_SIMD); in link_salt() 214 salt_mem_total += ((len+8)/64+1)*64*NBKEYS; in link_salt() 215 for (idx = 0; idx < NBKEYS; ++idx) { in link_salt() 224 cpo += 64*NBKEYS; in link_salt() 234 cpo += 64*NBKEYS; in link_salt()
|
H A D | leet_cc_fmt_plug.c | 54 #define NBKEYS (SIMD_COEF_64*SIMD_PARA_SHA512) macro 57 #define NBKEYS 1 macro 82 #define MIN_KEYS_PER_CRYPT NBKEYS 83 #define MAX_KEYS_PER_CRYPT (64 * NBKEYS) 226 for (index = 0; index < count; index += NBKEYS) { in crypt_all() 232 } output1[NBKEYS], output2; in crypt_all() 266 for (i = 0; i < NBKEYS; ++i) { in crypt_all()
|
H A D | rawSHA1_linkedIn_fmt_plug.c | 28 #define NBKEYS (SIMD_COEF_32 * SIMD_PARA_SHA1) macro 59 #define MIN_KEYS_PER_CRYPT NBKEYS 60 #define MAX_KEYS_PER_CRYPT NBKEYS 85 JTR_ALIGN(MEM_ALIGN_SIMD) uint32_t saved_key[SHA_BUF_SIZ*NBKEYS]; 86 JTR_ALIGN(MEM_ALIGN_SIMD) uint32_t crypt_key[BINARY_SIZE/4*NBKEYS]; 219 for (i = 0; i < NBKEYS; ++i) { in source()
|
H A D | sapB_fmt_plug.c | 40 #define NBKEYS (SIMD_COEF_32 * SIMD_PARA_MD5) macro 74 #define MIN_KEYS_PER_CRYPT NBKEYS 75 #define MAX_KEYS_PER_CRYPT NBKEYS 540 #define ti (t*NBKEYS+index) in crypt_all() 548 for (index = 0; index < NBKEYS; index++) { in crypt_all() 588 SIMDmd5body(&saved_key[t*NBKEYS*64], in crypt_all() 589 (unsigned int*)&crypt_key[t*NBKEYS*16], NULL, SSEi_MIXED_IN); in crypt_all() 594 for (index = 0; index < NBKEYS; index++) { in crypt_all() 634 SIMDmd5body(&interm_key[t*NBKEYS*64], in crypt_all() 635 (unsigned int*)&crypt_key[t*NBKEYS*16], NULL, SSEi_MIXED_IN); in crypt_all() [all …]
|
H A D | rawMD4_fmt_plug.c | 47 #define NBKEYS (SIMD_COEF_32 * SIMD_PARA_MD4) macro 93 #define MIN_KEYS_PER_CRYPT NBKEYS 94 #define MAX_KEYS_PER_CRYPT (NBKEYS * 32) 103 static uint32_t (*saved_key)[MD4_BUF_SIZ*NBKEYS]; 104 static uint32_t (*crypt_key)[DIGEST_SIZE/4*NBKEYS]; 122 saved_key = mem_calloc_align(self->params.max_keys_per_crypt/NBKEYS, in init() 124 crypt_key = mem_calloc_align(self->params.max_keys_per_crypt/NBKEYS, in init()
|
H A D | mssql-old_fmt_plug.c | 31 #define NBKEYS (SIMD_COEF_32 * SIMD_PARA_SHA1) macro 62 #define MIN_KEYS_PER_CRYPT NBKEYS 63 #define MAX_KEYS_PER_CRYPT NBKEYS 106 JTR_ALIGN(MEM_ALIGN_SIMD) char saved_key[SHA_BUF_SIZ*4*NBKEYS]; 107 JTR_ALIGN(MEM_ALIGN_SIMD) char crypt_key[DIGEST_SIZE*NBKEYS]; 108 static char plain_keys[NBKEYS][PLAINTEXT_LENGTH*3+1];
|
/dports/net-mgmt/aircrack-ng/aircrack-ng-1.5.2/src/aircrack-crypto/ |
H A D | wpapsk.c | 91 #define NBKEYS 1 macro 103 #define NBKEYS 1 macro 144 int loops = (count + NBKEYS - 1) / NBKEYS; in wpapsk_sse() 166 } buffer[NBKEYS]; in wpapsk_sse() 170 } outbuf[NBKEYS]; in wpapsk_sse() 171 SHA_CTX ctx_ipad[NBKEYS]; in wpapsk_sse() 172 SHA_CTX ctx_opad[NBKEYS]; in wpapsk_sse() 187 for (j = 0; j < NBKEYS; ++j) in wpapsk_sse() 190 buffer[j].c, in[t * NBKEYS + j].v, in[t * NBKEYS + j].length); in wpapsk_sse() 352 for (j = 0; j < NBKEYS; ++j) in wpapsk_sse() [all …]
|
/dports/deskutils/calcurse/calcurse-4.7.1/src/ |
H A D | keys.c | 50 static llist_t keys[NBKEYS]; 138 for (i = 0; i < NBKEYS; i++) in keys_init() 192 for (i = 0; i < NBKEYS; i++) { in keys_free() 208 for (i = 0; i < NBKEYS; i++) in keys_dump_defaults() 217 || key > NBKEYS, in keys_get_label() 317 if (action > NBKEYS) in add_key_str() 349 if (action > NBKEYS) in del_key_str() 512 if (binding_key < NBKEYS) { in keys_display_bindings_bar() 566 char *info[NBKEYS]; in keys_popup_info() 654 if (key > NBKEYS) in keys_popup_info() [all …]
|