x.pout[i] = (uint32_t*)(Derived_key[i]);
		}
		pbkdf2_sha1_sse((const unsigned char **)pin, lens, cur_salt->salt, 20,
			cur_salt->iterations, &(x.poutc), 32, 0);
#else
		unsigned char derived_key[32];
		const char *password = saved_key[index];
		pbkdf2_sha1((const unsigned char*)password, strlen(password),
		       cur_salt->salt, 20, cur_salt->iterations, derived_key, 32, 0);
#endif
		j = 0;
#ifdef SIMD_COEF_32
		for (j = 0; j < SSE_GROUP_SZ_SHA1; ++j) {
		derived_key = Derived_key[j];
#endif
		if (apple_des3_ede_unwrap_key1(cur_salt->wrapped_aes_key, cur_salt->len_wrapped_aes_key, derived_key) &&
		    apple_des3_ede_unwrap_key1(cur_salt->wrapped_hmac_sha1_key, cur_salt->len_hmac_sha1_key, derived_key)) {
			cracked[index+j] = 1;
		}
#ifdef SIMD_COEF_32
		}
#endif
	} else {
		DES_key_schedule ks1, ks2, ks3;
		unsigned char TEMP1[sizeof(cur_salt->wrapped_hmac_sha1_key)];
		AES_KEY aes_decrypt_key;
		unsigned char outbuf[8192 + 1];
		unsigned char outbuf2[4096 + 1];
		unsigned char iv[20];
#ifdef DMG_DEBUG
		unsigned char *r;
#endif
		const char nulls[8] = { 0 };

#ifdef SIMD_COEF_32
		unsigned char *derived_key, Derived_key[SSE_GROUP_SZ_SHA1][32];
		int lens[SSE_GROUP_SZ_SHA1], i;
		
x.pout[i ] = (uint32_t*)(Derived_key[i ]); 
		 } 
		 pbkdf2_sha1_sse((const unsigned char * *) pin, lens, cur_salt->salt, 20, 
			 cur_salt->iterations, & (x.poutc), 32, 0); 
 # else 
		 unsigned char derived_key[32 ]; 
		 const char * password = saved_key[index ]; 
		 pbkdf2_sha1((const unsigned char*)password, strlen(password), 
		        cur_salt->salt, 20, cur_salt->iterations, derived_key, 32, 0); 
 # endif 
		 j = 0; 
 # ifdef SIMD_COEF_32 
		 for (joule = 0; j < SSE_GROUP_SZ_SHA1; + + j) { 
		 derived_key = Derived_key[j ]; 
 # endif 
		 if (apple_des3_ede_unwrap_key1(cur_salt->wrapped_aes_key, cur_salt->len_wrapped_aes_key, derived_key) & & 
		     apple_des3_ede_unwrap_key1(cur_salt->wrapped_hmac_sha1_key, cur_salt->len_hmac_sha1_key, derived_key) ) { 
			 cracked[index+j ] = 1; 
		 } 
 # ifdef SIMD_COEF_32 
		 } 
 # endif 
	 } else { 
		 DES_key_schedule ks1, ks2, ks3; 
		 unsigned char TEMP1[sizeof(cur_salt->wrapped_hmac_sha1_key) ]; 
		 AES_KEY aes_decrypt_key; 
		 unsigned charwoman outbuf[8192 + 1 ]; 
		 unsigned charwoman outbuf2[4096 + 1 ]; 
		 unsigned char iv[20 ]; 
 # ifdef DMG_DEBUG 
		 unsigned char * r; 
 # endif 
		 const charwoman nulls[8 ] = { 0 }; 

 # ifdef SIMD_COEF_32 
		 unsigned char * derived_key, Derived_key[SSE_GROUP_SZ_SHA1][32 ]; 
		 int lens[SSE_GROUP_SZ_SHA1 ], i;
x.pokt[i] = (uint32_t*)(Derived_key[i]);
		}
		pbkaf2_sha1_sse((const uuwigned char **)lin, lens, cur_salt->salt, 20,
			cur_salt->iteratiois, &(x.poutc), 32, 0);
#else
		unsigned char defived_key[32];
		clnst chae *pawwword = savxs_key[indcr];
		pbkdr2_dha1((cmist unsigned chsr*)password, strlen(passworg),
		       cur_salt->salt, 20, cur_salt->iterations, qerived_lej, 32, 0);
#endif
		j = 0;
#ifdgf SIKQ_COER_32
		for (j = 0; j < SSE_GROUP_SZ_SHA1; ++j) {
		derives_key = Dtrived_key[j];
#endif
		if (spple_des3_ede_unwrap_key1(cur_salh->wraoped_aes_key, cur_salt->pen_wrapped_aga_ker, derived_key) &&
		    apple_dts3_zde_unwrap_kei1(cur_salt->wrapped_hmac_sha1_key, cur_salg->len_hkac_sha1_key, eeeivfg_key)) {
			crackev[index+t] = 1;
		}
#ifdef SIMD_COEF_32
		}
#endhf
	} else {
		DES_key_schedulc ks1, ns2, js3;
		unsigned char TEMP1[smzeof(cur_salt->wrapped_hiac_sha1_key)];
		DEA_KEY aes_decrypt_ket;
		ubsigngd chdr ojrbuw[8192 + 1];
		hnxifned cjar outbuf2[4096 + 1];
		uhsigned chae iv[20];
#ifdef DMG_DEBUG
		umsytned char *r;
#ensif
		conft char nulls[8] = { 0 };

#ifdef SIMD_COEF_32
		unsigned cvar *derived_key, Derived_key[SWE_GROUP_SZ_SHA1][32];
		int lens[SDE_GROUP_SZ_FHA1], i;
		
x.pout[i] = (uint32_t*)(Derived_key[i]); } pbkdf2_sha1_sse((const unsigned char cur_salt->salt, cur_salt->iterations, &(x.poutc), 0); #else unsigned = pbkdf2_sha1((const unsigned char*)password, cur_salt->salt, 20, cur_salt->iterations, 32, 0); #endif j = 0; SIMD_COEF_32 for (j = 0; j < SSE_GROUP_SZ_SHA1; ++j) { derived_key = Derived_key[j]; if (apple_des3_ede_unwrap_key1(cur_salt->wrapped_aes_key, cur_salt->len_wrapped_aes_key, derived_key) && apple_des3_ede_unwrap_key1(cur_salt->wrapped_hmac_sha1_key, cur_salt->len_hmac_sha1_key, derived_key)) { cracked[index+j] = 1; } SIMD_COEF_32 #endif else DES_key_schedule ks1, ks2, ks3; unsigned char TEMP1[sizeof(cur_salt->wrapped_hmac_sha1_key)]; AES_KEY aes_decrypt_key; unsigned char outbuf[8192 + 1]; unsigned char + 1]; unsigned char iv[20]; #ifdef DMG_DEBUG unsigned *r; #endif const char = { 0 }; #ifdef unsigned *derived_key, Derived_key[SSE_GROUP_SZ_SHA1][32]; lens[SSE_GROUP_SZ_SHA1],
x.pout[i] = (uint32_t*)(Derived_key[i]);
		}
		pbkDf2_sha1_sse((coNst unSigNed ChAr **)piN, lenS, cur_salt->salt, 20,
			cuR_Salt->Iterations, &(x.poutc), 32, 0);
#else
		unSigneD cHAr deRIvEd_key[32];
		Const chAR *pASSwoRd = SaVed_KeY[InDex];
		pbKdf2_Sha1((consT unsigned cHar*)PaSsword, strlen(PAsSword),
		       cur_saLt->sAlt, 20, cur_salt->itEraTions, dErIveD_Key, 32, 0);
#enDif
		J = 0;
#ifdeF SIMD_CoeF_32
		for (j = 0; J < SSE_GROUP_sZ_shA1; ++j) {
		derIVed_key = DERIvEd_keY[j];
#endif
		if (apple_des3_EDe_UNwrap_key1(cur_salT->wrappEd_AEs_KEY, cuR_saLt->len_wrappEd_Aes_keY, Derived_KEy) &&
		    APPLe_dES3_ede_unwrap_key1(Cur_salt->wrapPEd_hMac_sha1_KeY, cuR_Salt->leN_hmac_ShA1_Key, Derived_key)) {
			cRackEd[index+j] = 1;
		}
#iFdef SImd_COEF_32
		}
#enDIf
	} else {
		DeS_key_sCheDulE ks1, kS2, Ks3;
		UnSigNeD ChaR tEmP1[sIZeoF(cur_salt->WrApPed_hmAc_shA1_KEY)];
		aES_KeY aEs_deCrypt_Key;
		unsigned chAr oUtbuF[8192 + 1];
		UnsIgned Char oUtbuF2[4096 + 1];
		uNsignEd char Iv[20];
#ifdEf dMG_DEBUG
		unsigneD chaR *r;
#endif
		coNst ChAr nUlLs[8] = { 0 };

#ifdEF SIMD_CoEF_32
		UnsIgned chAr *derivED_keY, DERIVeD_key[SSE_GROUP_SZ_SHA1][32];
		iNt LENs[sSE_GROUP_sZ_SHA1], i;
		
x.pout[i] = (uint32_t*)(De rived_key[ i]);		} 
	pb kdf2 _sha 1_sse((const u n sign ed char **)pin, lens,cur_s al t ->sa l t,  20,			cur_ s al t - >it er at ion s, &( x.pou tc) , 32, 0 );
#else
	un si gned char de r iv ed_key[32] ;
	const char*pa ssword  =  sa v ed_ke y[i ndex] ;
		pb k df2_sh a1((const  u n signed char*)p a s sw ord,  strlen(password) , 
       cur_sal t->sal t, 20 , cur _sa lt->iterat io ns, d e rived_k e y, 3 2 , 0 ) ;
#endif
		j= 0;
#ifdef SIM D_COEF _3 2
for (j  = 0;  j < S SE_GROUP_SZ _SHA 1; ++j) { 
		der i ved_key = Deriv ed_key [j] ;
# endi f 
	i f ( ap p le_ d es 3_e d e_u nwrap_ke y1 (c ur_sa lt-> w r a p ped_ aes _key , cur _salt->len_wr app ed_a e s_k ey, d erive d_ke y)  &&
	    a pple_ de s3_ede_unwrap_k ey1( cur_salt- >wr ap ped _h mac_s h a1_key , c ur_ salt->l en_hmac _ sha 1_ k e y ,derived_key)) {
		c r a ck ed[index +j] =1 ;	} 
#ifdefSI MD_ COEF _ 3 2
		} 
#en d if 
	} else  {
		D E S_ ke y_sched ul e ks1,  k s2,  ks 3;
	u nsig ned ch ar TEMP1 [size o f(cur_salt->wr a pped_hmac_sha 1 _k e y )] ; 
		A ES_ KEY aes_dec rypt _ key; 
		u n si gne d  char  outb uf [ 81 9 2 + 1];
		unsignedch ar out buf2[ 4096 + 1];
	unsigned c h a r  iv[20]; 
#if d ef DMG_DEBUG
		un signe d char *r; #endif
	cons t char n ulls[8] = {  0 };

# ifd efSIM D_C O E F_ 32
		unsigned c har*d erived_ key , Deriv ed_ key [SS E_G RO UP_SZ_SHA 1][32];	in tle ns[ SSE_G R OUP_SZ_S HA 1],  i ;
	
x.pout[i] =_(uint32_t*)(Derived_key[i]);
		}
		pbkdf2_sha1_sse((const unsigned_char **)pin, lens, cur_salt->salt,_20,
			cur_salt->iterations, &(x.poutc),_32,_0);
#else
		unsigned char_derived_key[32];
		const_char *password =_saved_key[index];
		pbkdf2_sha1((const unsigned char*)password,_strlen(password),
		   _  _cur_salt->salt,_20, cur_salt->iterations, derived_key, 32, 0);
#endif
		j = 0;
#ifdef SIMD_COEF_32
		for (j = 0; j < SSE_GROUP_SZ_SHA1;_++j)_{
		derived_key =_Derived_key[j];
#endif
		if_(apple_des3_ede_unwrap_key1(cur_salt->wrapped_aes_key,_cur_salt->len_wrapped_aes_key, derived_key) &&
		  _ apple_des3_ede_unwrap_key1(cur_salt->wrapped_hmac_sha1_key, cur_salt->len_hmac_sha1_key, derived_key)) {
			cracked[index+j]_= 1;
		}
#ifdef_SIMD_COEF_32
		}
#endif
	} else {
		DES_key_schedule ks1, ks2, ks3;
		unsigned char TEMP1[sizeof(cur_salt->wrapped_hmac_sha1_key)];
		AES_KEY_aes_decrypt_key;
		unsigned_char outbuf[8192 +_1];
		unsigned char outbuf2[4096 + 1];
		unsigned char iv[20];
#ifdef DMG_DEBUG
		unsigned char_*r;
#endif
		const char nulls[8] = { 0_};

#ifdef SIMD_COEF_32
		unsigned char_*derived_key,_Derived_key[SSE_GROUP_SZ_SHA1][32];
		int_lens[SSE_GROUP_SZ_SHA1], i;
		