comparison mycrypt_misc.h @ 143:5d99163f7e32 libtomcrypt-orig

import of libtomcrypt 0.99
author Matt Johnston <matt@ucc.asn.au>
date Sun, 19 Dec 2004 11:34:45 +0000
parents 7faae8f46238
children 7ed585a2c53b
comparison
equal deleted inserted replaced
15:6362d3854bb4 143:5d99163f7e32
1 /* ---- BASE64 Routines ---- */ 1 /* ---- BASE64 Routines ---- */
2 #ifdef BASE64 2 #ifdef BASE64
3 extern int base64_encode(const unsigned char *in, unsigned long len, 3 int base64_encode(const unsigned char *in, unsigned long len,
4 unsigned char *out, unsigned long *outlen); 4 unsigned char *out, unsigned long *outlen);
5 5
6 extern int base64_decode(const unsigned char *in, unsigned long len, 6 int base64_decode(const unsigned char *in, unsigned long len,
7 unsigned char *out, unsigned long *outlen); 7 unsigned char *out, unsigned long *outlen);
8 #endif 8 #endif
9 9
10 /* ---- MEM routines ---- */ 10 /* ---- MEM routines ---- */
11 extern void zeromem(void *dst, size_t len); 11 void zeromem(void *dst, size_t len);
12 extern void burn_stack(unsigned long len); 12 void burn_stack(unsigned long len);
13 13
14 extern const char *error_to_string(int err); 14 const char *error_to_string(int err);
15 extern int mpi_to_ltc_error(int err); 15 int mpi_to_ltc_error(int err);
16 16
17 extern const char *crypt_build_settings; 17 extern const char *crypt_build_settings;