aboutsummaryrefslogtreecommitdiffstats
path: root/src/crypto/des-internal.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-10-17 09:53:27 (GMT)
committerJouni Malinen <j@w1.fi>2009-10-17 09:53:27 (GMT)
commit1e8c857abe2b1dfb564b96f12dd146eb370e3346 (patch)
tree29fd153ac0a601eda8217a67bc4a1cfad3fffda8 /src/crypto/des-internal.c
parentf1739bac4fd62dc984c0a24dc22e56de55525120 (diff)
downloadhostap-1e8c857abe2b1dfb564b96f12dd146eb370e3346.zip
hostap-1e8c857abe2b1dfb564b96f12dd146eb370e3346.tar.gz
hostap-1e8c857abe2b1dfb564b96f12dd146eb370e3346.tar.bz2
Move shared DES definitions into a header file
Diffstat (limited to 'src/crypto/des-internal.c')
-rw-r--r--src/crypto/des-internal.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/crypto/des-internal.c b/src/crypto/des-internal.c
index 543cee4..ccea950 100644
--- a/src/crypto/des-internal.c
+++ b/src/crypto/des-internal.c
@@ -2,7 +2,7 @@
* DES and 3DES-EDE ciphers
*
* Modifications to LibTomCrypt implementation:
- * Copyright (c) 2006, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2006-2009, Jouni Malinen <j@w1.fi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -18,6 +18,7 @@
#include "common.h"
#include "crypto.h"
+#include "des_i.h"
/*
* This implementation is based on a DES implementation included in
@@ -458,11 +459,6 @@ void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain)
}
-struct des3_key_s {
- u32 ek[3][32];
- u32 dk[3][32];
-};
-
void des3_key_setup(const u8 *key, struct des3_key_s *dkey)
{
deskey(key, 0, dkey->ek[0]);