-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhillclimb.h
33 lines (23 loc) · 840 Bytes
/
hillclimb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef HILLCLIMB_H
#define HILLCLIMB_H
#include <stdio.h>
#include "key.h"
typedef struct {
int s1; /* positions of letters to be swapped */
int s2;
int u1; /* positions of letters to be unswapped */
int u2;
} Change;
enum { NONE, KZ_IK, KZ_IZ, IX_KI, IX_KX, IXKZ_IK, IXKZ_IZ, IXKZ_IKXZ,
IXKZ_IZXK, RESWAP };
void hillclimb( const Key *from, const Key *to, const Key *ckey_res, const Key *gkey_res,
int sw_mode, int max_pass, int firstpass, int max_score, int resume,
FILE *outfile, int act_on_sig, int *ciphertext, int len );
#endif
/*
* This file is part of enigma-suite-0.76, which is distributed under the terms
* of the General Public License (GPL), version 2. See doc/COPYING for details.
*
* Copyright (C) 2005 Stefan Krah
*
*/