HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / epan / crypt / airpdcap_rijndael.h
blobc675b18cf9403d3e72e9eeb0ad04989f4512216a
1 /**
2 * airpdcap_rijndael.h
4 * $Id$
6 * @version 3.0 (December 2000)
8 * Optimised ANSI C code for the Rijndael cipher (now AES)
10 * @author Vincent Rijmen <vincent.rijmen@esat.kuleuven.ac.be>
11 * @author Antoon Bosselaers <antoon.bosselaers@esat.kuleuven.ac.be>
12 * @author Paulo Barreto <paulo.barreto@terra.com.br>
14 * This code is hereby placed in the public domain.
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS
17 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE
20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 #ifndef _AIRPDCAP_RIJNDAEL
30 #define _AIRPDCAP_RIJNDAEL
32 /******************************************************************************/
33 /* File includes */
34 /* */
35 #include "airpdcap_interop.h"
36 /* */
37 /* */
38 /******************************************************************************/
40 /******************************************************************************/
41 /* Type definitions */
42 /* */
43 UCHAR AES_unwrap(UCHAR *kek, UINT16 key_len, UCHAR *cipher_text, UINT16 cipher_len, UCHAR *output);
45 /* */
46 /******************************************************************************/
48 /******************************************************************************/
49 /* Block XOR macro definition */
50 /* */
51 #define XOR_BLOCK(b, a, len) \
52 { \
53 INT __i__; \
54 for (__i__ = 0; __i__ < (INT)(len); __i__++) \
55 (b)[__i__] ^= (a)[__i__]; \
57 /* */
58 /******************************************************************************/
60 #endif