summaryrefslogtreecommitdiffstats
path: root/all_pairs/source/rijndael_enc/rijndael_enc_libc.h
blob: 6a01397ee604797958cb2bab9910b47a39d42d72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef RIJNDAEL_ENC_LIBC_H
#define RIJNDAEL_ENC_LIBC_H

int rijndael_enc_toupper ( int c );

enum _Origin_ { RIJNDAEL_ENC_SEEK_SET, RIJNDAEL_ENC_SEEK_CUR, RIJNDAEL_ENC_SEEK_END };
typedef enum _Origin_ Origin;
struct rijndael_enc_FILE {
  unsigned char *data;
  unsigned long size;
  unsigned cur_pos;
};

unsigned long rijndael_enc_fread ( void *ptr, unsigned long size,
                                   unsigned long count, struct rijndael_enc_FILE *stream );
unsigned long rijndael_enc_fwrite ( const void *ptr, unsigned long size,
                                    unsigned long count, struct rijndael_enc_FILE *stream );
int    rijndael_enc_fseek  ( struct rijndael_enc_FILE *stream, long int offset,
                             Origin origin );
int    rijndael_enc_fgetpos( struct rijndael_enc_FILE *stream,
                             unsigned *position );
int    rijndael_enc_feof   ( struct rijndael_enc_FILE *stream );

#endif  // RIJNDAEL_ENC_LIBC_H