crypto.c File Reference

WPA Supplicant / wrapper functions for libcrypto. More...

#include "includes.h"
#include <openssl/opensslv.h>
#include <openssl/md4.h>
#include <openssl/md5.h>
#include <openssl/sha.h>
#include <openssl/des.h>
#include <openssl/aes.h>
#include "common.h"
#include "crypto.h"

Include dependency graph for crypto.c:

Go to the source code of this file.

Defines

#define DES_key_schedule   des_key_schedule
#define DES_cblock   des_cblock
#define DES_set_key(key, schedule)   des_set_key((key), *(schedule))
#define DES_ecb_encrypt(input, output, ks, enc)   des_ecb_encrypt((input), (output), *(ks), (enc))

Functions

void md4_vector (size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac)
 MD4 hash for data vector.
void des_encrypt (const u8 *clear, const u8 *key, u8 *cypher)
 Encrypt one block with DES.


Detailed Description

WPA Supplicant / wrapper functions for libcrypto.

Copyright
Copyright (c) 2004-2005, Jouni Malinen <[email protected]>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Alternatively, this software may be distributed under the terms of BSD license.

See README and COPYING for more details.

Definition in file crypto.c.


Function Documentation

void des_encrypt const u8 *  clear,
const u8 *  key,
u8 *  cypher
 

Encrypt one block with DES.

Parameters:
clear 8 octets (in)
key 7 octets (in) (no parity bits included)
cypher 8 octets (out)

Definition at line 48 of file crypto.c.

void md4_vector size_t  num_elem,
const u8 *  addr[],
const size_t *  len,
u8 *  mac
 

MD4 hash for data vector.

Parameters:
num_elem Number of elements in the data vector
addr Pointers to the data areas
len Lengths of the data blocks
mac Buffer for the hash

Definition at line 36 of file crypto.c.


Generated on Sun Dec 31 13:49:58 2006 for wpa_supplicant by  doxygen 1.4.2