$search

sha1-internal.c File Reference

#include "includes.h"
#include "common.h"
#include "sha1.h"
#include "sha1_i.h"
#include "md5.h"
#include "crypto.h"
Include dependency graph for sha1-internal.c:

Go to the source code of this file.

Defines

#define blk(i)
#define blk0(i)
#define R0(v, w, x, y, z, i)
#define R1(v, w, x, y, z, i)
#define R2(v, w, x, y, z, i)   z += (w ^ x ^ y) + blk(i) + 0x6ED9EBA1 + rol(v, 5); w = rol(w, 30);
#define R3(v, w, x, y, z, i)
#define R4(v, w, x, y, z, i)
#define rol(value, bits)   (((value) << (bits)) | ((value) >> (32 - (bits))))
#define SHA1HANDSOFF

Typedefs

typedef struct SHA1Context SHA1_CTX

Functions

int sha1_vector (size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac)
void SHA1Final (unsigned char digest[20], SHA1_CTX *context)
void SHA1Init (SHA1_CTX *context)
void SHA1Transform (u32 state[5], const unsigned char buffer[64])
void SHA1Update (SHA1_CTX *context, const void *_data, u32 len)

Define Documentation

#define blk (  ) 
Value:
(block->l[i & 15] = rol(block->l[(i + 13) & 15] ^ \
        block->l[(i + 8) & 15] ^ block->l[(i + 2) & 15] ^ block->l[i & 15], 1))

Definition at line 141 of file sha1-internal.c.

#define blk0 (  ) 
Value:
(block->l[i] = (rol(block->l[i], 24) & 0xFF00FF00) | \
        (rol(block->l[i], 8) & 0x00FF00FF))

Definition at line 136 of file sha1-internal.c.

#define R0 ( v,
w,
x,
y,
z,
 ) 
Value:
z += ((w & (x ^ y)) ^ y) + blk0(i) + 0x5A827999 + rol(v, 5); \
        w = rol(w, 30);

Definition at line 145 of file sha1-internal.c.

#define R1 ( v,
w,
x,
y,
z,
 ) 
Value:
z += ((w & (x ^ y)) ^ y) + blk(i) + 0x5A827999 + rol(v, 5); \
        w = rol(w, 30);

Definition at line 148 of file sha1-internal.c.

#define R2 ( v,
w,
x,
y,
z,
 )     z += (w ^ x ^ y) + blk(i) + 0x6ED9EBA1 + rol(v, 5); w = rol(w, 30);

Definition at line 151 of file sha1-internal.c.

#define R3 ( v,
w,
x,
y,
z,
 ) 
Value:
z += (((w | x) & y) | (w & x)) + blk(i) + 0x8F1BBCDC + rol(v, 5); \
        w = rol(w, 30);

Definition at line 153 of file sha1-internal.c.

#define R4 ( v,
w,
x,
y,
z,
 ) 
Value:
z += (w ^ x ^ y) + blk(i) + 0xCA62C1D6 + rol(v, 5); \
        w=rol(w, 30);

Definition at line 156 of file sha1-internal.c.

#define rol ( value,
bits   )     (((value) << (bits)) | ((value) >> (32 - (bits))))

Definition at line 131 of file sha1-internal.c.

#define SHA1HANDSOFF

Definition at line 129 of file sha1-internal.c.


Typedef Documentation

typedef struct SHA1Context SHA1_CTX

Definition at line 23 of file sha1-internal.c.


Function Documentation

int sha1_vector ( size_t  num_elem,
const u8 addr[],
const size_t *  len,
u8 mac 
)

sha1_vector - SHA-1 hash for data vector : Number of elements in the data vector : Pointers to the data areas : Lengths of the data blocks : Buffer for the hash Returns: 0 on success, -1 of failure

Definition at line 36 of file sha1-internal.c.

void SHA1Final ( unsigned char  digest[20],
SHA1_CTX context 
)

Definition at line 279 of file sha1-internal.c.

void SHA1Init ( SHA1_CTX context  ) 

Definition at line 235 of file sha1-internal.c.

void SHA1Transform ( u32  state[5],
const unsigned char  buffer[64] 
)

Definition at line 177 of file sha1-internal.c.

void SHA1Update ( SHA1_CTX context,
const void *  _data,
u32  len 
)

Definition at line 249 of file sha1-internal.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Mar 1 16:00:38 2013