static void init(struct fmt_main *self) { #if DES_BS DES_bs_init(0, DES_bs_cpt); #if DES_bs_mt fmt_DES.params.min_keys_per_crypt = DES_bs_min_kpc; fmt_DES.params.max_keys_per_crypt = DES_bs_max_kpc; #endif #else DES_std_init(); #endif }
static void init(void) { DES_std_init(); #if DES_BS DES_bs_init(0); DES_std_set_salt(0); DES_count = 1; #else current_salt = -1; #endif }
static void init(struct fmt_main *self) { DES_std_init(); #if DES_BS DES_bs_init(0, (DES_bs_cpt + 28) / 29); #if DES_bs_mt fmt_BSDI.params.min_keys_per_crypt = DES_bs_min_kpc; fmt_BSDI.params.max_keys_per_crypt = DES_bs_max_kpc; #endif DES_std_set_salt(0); DES_count = 1; #else current_salt = -1; #endif buffer = mem_alloc_tiny( sizeof(*buffer) * fmt_BSDI.params.max_keys_per_crypt, MEM_ALIGN_CACHE); }
static void init(struct fmt_main *self) { ARCH_WORD_32 block[2]; #if !ARCH_LITTLE_ENDIAN ARCH_WORD_32 tmp; #endif DES_std_init(); AFS_salt_binary = DES_std_get_salt(AFS_SALT); DES_raw_set_key(AFS_long_key); memcpy(AFS_long_KS.data, DES_KS_current, sizeof(DES_KS)); memcpy(block, AFS_long_IV, 8); #if !ARCH_LITTLE_ENDIAN AFS_swap(block[0], block[0]); AFS_swap(block[1], block[1]); #endif DES_std_set_block(block[0], block[1]); memcpy(AFS_long_IV_binary, DES_IV, sizeof(DES_binary)); }