sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
md5.c File Reference
#include <string.h>
#include "md5.h"

Macros

#define GET_UINT32(n, b, i)
 
#define PUT_UINT32(n, b, i)
 
#define S(x, n)   ((x << n) | ((x & 0xFFFFFFFF) >> (32 - n)))
 
#define P(a, b, c, d, k, s, t)
 
#define F(x, y, z)   (z ^ (x & (y ^ z)))
 
#define F(x, y, z)   (y ^ (z & (x ^ y)))
 
#define F(x, y, z)   (x ^ y ^ z)
 
#define F(x, y, z)   (y ^ (x | ~z))
 

Functions

void md5_starts (md5_context *ctx)
 
void md5_process (md5_context *ctx, uint8 data[64])
 
void md5_update (md5_context *ctx, uint8 *input, uint32 length)
 
void md5_finish (md5_context *ctx, uint8 digest[16])
 

Macro Definition Documentation

#define F (   x,
  y,
 
)    (z ^ (x & (y ^ z)))
#define F (   x,
  y,
 
)    (y ^ (z & (x ^ y)))
#define F (   x,
  y,
 
)    (x ^ y ^ z)
#define F (   x,
  y,
 
)    (y ^ (x | ~z))
#define GET_UINT32 (   n,
  b,
 
)
Value:
{ \
(n) = ( (uint32) (b)[(i) ] ) \
| ( (uint32) (b)[(i) + 1] << 8 ) \
| ( (uint32) (b)[(i) + 2] << 16 ) \
| ( (uint32) (b)[(i) + 3] << 24 ); \
}
#define uint32
Definition: md5.h:9
int32_t int16_t b
Definition: IMU.cpp:172
int i
Definition: ser-log.py:25
float n
Definition: OWGeneric_SensorStation.ino:147
#define P (   a,
  b,
  c,
  d,
  k,
  s,
  t 
)
Value:
{ \
a += F(b,c,d) + X[k] + t; a = S(a,s) + b; \
}
#define F(x, y, z)
unsigned long d
Definition: OWGeneric_DangerShield.ino:116
#define S(x, n)
float X
Definition: OWGeneric_SensorStation.ino:147
int32_t int16_t b
Definition: IMU.cpp:172
tuple s
Definition: ser-mon-AS7265X.py:36
unsigned long t
Definition: OWGeneric_DangerShield.ino:116
#define PUT_UINT32 (   n,
  b,
 
)
Value:
{ \
(b)[(i) ] = (uint8) ( (n) ); \
(b)[(i) + 1] = (uint8) ( (n) >> 8 ); \
(b)[(i) + 2] = (uint8) ( (n) >> 16 ); \
(b)[(i) + 3] = (uint8) ( (n) >> 24 ); \
}
#define uint8
Definition: md5.h:5
int32_t int16_t b
Definition: IMU.cpp:172
int i
Definition: ser-log.py:25
float n
Definition: OWGeneric_SensorStation.ino:147
#define S (   x,
  n 
)    ((x << n) | ((x & 0xFFFFFFFF) >> (32 - n)))

Function Documentation

void md5_finish ( md5_context ctx,
uint8  digest[16] 
)
void md5_process ( md5_context ctx,
uint8  data[64] 
)
void md5_starts ( md5_context ctx)
void md5_update ( md5_context ctx,
uint8 input,
uint32  length 
)