base64.h.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?xml version='1.0' encoding='iso-8859-1'?>
  2. <!doctype html public '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
  3. <html xmlns='http://www.w3c.org/1999/xhtml' lang='en-us'>
  4. <head>
  5. <title>
  6. base64.h
  7. </title>
  8. <meta http-equiv='content-type' content='text/html;iso-8859-1'/>
  9. <meta name='generator' content='motley-tools 1.9.4 13:40:33 Feb 18 2015'/>
  10. <meta name='author' content='cmaier@cmassoc.net'/>
  11. <meta name='robots' content='noindex,nofollow'/>
  12. <link href='toolkit.css' rel='stylesheet' type='text/css'/>
  13. </head>
  14. <body>
  15. <div class='headerlink'>
  16. [<a href='toolkit.html' title=' Index '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='bittypes.h.html' title=' bittypes.h '>NEXT</a>]
  19. </div>
  20. <pre>
  21. /*====================================================================*
  22. *
  23. * base64.h - base64 encode/decode definitions and declarations;
  24. *
  25. * Motley Tools by Charles Maier &lt;cmaier@cmassoc.net&gt;;
  26. * Copyright 2001-2006 by Charles Maier Associates;
  27. * Licensed under the Internet Software Consortium License;
  28. *
  29. *--------------------------------------------------------------------*/
  30. #ifndef BASE64_HEADER
  31. #define BASE64_HEADER
  32. /*====================================================================*
  33. *
  34. *--------------------------------------------------------------------*/
  35. #include &lt;unistd.h&gt;
  36. #include &lt;stdio.h&gt;
  37. /*====================================================================*
  38. * constants;
  39. *--------------------------------------------------------------------*/
  40. #define BASE64_CHARSET &quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&quot;
  41. #define BASE64_BYTEMASK 0xFF
  42. #define BASE64_CHARMASK 0x3F
  43. #define BASE64_WORDSIZE 32
  44. #define BASE64_BYTESIZE 8
  45. #define BASE64_CHARSIZE 6
  46. /*====================================================================*
  47. * encode/decode functions;
  48. *--------------------------------------------------------------------*/
  49. void b64dump (void const * memory, size_t extent, size_t column, FILE *fp);
  50. /*====================================================================*
  51. *
  52. *--------------------------------------------------------------------*/
  53. #endif
  54. </pre>
  55. <div class='footerlink'>
  56. [<a href='toolkit.html' title=' Index '>PREV</a>]
  57. [<a href='toolkit.html' title=' Index '>HOME</a>]
  58. [<a href='bittypes.h.html' title=' bittypes.h '>NEXT</a>]
  59. </div>
  60. </body>
  61. </html>