summaryrefslogtreecommitdiffstats
path: root/libtomcrypt
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 /libtomcrypt
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.
Diffstat (limited to 'libtomcrypt')
-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
23 files changed, 23 insertions, 22 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