md5.c File Reference

Go to the source code of this file.

Defines

#define SWAP(n)   (n)
#define BLOCKSIZE   4096
#define FF(b, c, d)   (d ^ (b & (c ^ d)))
#define FG(b, c, d)   FF (d, b, c)
#define FH(b, c, d)   (b ^ c ^ d)
#define FI(b, c, d)   (c ^ (b | ~d))
#define OP(a, b, c, d, s, T)
#define CYCLIC(w, s)   (w = (w << s) | (w >> (32 - s)))
#define OP(f, a, b, c, d, k, s, T)

Functions

void md5_init_ctx (ctx) struct md5_ctx *ctx

Variables

void * resbuf
void * resblock
size_t len
md5_ctx * ctx


Define Documentation

#define BLOCKSIZE   4096
 

#define CYCLIC (  w,
s    )     (w = (w << s) | (w >> (32 - s)))
 

#define FF (  b,
c,
d    )     (d ^ (b & (c ^ d)))
 

#define FG (  b,
c,
d    )     FF (d, b, c)
 

#define FH (  b,
c,
d    )     (b ^ c ^ d)
 

#define FI (  b,
c,
d    )     (c ^ (b | ~d))
 

#define OP (  f,
a,
b,
c,
d,
k,
s,
T    ) 
 

Value:

do                              \
    {                               \
      a += f (b, c, d) + correct_words[k] + T;          \
      CYCLIC (a, s);                        \
      a += b;                           \
    }                               \
      while (0)

#define OP (  a,
b,
c,
d,
s,
T    ) 
 

Value:

do                              \
        {                               \
      a += FF (b, c, d) + (*cwp++ = SWAP (*words)) + T;     \
      ++words;                          \
      CYCLIC (a, s);                        \
      a += b;                           \
        }                               \
      while (0)

#define SWAP (  n    )     (n)
 

Definition at line 42 of file md5.c.


Function Documentation

void md5_init_ctx (  ctx    ) 
 


Variable Documentation

struct md5_ctx * ctx
 

Definition at line 258 of file md5.c.

size_t len
 

Definition at line 257 of file md5.c.

Referenced by accept_ssl_socket(), gets_ssl_socket(), init_process_info_sysdep(), port_recv(), port_send(), printf_ssl_socket(), recv_ssl_socket(), send_ssl_socket(), sock_recv(), and sock_send().

void * resblock
 

Definition at line 181 of file md5.c.

void * resbuf
 

Definition at line 92 of file md5.c.