blob: fd277d28abb7f071a98a2ed912e134653159e9d0 (
plain)
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
|
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#ifndef YSTATE_H
#define YSTATE_H
#ifdef YARROW_SAVE_STATE
#include "ycipher.h"
#include "ytypes.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct Yarrow_STATE {
byte seed[CIPHER_KEY_SIZE * 2]; /* 2k bits saved to seed file */
} Yarrow_STATE;
int STATE_Save( const char *filename, const struct Yarrow_STATE* state );
int STATE_Load( const char *filename, struct Yarrow_STATE* state );
#ifdef __cplusplus
}
#endif
#endif /* YARROW_SAVE_STATE */
#endif /* YSTATE_H */
|