GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — RTNode-HeltecV4/MD5.h at main · jrl290/RTNode-HeltecV4 Expand file tree/ Copy pathMD5.hMore file actions executable file ·52 lines (44 loc) · 1.45 KB / Copy pathMD5.hFile metadata and controlsexecutable file ·52 lines (44 loc) · 1.45 KB 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 #ifndef MD5_h #define MD5_h #include "Arduino.h" /* * This is an OpenSSL-compatible implementation of the RSA Data Security, * Inc. MD5 Message-Digest Algorithm (RFC 1321). * * Written by Solar Designer <solar at openwall.com> in 2001, and placed * in the public domain. There's absolutely no warranty. * * This differs from Colin Plumb's older public domain implementation in * that no 32-bit integer data type is required, there's no compile-time * endianness configuration, and the function prototypes match OpenSSL's. * The primary goals are portability and ease of use. * * This implementation is meant to be fast, but not as fast as possible. * Some known optimizations are not included to reduce source code size * and avoid compile-time configuration. */ /* * Updated by Scott MacVicar for arduino */ #include <string.h> typedef unsigned long MD5_u32plus; typedef struct { MD5_u32plus lo, hi; MD5_u32plus a, b, c, d; unsigned char buffer[64]; MD5_u32plus block[16]; } MD5_CTX; class MD5 { public: MD5(); static unsigned char* make_hash(char *arg); static unsigned char* make_hash(char *arg,size_t size); static char* make_digest(const unsigned char *digest, int len); static const void *body(void *ctxBuf, const void *data, size_t size); static void MD5Init(void *ctxBuf); static void MD5Final(unsigned char *result, void *ctxBuf); static void MD5Update(void *ctxBuf, const void *data, size_t size); }; #endif |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |