File: encode.h

package info (click to toggle)
fdclone 3.01b-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 4,772 kB
  • ctags: 8,674
  • sloc: ansic: 100,552; makefile: 4,497; sh: 1,480; sed: 224
file content (25 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (4)
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
/*
 *	encode.h
 *
 *	definitions & function prototype declarations for "md5.c" & "base64.c"
 */

#include "stream.h"

#define	MD5_BUFSIZ		(128 / 32)
#define	MD5_BLOCKS		16
#define	MD5_FILBUFSIZ		512
#define	BASE64_ORGSIZ		3
#define	BASE64_ENCSIZ		4

typedef struct _md5_t {
	u_long cl, ch;
	u_long sum[MD5_BUFSIZ];
	u_long x[MD5_BLOCKS];
	int n, b;
} md5_t;

extern VOID md5encode __P_((u_char *, ALLOC_T *, CONST u_char *, ALLOC_T));
extern int md5fencode __P_((u_char *, ALLOC_T *, XFILE *));
extern int base64encode __P_((char *, ALLOC_T, CONST u_char *, ALLOC_T));
extern int base64decode __P_((u_char *, ALLOC_T *, CONST char *, ALLOC_T));