#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.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. |
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file crypto.c.
|
Encrypt one block with DES.
|
|
MD4 hash for data vector.
|