aboutsummaryrefslogtreecommitdiffstats
path: root/epan/crypt/airpdcap_rijndael.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2009-07-29 10:01:14 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2009-07-29 10:01:14 +0000
commita3355a094969cd4942df650597e2f849b69ea14a (patch)
treef7bfdf779880711ba90de52fcc393c8ba2d7b913 /epan/crypt/airpdcap_rijndael.h
parentf56e93d1a5292270b45d8ceab164316b4e18f1c9 (diff)
Break the aes set ket/decrypt/encrypt out from airpdcap_raindoll into
its own crypt-aes. change the integer types to glib style integers this may/will be helpful if/when we implement our own version of kerberos aes decryption of dcerpc since the existing libraries can not (yet) handle when header signing is used. we should implement our own decryption of this for cfx+aes just as we did for classic+arcfour svn path=/trunk/; revision=29228
Diffstat (limited to 'epan/crypt/airpdcap_rijndael.h')
-rw-r--r--epan/crypt/airpdcap_rijndael.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/epan/crypt/airpdcap_rijndael.h b/epan/crypt/airpdcap_rijndael.h
index e88b301087..c675b18cf9 100644
--- a/epan/crypt/airpdcap_rijndael.h
+++ b/epan/crypt/airpdcap_rijndael.h
@@ -38,43 +38,8 @@
/******************************************************************************/
/******************************************************************************/
-/* Definitions */
-/* */
-/* Note: copied AirPDcap/rijndael/rijndael.h */
-#define RIJNDAEL_MAXKC (256/32)
-#define RIJNDAEL_MAXKB (256/8)
-#define RIJNDAEL_MAXNR 14
-/* */
-/******************************************************************************/
-
-/******************************************************************************/
/* Type definitions */
/* */
-/* Note: copied AirPDcap/rijndael/rijndael.h */
-typedef struct s_rijndael_ctx {
- INT Nr; /* key-length-dependent number of rounds */
- UINT32 ek[4 * (RIJNDAEL_MAXNR + 1)]; /* encrypt key schedule */
- UINT32 dk[4 * (RIJNDAEL_MAXNR + 1)]; /* decrypt key schedule */
-} rijndael_ctx;
-/* */
-/******************************************************************************/
-
-/******************************************************************************/
-/* External function prototypes declarations */
-/* */
-void rijndael_encrypt(
- const rijndael_ctx *ctx,
- const UCHAR *src,
- UCHAR *dst)
- ;
-
-
-void rijndael_set_key(
- rijndael_ctx *ctx,
- const UCHAR *key,
- INT bits)
- ;
-
UCHAR AES_unwrap(UCHAR *kek, UINT16 key_len, UCHAR *cipher_text, UINT16 cipher_len, UCHAR *output);
/* */