diff options
author | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-11-26 14:19:43 +0000 |
---|---|---|
committer | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-11-26 14:19:43 +0000 |
commit | 7aff1e4cb053394db57c2814d5fe1e6493e0cc75 (patch) | |
tree | c8585e44049b37e4da152495c954242204c2c38d /cryptopp/base64.h | |
parent | 6f3d69266933ef120d229e0daf2da164b77214d0 (diff) |
Project folders rename part 2
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@214 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'cryptopp/base64.h')
-rw-r--r-- | cryptopp/base64.h | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/cryptopp/base64.h b/cryptopp/base64.h deleted file mode 100644 index b075627..0000000 --- a/cryptopp/base64.h +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef __BASE_64__
-#define __BASE_64__
-
-#define BPAD '=' /* Padding for odd-sized output */
-#define BERR 0xFF /* Illegal char marker */
-#define BEOF 0x7F /* EOF marker (padding char or EOL) */
-
-typedef unsigned char byte;
-
-static const byte asciiToBin64[] =
- { BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BEOF, BERR, BERR, BEOF, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, 0x3E, BERR, BERR, BERR, 0x3F,
- 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B,
- 0x3C, 0x3D, BERR, BERR, BERR, BEOF, BERR, BERR,
- BERR, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06,
- 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E,
- 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16,
- 0x17, 0x18, 0x19, BERR, BERR, BERR, BERR, BERR,
- BERR, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20,
- 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28,
- 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30,
- 0x31, 0x32, 0x33, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR,
- BERR, BERR, BERR, BERR, BERR, BERR, BERR, BERR
- };
-
-static const byte binToAscii64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
-
-char *base64encode(const char *, const int);
-char *base64decode(const char *, int *);
-
-string base64encode(const string);
-string base64decode(const string);
-
-string base64decode(const char *);
-
-#define encode64(data) binToAscii64[data]
-#define decode64(data) asciiToBin64[data]
-
-#endif
|