Chameleon-Mini
 All Classes Files Functions Variables Macros Pages
3DES_CBC.h
1 /*****************************************************************************
2 Written and Copyright (C) by Ingo von Maurich, Timo Kasper, David Oswald,
3 and the Embedded Security Group of Ruhr-Universitaet Bochum.
4 All rights reserved.
5 
6 Contact ingo.vonmaurich@rub.de for comments & questions.
7 This program is free software; You may use it or parts of it or
8 modifiy it under the following terms:
9 
10 (1) Usage and/or redistribution and/or modification of the software
11 or parts of the software is permitted for non-commercial use only.
12 If you are interested in a commercial use please contact
13 ingo.vonmaurich@rub.de.
14 
15 (2a) If this software or parts are used as part of a new software, you
16 must license the entire work, as a whole, under this License to anyone
17 who comes into possession of a copy. This License will therefore
18 apply, to the whole of the work, and all its parts, regardless of how
19 they are packaged.
20 
21 (2b) You may expand this license by your own license. In this case this
22 license still applies to the software as mentioned in (2a) and must
23 not be changed. The expansion must be clearly recognizable as such. In
24 any case of collision between the license and the expansion the
25 license is superior to the expansion.
26 
27 (3) If this software or parts are used as part of a new software, you
28 must provide equivalent access to the source code of the entire work,
29 as a whole, to anyone who comes into possession of a copy, in the same
30 way through the same place at no further charge, as for the binary
31 version.
32 
33 (4) This program is distributed in the hope that it will be useful,
34 but WITHOUT ANY WARRANTY; without even the implied warranty of
35 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
36 (5) These notices must be retained in any copies of any part of this
37 documentation and/or software.
38 
39 (6) If this software is used credit must be given to the
40 "Embedded Security Group of Ruhr-Universitaet Bochum, Germany" as
41 to the authors of the parts of the software used. This can be in the form
42 of a textual message at program startup or at *beginning* of the
43 documentation (online or textual) provided with the package.
44 *****************************************************************************/
45 
46 void TripleDES_CBC_Encrypt(uint8_t * plaintext, uint8_t * ciphertext,
47  uint8_t * keys, uint8_t * iv, uint16_t block_length);