-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsnow.h
76 lines (57 loc) · 1.75 KB
/
snow.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* Header file for the SNOW steganography program.
*
* Copyright (C) 1999 Matthew Kwan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
* For license text, see https://spdx.org/licenses/Apache-2.0>.
*/
#ifndef _SNOW_H
#define _SNOW_H
#include <stdio.h>
/*
* Define boolean types.
*/
typedef int BOOL;
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
/*
* Define global variables.
*/
extern BOOL compress_flag;
extern BOOL quiet_flag;
extern int line_length;
/*
* Define external functions.
*/
extern void password_set (const char *passwd);
extern BOOL message_extract (FILE *inf, FILE *outf);
extern void space_calculate (FILE *inf);
extern void compress_init (void);
extern BOOL compress_bit (int bit, FILE *inf, FILE *outf);
extern BOOL compress_flush (FILE *inf, FILE *outf);
extern void uncompress_init (void);
extern BOOL uncompress_bit (int bit, FILE *outf);
extern BOOL uncompress_flush (FILE *outf);
extern void encrypt_init (void);
extern BOOL encrypt_bit (int bit, FILE *inf, FILE *outf);
extern BOOL encrypt_flush (FILE *inf, FILE *outf);
extern void decrypt_init (void);
extern BOOL decrypt_bit (int bit, FILE *outf);
extern BOOL decrypt_flush (FILE *outf);
extern void encode_init (void);
extern BOOL encode_bit (int bit, FILE *inf, FILE *outf);
extern BOOL encode_flush (FILE *inf, FILE *outf);
#endif