diff options
Diffstat (limited to 'baseline/source/rijndael_enc/rijndael_enc_libc.h')
-rw-r--r-- | baseline/source/rijndael_enc/rijndael_enc_libc.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/baseline/source/rijndael_enc/rijndael_enc_libc.h b/baseline/source/rijndael_enc/rijndael_enc_libc.h new file mode 100644 index 0000000..6a01397 --- /dev/null +++ b/baseline/source/rijndael_enc/rijndael_enc_libc.h | |||
@@ -0,0 +1,24 @@ | |||
1 | #ifndef RIJNDAEL_ENC_LIBC_H | ||
2 | #define RIJNDAEL_ENC_LIBC_H | ||
3 | |||
4 | int rijndael_enc_toupper ( int c ); | ||
5 | |||
6 | enum _Origin_ { RIJNDAEL_ENC_SEEK_SET, RIJNDAEL_ENC_SEEK_CUR, RIJNDAEL_ENC_SEEK_END }; | ||
7 | typedef enum _Origin_ Origin; | ||
8 | struct rijndael_enc_FILE { | ||
9 | unsigned char *data; | ||
10 | unsigned long size; | ||
11 | unsigned cur_pos; | ||
12 | }; | ||
13 | |||
14 | unsigned long rijndael_enc_fread ( void *ptr, unsigned long size, | ||
15 | unsigned long count, struct rijndael_enc_FILE *stream ); | ||
16 | unsigned long rijndael_enc_fwrite ( const void *ptr, unsigned long size, | ||
17 | unsigned long count, struct rijndael_enc_FILE *stream ); | ||
18 | int rijndael_enc_fseek ( struct rijndael_enc_FILE *stream, long int offset, | ||
19 | Origin origin ); | ||
20 | int rijndael_enc_fgetpos( struct rijndael_enc_FILE *stream, | ||
21 | unsigned *position ); | ||
22 | int rijndael_enc_feof ( struct rijndael_enc_FILE *stream ); | ||
23 | |||
24 | #endif // RIJNDAEL_ENC_LIBC_H | ||