summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-08-19 16:04:36 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-08-19 16:04:36 +0200
commita7befd9b8fba6f6d777f7d8436154dc62f1fa652 (patch)
tree0af1bac520b2d444682b12f48d7d430ebc454811
parent5585282bbf8d8deb7fb2f87bf9110cfda87fb832 (diff)
downloadcryptodev-linux-a7befd9b8fba6f6d777f7d8436154dc62f1fa652.tar.gz
cryptodev-linux-a7befd9b8fba6f6d777f7d8436154dc62f1fa652.tar.xz
cryptodev-linux-a7befd9b8fba6f6d777f7d8436154dc62f1fa652.zip
Do not include linux headers to libtom files. This will allow easier replacement of them.
-rw-r--r--libtomcrypt/headers/tomcrypt.h1
-rw-r--r--libtomcrypt/math/rand_prime.c2
-rw-r--r--libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_flexi.c2
-rw-r--r--libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_multi.c2
-rw-r--r--libtomcrypt/pk/asn1/der/sequence/der_encode_sequence_multi.c2
-rw-r--r--libtomcrypt/pk/asn1/der/sequence/der_sequence_free.c2
-rw-r--r--libtomcrypt/pk/asn1/der/set/der_encode_set.c2
-rw-r--r--libtomcrypt/pk/asn1/der/set/der_encode_setof.c2
-rw-r--r--libtomcrypt/pk/asn1/der/x509/der_decode_subject_public_key_info.c2
-rw-r--r--libtomcrypt/pk/dsa/dsa_export.c2
-rw-r--r--libtomcrypt/pk/dsa/dsa_import.c2
-rw-r--r--libtomcrypt/pk/dsa/dsa_make_key.c2
-rw-r--r--libtomcrypt/pk/dsa/dsa_sign_hash.c2
-rw-r--r--libtomcrypt/pk/pkcs1/pkcs_1_mgf1.c2
-rw-r--r--libtomcrypt/pk/pkcs1/pkcs_1_oaep_decode.c2
-rw-r--r--libtomcrypt/pk/pkcs1/pkcs_1_oaep_encode.c2
-rw-r--r--libtomcrypt/pk/pkcs1/pkcs_1_pss_decode.c2
-rw-r--r--libtomcrypt/pk/pkcs1/pkcs_1_pss_encode.c2
-rw-r--r--libtomcrypt/pk/rsa/rsa_decrypt_key.c2
-rw-r--r--libtomcrypt/pk/rsa/rsa_export.c2
-rw-r--r--libtomcrypt/pk/rsa/rsa_import.c2
-rw-r--r--libtomcrypt/pk/rsa/rsa_sign_hash.c2
-rw-r--r--libtomcrypt/pk/rsa/rsa_verify_hash.c2
-rw-r--r--libtommath/bn_mp_clear.c1
-rw-r--r--libtommath/bn_mp_grow.c1
-rw-r--r--libtommath/bn_mp_init.c1
-rw-r--r--libtommath/bn_mp_init_size.c1
-rw-r--r--libtommath/bn_mp_prime_random_ex.c1
-rw-r--r--libtommath/bn_mp_shrink.c1
-rw-r--r--libtommath/tommath.h1
30 files changed, 24 insertions, 28 deletions
diff --git a/libtomcrypt/headers/tomcrypt.h b/libtomcrypt/headers/tomcrypt.h
index 51fe804..fdb6c8d 100644
--- a/libtomcrypt/headers/tomcrypt.h
+++ b/libtomcrypt/headers/tomcrypt.h
@@ -2,6 +2,7 @@
#define TOMCRYPT_H_
#include <linux/kernel.h>
#include <linux/mm.h>
+#include <linux/slab.h>
#include <linux/string.h>
#include <linux/ctype.h>
#include <linux/nls.h>
diff --git a/libtomcrypt/math/rand_prime.c b/libtomcrypt/math/rand_prime.c
index ab73cd0..5eff3a1 100644
--- a/libtomcrypt/math/rand_prime.c
+++ b/libtomcrypt/math/rand_prime.c
@@ -9,7 +9,7 @@
* Tom St Denis, tomstdenis@gmail.com, http://libtom.org
*/
#include "tomcrypt.h"
-#include <linux/slab.h>
+
/**
@file rand_prime.c
diff --git a/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_flexi.c b/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_flexi.c
index 3f01a57..e84f72e 100644
--- a/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_flexi.c
+++ b/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_flexi.c
@@ -9,7 +9,7 @@
* Tom St Denis, tomstdenis@gmail.com, http://libtom.org
*/
#include "tomcrypt.h"
-#include <linux/slab.h>
+
/**
@file der_decode_sequence_flexi.c
diff --git a/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_multi.c b/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_multi.c
index d1b7878..c064d9e 100644
--- a/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_multi.c
+++ b/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_multi.c
@@ -10,7 +10,7 @@
*/
#include "tomcrypt.h"
#include <stdarg.h>
-#include <linux/slab.h>
+
/**
diff --git a/libtomcrypt/pk/asn1/der/sequence/der_encode_sequence_multi.c b/libtomcrypt/pk/asn1/der/sequence/der_encode_sequence_multi.c
index 7e81317..8d53c62 100644
--- a/libtomcrypt/pk/asn1/der/sequence/der_encode_sequence_multi.c
+++ b/libtomcrypt/pk/asn1/der/sequence/der_encode_sequence_multi.c
@@ -10,7 +10,7 @@
*/
#include "tomcrypt.h"
#include <stdarg.h>
-#include <linux/slab.h>
+
/**
diff --git a/libtomcrypt/pk/asn1/der/sequence/der_sequence_free.c b/libtomcrypt/pk/asn1/der/sequence/der_sequence_free.c
index eed73e7..90a1297 100644
--- a/libtomcrypt/pk/asn1/der/sequence/der_sequence_free.c
+++ b/libtomcrypt/pk/asn1/der/sequence/der_sequence_free.c
@@ -9,7 +9,7 @@
* Tom St Denis, tomstdenis@gmail.com, http://libtom.org
*/
#include "tomcrypt.h"
-#include <linux/slab.h>
+
/**
@file der_sequence_free.c
diff --git a/libtomcrypt/pk/asn1/der/set/der_encode_set.c b/libtomcrypt/pk/asn1/der/set/der_encode_set.c
index babb9ea..8a13479 100644
--- a/libtomcrypt/pk/asn1/der/set/der_encode_set.c
+++ b/libtomcrypt/pk/asn1/der/set/der_encode_set.c
@@ -9,7 +9,7 @@
* Tom St Denis, tomstdenis@gmail.com, http://libtom.org
*/
#include "tomcrypt.h"
-#include <linux/slab.h>
+
/**
@file der_encode_set.c
diff --git a/libtomcrypt/pk/asn1/der/set/der_encode_setof.c b/libtomcrypt/pk/asn1/der/set/der_encode_setof.c
index 2a343f2..aa1af72 100644
--- a/libtomcrypt/pk/asn1/der/set/der_encode_setof.c
+++ b/libtomcrypt/pk/asn1/der/set/der_encode_setof.c
@@ -9,7 +9,7 @@
* Tom St Denis, tomstdenis@gmail.com, http://libtom.org
*/
#include "tomcrypt.h"
-#include <linux/slab.h>
+
/**
@file der_encode_setof.c
diff --git a/libtomcrypt/pk/asn1/der/x509/der_decode_subject_public_key_info.c b/libtomcrypt/pk/asn1/der/x509/der_decode_subject_public_key_info.c
index 8a5005f..3ebb8ea 100644
--- a/libtomcrypt/pk/asn1/der/x509/der_decode_subject_public_key_info.c
+++ b/libtomcrypt/pk/asn1/der/x509/der_decode_subject_public_key_info.c
@@ -22,7 +22,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "tomcrypt.h"
-#include <linux/slab.h>
+
/**
@file der_encode_sequence_multi.c
ASN.1 DER, encode a Subject Public Key structure --nmav
diff --git a/libtomcrypt/pk/dsa/dsa_export.c b/libtomcrypt/pk/dsa/dsa_export.c
index f2cd714..5a2d5df 100644
--- a/libtomcrypt/pk/dsa/dsa_export.c
+++ b/libtomcrypt/pk/dsa/dsa_export.c
@@ -9,7 +9,7 @@
* Tom St Denis, tomstdenis@gmail.com, http://libtom.org
*/
#include "tomcrypt.h"
-#include <linux/slab.h>
+
/**
@file dsa_export.c
diff --git a/libtomcrypt/pk/dsa/dsa_import.c b/libtomcrypt/pk/dsa/dsa_import.c
index 99001f2..c6a1f6f 100644
--- a/libtomcrypt/pk/dsa/dsa_import.c
+++ b/libtomcrypt/pk/dsa/dsa_import.c
@@ -9,7 +9,7 @@
* Tom St Denis, tomstdenis@gmail.com, http://libtom.org
*/
#include "tomcrypt.h"
-#include <linux/slab.h>
+
/**
@file dsa_import.c
diff --git a/libtomcrypt/pk/dsa/dsa_make_key.c b/libtomcrypt/pk/dsa/dsa_make_key.c
index 1831853..eab5d15 100644
--- a/libtomcrypt/pk/dsa/dsa_make_key.c
+++ b/libtomcrypt/pk/dsa/dsa_make_key.c
@@ -9,7 +9,7 @@
* Tom St Denis, tomstdenis@gmail.com, http://libtom.org
*/
#include "tomcrypt.h"
-#include <linux/slab.h>
+
/**
@file dsa_make_key.c
diff --git a/libtomcrypt/pk/dsa/dsa_sign_hash.c b/libtomcrypt/pk/dsa/dsa_sign_hash.c
index b48d5a5..6f4dad8 100644
--- a/libtomcrypt/pk/dsa/dsa_sign_hash.c
+++ b/libtomcrypt/pk/dsa/dsa_sign_hash.c
@@ -9,7 +9,7 @@
* Tom St Denis, tomstdenis@gmail.com, http://libtom.org
*/
#include "tomcrypt.h"
-#include <linux/slab.h>
+
/**
@file dsa_sign_hash.c
diff --git a/libtomcrypt/pk/pkcs1/pkcs_1_mgf1.c b/libtomcrypt/pk/pkcs1/pkcs_1_mgf1.c
index 86ba218..bfa3e7e 100644
--- a/libtomcrypt/pk/pkcs1/pkcs_1_mgf1.c
+++ b/libtomcrypt/pk/pkcs1/pkcs_1_mgf1.c
@@ -10,7 +10,7 @@
*/
#include "tomcrypt.h"
#include <ncr-int.h>
-#include <linux/slab.h>
+
/**
@file pkcs_1_mgf1.c
diff --git a/libtomcrypt/pk/pkcs1/pkcs_1_oaep_decode.c b/libtomcrypt/pk/pkcs1/pkcs_1_oaep_decode.c
index 717d99d..04833ff 100644
--- a/libtomcrypt/pk/pkcs1/pkcs_1_oaep_decode.c
+++ b/libtomcrypt/pk/pkcs1/pkcs_1_oaep_decode.c
@@ -10,7 +10,7 @@
*/
#include "tomcrypt.h"
#include <ncr-int.h>
-#include <linux/slab.h>
+
/**
@file pkcs_1_oaep_decode.c
diff --git a/libtomcrypt/pk/pkcs1/pkcs_1_oaep_encode.c b/libtomcrypt/pk/pkcs1/pkcs_1_oaep_encode.c
index 331516f..ab75f73 100644
--- a/libtomcrypt/pk/pkcs1/pkcs_1_oaep_encode.c
+++ b/libtomcrypt/pk/pkcs1/pkcs_1_oaep_encode.c
@@ -10,7 +10,7 @@
*/
#include "tomcrypt.h"
#include <ncr-int.h>
-#include <linux/slab.h>
+
/**
@file pkcs_1_oaep_encode.c
diff --git a/libtomcrypt/pk/pkcs1/pkcs_1_pss_decode.c b/libtomcrypt/pk/pkcs1/pkcs_1_pss_decode.c
index 5d44ce8..789d12d 100644
--- a/libtomcrypt/pk/pkcs1/pkcs_1_pss_decode.c
+++ b/libtomcrypt/pk/pkcs1/pkcs_1_pss_decode.c
@@ -10,7 +10,7 @@
*/
#include "tomcrypt.h"
#include <ncr-int.h>
-#include <linux/slab.h>
+
/**
@file pkcs_1_pss_decode.c
diff --git a/libtomcrypt/pk/pkcs1/pkcs_1_pss_encode.c b/libtomcrypt/pk/pkcs1/pkcs_1_pss_encode.c
index 9416eae..d3ce3d9 100644
--- a/libtomcrypt/pk/pkcs1/pkcs_1_pss_encode.c
+++ b/libtomcrypt/pk/pkcs1/pkcs_1_pss_encode.c
@@ -10,7 +10,7 @@
*/
#include "tomcrypt.h"
#include <ncr-int.h>
-#include <linux/slab.h>
+
/**
@file pkcs_1_pss_encode.c
diff --git a/libtomcrypt/pk/rsa/rsa_decrypt_key.c b/libtomcrypt/pk/rsa/rsa_decrypt_key.c
index ba16e32..813a765 100644
--- a/libtomcrypt/pk/rsa/rsa_decrypt_key.c
+++ b/libtomcrypt/pk/rsa/rsa_decrypt_key.c
@@ -10,7 +10,7 @@
*/
#include "tomcrypt.h"
#include "ncr-int.h"
-#include <linux/slab.h>
+
/**
@file rsa_decrypt_key.c
diff --git a/libtomcrypt/pk/rsa/rsa_export.c b/libtomcrypt/pk/rsa/rsa_export.c
index c5e8ff0..21f859c 100644
--- a/libtomcrypt/pk/rsa/rsa_export.c
+++ b/libtomcrypt/pk/rsa/rsa_export.c
@@ -10,7 +10,7 @@
*/
#include "tomcrypt.h"
#include <ncr-int.h>
-#include <linux/slab.h>
+
/**
@file rsa_export.c
Export RSA LTC_PKCS keys, Tom St Denis
diff --git a/libtomcrypt/pk/rsa/rsa_import.c b/libtomcrypt/pk/rsa/rsa_import.c
index 8bd8c47..9f3c5bf 100644
--- a/libtomcrypt/pk/rsa/rsa_import.c
+++ b/libtomcrypt/pk/rsa/rsa_import.c
@@ -9,7 +9,7 @@
* Tom St Denis, tomstdenis@gmail.com, http://libtom.org
*/
#include "tomcrypt.h"
-#include <linux/slab.h>
+
/**
@file rsa_import.c
diff --git a/libtomcrypt/pk/rsa/rsa_sign_hash.c b/libtomcrypt/pk/rsa/rsa_sign_hash.c
index b3c2f5b..faf13d2 100644
--- a/libtomcrypt/pk/rsa/rsa_sign_hash.c
+++ b/libtomcrypt/pk/rsa/rsa_sign_hash.c
@@ -10,7 +10,7 @@
*/
#include "tomcrypt.h"
#include "ncr-int.h"
-#include <linux/slab.h>
+
/**
@file rsa_sign_hash.c
diff --git a/libtomcrypt/pk/rsa/rsa_verify_hash.c b/libtomcrypt/pk/rsa/rsa_verify_hash.c
index b9ef89f..803b7cd 100644
--- a/libtomcrypt/pk/rsa/rsa_verify_hash.c
+++ b/libtomcrypt/pk/rsa/rsa_verify_hash.c
@@ -10,7 +10,7 @@
*/
#include "tomcrypt.h"
#include "ncr-int.h"
-#include <linux/slab.h>
+
/**
@file rsa_verify_hash.c
diff --git a/libtommath/bn_mp_clear.c b/libtommath/bn_mp_clear.c
index 05ee8e7..a65f0a3 100644
--- a/libtommath/bn_mp_clear.c
+++ b/libtommath/bn_mp_clear.c
@@ -1,5 +1,4 @@
#include <tommath.h>
-#include <linux/slab.h>
#ifdef BN_MP_CLEAR_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
diff --git a/libtommath/bn_mp_grow.c b/libtommath/bn_mp_grow.c
index 3646c6c..cf2b949 100644
--- a/libtommath/bn_mp_grow.c
+++ b/libtommath/bn_mp_grow.c
@@ -1,5 +1,4 @@
#include <tommath.h>
-#include <linux/slab.h>
#ifdef BN_MP_GROW_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
diff --git a/libtommath/bn_mp_init.c b/libtommath/bn_mp_init.c
index 990500b..8be27f5 100644
--- a/libtommath/bn_mp_init.c
+++ b/libtommath/bn_mp_init.c
@@ -1,5 +1,4 @@
#include <tommath.h>
-#include <linux/slab.h>
#ifdef BN_MP_INIT_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
diff --git a/libtommath/bn_mp_init_size.c b/libtommath/bn_mp_init_size.c
index ba46d3a..8e01418 100644
--- a/libtommath/bn_mp_init_size.c
+++ b/libtommath/bn_mp_init_size.c
@@ -1,5 +1,4 @@
#include <tommath.h>
-#include <linux/slab.h>
#ifdef BN_MP_INIT_SIZE_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
diff --git a/libtommath/bn_mp_prime_random_ex.c b/libtommath/bn_mp_prime_random_ex.c
index 741bfd1..07aae4b 100644
--- a/libtommath/bn_mp_prime_random_ex.c
+++ b/libtommath/bn_mp_prime_random_ex.c
@@ -1,5 +1,4 @@
#include <tommath.h>
-#include <linux/slab.h>
#ifdef BN_MP_PRIME_RANDOM_EX_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
diff --git a/libtommath/bn_mp_shrink.c b/libtommath/bn_mp_shrink.c
index 3e38556..4b8c5ef 100644
--- a/libtommath/bn_mp_shrink.c
+++ b/libtommath/bn_mp_shrink.c
@@ -1,5 +1,4 @@
#include <tommath.h>
-#include <linux/slab.h>
#ifdef BN_MP_SHRINK_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
diff --git a/libtommath/tommath.h b/libtommath/tommath.h
index 37fb23c..31ded82 100644
--- a/libtommath/tommath.h
+++ b/libtommath/tommath.h
@@ -17,6 +17,7 @@
#include <linux/kernel.h>
#include <linux/mm.h>
+#include <linux/slab.h>
#include <linux/random.h>
#include <linux/ctype.h>