crypto_libtomcrypt.c File Reference

WPA Supplicant / Crypto wrapper for LibTomCrypt (for internal TLSv1). More...

#include "includes.h"
#include <tomcrypt.h>
#include "common.h"
#include "crypto.h"
Include dependency graph for crypto_libtomcrypt.c:

Go to the source code of this file.

Defines

#define mp_init_multi   ltc_init_multi
#define mp_clear_multi   ltc_deinit_multi
#define mp_unsigned_bin_size(a)   ltc_mp.unsigned_size(a)
#define mp_to_unsigned_bin(a, b)   ltc_mp.unsigned_write(a, b)
#define mp_read_unsigned_bin(a, b, c)   ltc_mp.unsigned_read(a, b, c)
#define mp_exptmod(a, b, c, d)   ltc_mp.exptmod(a,b,c,d)

Functions

int 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 / Crypto wrapper for LibTomCrypt (for internal TLSv1).

Copyright
Copyright (c) 2005-2006, Jouni Malinen <j@w1.fi>

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_libtomcrypt.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 45 of file crypto_libtomcrypt.c.

int 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
Returns:
0 on success, -1 on failure

Definition at line 32 of file crypto_libtomcrypt.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:19:04 2009 for hostapd by  doxygen 1.6.1