source
code documentation
des.h File Reference
Detailed Description
Header of DES and 3DES cipher.
- Author:
- Niklaus Schild <n.schild@gmx.ch>
This document is part of embedded IPsec
Copyright (c) 2003 Niklaus Schild and Christian Scheurer, HTI Biel/Bienne
All rights reserved.
This file contains code from the OpenSSL Project
portions Copyright (c) 1998-2003 OpenSSL (www.openssl.org)
Definition in file des.h.
#include "ipsec/types.h"
Go to the source code of this file.
Define Documentation
|
defines decryption for the des function
Definition at line 69 of file des.h. |
|
defines encryption for the des function
Definition at line 68 of file des.h. |
|
Definition at line 54 of file des.h. |
Typedef Documentation
|
Definition at line 57 of file des.h. |
|
Definition at line 56 of file des.h. |
Function Documentation
void cipher_3des_cbc |
( |
unsigned char * |
text, |
|
|
int |
text_len, |
|
|
unsigned char * |
key, |
|
|
unsigned char * |
iv, |
|
|
int |
mode, |
|
|
unsigned char * |
output |
|
) |
|
|
|
3DES-CBC function calculates a digest from a given data buffer and a given key.
- Parameters:
-
text | pointer to input data |
text_len | length of input data |
key | pointer to encryption key (192 bits) |
iv | initialization vector |
mode | defines whether encryption or decryption should be performed |
output | en- or decrypted input data |
- Returns:
- void
Definition at line 1067 of file des.c. |
|