summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libtomcrypt/math/rand_prime.c1
-rw-r--r--libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_flexi.c1
-rw-r--r--libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_multi.c1
-rw-r--r--libtomcrypt/pk/asn1/der/sequence/der_encode_sequence_multi.c1
-rw-r--r--libtomcrypt/pk/asn1/der/sequence/der_sequence_free.c1
-rw-r--r--libtomcrypt/pk/asn1/der/set/der_encode_set.c1
-rw-r--r--libtomcrypt/pk/asn1/der/set/der_encode_setof.c1
-rw-r--r--libtomcrypt/pk/asn1/der/x509/der_decode_subject_public_key_info.c1
-rw-r--r--libtomcrypt/pk/dsa/dsa_export.c1
-rw-r--r--libtomcrypt/pk/dsa/dsa_import.c1
-rw-r--r--libtomcrypt/pk/dsa/dsa_make_key.c1
-rw-r--r--libtomcrypt/pk/dsa/dsa_sign_hash.c1
-rw-r--r--libtomcrypt/pk/pkcs1/pkcs_1_mgf1.c3
-rw-r--r--libtomcrypt/pk/pkcs1/pkcs_1_oaep_decode.c3
-rw-r--r--libtomcrypt/pk/pkcs1/pkcs_1_oaep_encode.c1
-rw-r--r--libtomcrypt/pk/pkcs1/pkcs_1_pss_decode.c3
-rw-r--r--libtomcrypt/pk/pkcs1/pkcs_1_pss_encode.c3
-rw-r--r--libtomcrypt/pk/rsa/rsa_decrypt_key.c1
-rw-r--r--libtomcrypt/pk/rsa/rsa_export.c1
-rw-r--r--libtomcrypt/pk/rsa/rsa_import.c1
-rw-r--r--libtomcrypt/pk/rsa/rsa_sign_hash.c1
-rw-r--r--libtomcrypt/pk/rsa/rsa_verify_hash.c1
-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--ncr-dh.c1
-rw-r--r--ncr-key-storage.c1
-rw-r--r--ncr-key-wrap.c1
-rw-r--r--ncr-key.c1
-rw-r--r--ncr-limits.c1
-rw-r--r--ncr-pk.c1
34 files changed, 38 insertions, 4 deletions
diff --git a/libtomcrypt/math/rand_prime.c b/libtomcrypt/math/rand_prime.c
index d48653a..ab73cd0 100644
--- a/libtomcrypt/math/rand_prime.c
+++ b/libtomcrypt/math/rand_prime.c
@@ -9,6 +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 2e72dbd..3f01a57 100644
--- a/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_flexi.c
+++ b/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_flexi.c
@@ -9,6 +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 0e9c8a0..d1b7878 100644
--- a/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_multi.c
+++ b/libtomcrypt/pk/asn1/der/sequence/der_decode_sequence_multi.c
@@ -10,6 +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 3a8e7ee..7e81317 100644
--- a/libtomcrypt/pk/asn1/der/sequence/der_encode_sequence_multi.c
+++ b/libtomcrypt/pk/asn1/der/sequence/der_encode_sequence_multi.c
@@ -10,6 +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 a0e0d2d..eed73e7 100644
--- a/libtomcrypt/pk/asn1/der/sequence/der_sequence_free.c
+++ b/libtomcrypt/pk/asn1/der/sequence/der_sequence_free.c
@@ -9,6 +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 38961c6..babb9ea 100644
--- a/libtomcrypt/pk/asn1/der/set/der_encode_set.c
+++ b/libtomcrypt/pk/asn1/der/set/der_encode_set.c
@@ -9,6 +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 86874f4..2a343f2 100644
--- a/libtomcrypt/pk/asn1/der/set/der_encode_setof.c
+++ b/libtomcrypt/pk/asn1/der/set/der_encode_setof.c
@@ -9,6 +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 c0a2e22..8a5005f 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,6 +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 1fef6c7..f2cd714 100644
--- a/libtomcrypt/pk/dsa/dsa_export.c
+++ b/libtomcrypt/pk/dsa/dsa_export.c
@@ -9,6 +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 c0680f5..99001f2 100644
--- a/libtomcrypt/pk/dsa/dsa_import.c
+++ b/libtomcrypt/pk/dsa/dsa_import.c
@@ -9,6 +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 7a6b516..1831853 100644
--- a/libtomcrypt/pk/dsa/dsa_make_key.c
+++ b/libtomcrypt/pk/dsa/dsa_make_key.c
@@ -9,6 +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 0b542a4..b48d5a5 100644
--- a/libtomcrypt/pk/dsa/dsa_sign_hash.c
+++ b/libtomcrypt/pk/dsa/dsa_sign_hash.c
@@ -9,6 +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 58052eb..86ba218 100644
--- a/libtomcrypt/pk/pkcs1/pkcs_1_mgf1.c
+++ b/libtomcrypt/pk/pkcs1/pkcs_1_mgf1.c
@@ -10,8 +10,9 @@
*/
#include "tomcrypt.h"
#include <ncr-int.h>
+#include <linux/slab.h>
-/**
+/**
@file pkcs_1_mgf1.c
The Mask Generation Function (MGF1) for LTC_PKCS #1, Tom St Denis
*/
diff --git a/libtomcrypt/pk/pkcs1/pkcs_1_oaep_decode.c b/libtomcrypt/pk/pkcs1/pkcs_1_oaep_decode.c
index 5214a29..717d99d 100644
--- a/libtomcrypt/pk/pkcs1/pkcs_1_oaep_decode.c
+++ b/libtomcrypt/pk/pkcs1/pkcs_1_oaep_decode.c
@@ -10,8 +10,9 @@
*/
#include "tomcrypt.h"
#include <ncr-int.h>
+#include <linux/slab.h>
-/**
+/**
@file pkcs_1_oaep_decode.c
OAEP Padding for LTC_PKCS #1, Tom St Denis
*/
diff --git a/libtomcrypt/pk/pkcs1/pkcs_1_oaep_encode.c b/libtomcrypt/pk/pkcs1/pkcs_1_oaep_encode.c
index ef644f9..331516f 100644
--- a/libtomcrypt/pk/pkcs1/pkcs_1_oaep_encode.c
+++ b/libtomcrypt/pk/pkcs1/pkcs_1_oaep_encode.c
@@ -10,6 +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 b9ade4b..5d44ce8 100644
--- a/libtomcrypt/pk/pkcs1/pkcs_1_pss_decode.c
+++ b/libtomcrypt/pk/pkcs1/pkcs_1_pss_decode.c
@@ -10,8 +10,9 @@
*/
#include "tomcrypt.h"
#include <ncr-int.h>
+#include <linux/slab.h>
-/**
+/**
@file pkcs_1_pss_decode.c
LTC_PKCS #1 PSS Signature Padding, Tom St Denis
*/
diff --git a/libtomcrypt/pk/pkcs1/pkcs_1_pss_encode.c b/libtomcrypt/pk/pkcs1/pkcs_1_pss_encode.c
index f8f763b..9416eae 100644
--- a/libtomcrypt/pk/pkcs1/pkcs_1_pss_encode.c
+++ b/libtomcrypt/pk/pkcs1/pkcs_1_pss_encode.c
@@ -10,8 +10,9 @@
*/
#include "tomcrypt.h"
#include <ncr-int.h>
+#include <linux/slab.h>
-/**
+/**
@file pkcs_1_pss_encode.c
LTC_PKCS #1 PSS Signature Padding, Tom St Denis
*/
diff --git a/libtomcrypt/pk/rsa/rsa_decrypt_key.c b/libtomcrypt/pk/rsa/rsa_decrypt_key.c
index a8f3ac4..ba16e32 100644
--- a/libtomcrypt/pk/rsa/rsa_decrypt_key.c
+++ b/libtomcrypt/pk/rsa/rsa_decrypt_key.c
@@ -10,6 +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 905bb6f..c5e8ff0 100644
--- a/libtomcrypt/pk/rsa/rsa_export.c
+++ b/libtomcrypt/pk/rsa/rsa_export.c
@@ -10,6 +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 2eaa0a9..8bd8c47 100644
--- a/libtomcrypt/pk/rsa/rsa_import.c
+++ b/libtomcrypt/pk/rsa/rsa_import.c
@@ -9,6 +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 f27789d..b3c2f5b 100644
--- a/libtomcrypt/pk/rsa/rsa_sign_hash.c
+++ b/libtomcrypt/pk/rsa/rsa_sign_hash.c
@@ -10,6 +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 c8a113d..b9ef89f 100644
--- a/libtomcrypt/pk/rsa/rsa_verify_hash.c
+++ b/libtomcrypt/pk/rsa/rsa_verify_hash.c
@@ -10,6 +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 a65f0a3..05ee8e7 100644
--- a/libtommath/bn_mp_clear.c
+++ b/libtommath/bn_mp_clear.c
@@ -1,4 +1,5 @@
#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 cf2b949..3646c6c 100644
--- a/libtommath/bn_mp_grow.c
+++ b/libtommath/bn_mp_grow.c
@@ -1,4 +1,5 @@
#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 8be27f5..990500b 100644
--- a/libtommath/bn_mp_init.c
+++ b/libtommath/bn_mp_init.c
@@ -1,4 +1,5 @@
#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 8e01418..ba46d3a 100644
--- a/libtommath/bn_mp_init_size.c
+++ b/libtommath/bn_mp_init_size.c
@@ -1,4 +1,5 @@
#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 07aae4b..741bfd1 100644
--- a/libtommath/bn_mp_prime_random_ex.c
+++ b/libtommath/bn_mp_prime_random_ex.c
@@ -1,4 +1,5 @@
#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 4b8c5ef..3e38556 100644
--- a/libtommath/bn_mp_shrink.c
+++ b/libtommath/bn_mp_shrink.c
@@ -1,4 +1,5 @@
#include <tommath.h>
+#include <linux/slab.h>
#ifdef BN_MP_SHRINK_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
diff --git a/ncr-dh.c b/ncr-dh.c
index f14e131..cad4d4c 100644
--- a/ncr-dh.c
+++ b/ncr-dh.c
@@ -23,6 +23,7 @@
*/
#include <linux/mm.h>
+#include <linux/slab.h>
#include <linux/random.h>
#include "cryptodev.h"
#include <asm/uaccess.h>
diff --git a/ncr-key-storage.c b/ncr-key-storage.c
index ef20965..41e52b7 100644
--- a/ncr-key-storage.c
+++ b/ncr-key-storage.c
@@ -23,6 +23,7 @@
*/
#include <linux/mm.h>
+#include <linux/slab.h>
#include "cryptodev.h"
#include <asm/uaccess.h>
#include <asm/ioctl.h>
diff --git a/ncr-key-wrap.c b/ncr-key-wrap.c
index 34d8c52..d5d3df0 100644
--- a/ncr-key-wrap.c
+++ b/ncr-key-wrap.c
@@ -23,6 +23,7 @@
*/
#include <linux/mm.h>
+#include <linux/slab.h>
#include <linux/highmem.h>
#include <linux/random.h>
#include "cryptodev.h"
diff --git a/ncr-key.c b/ncr-key.c
index 13bdb18..73fd63a 100644
--- a/ncr-key.c
+++ b/ncr-key.c
@@ -23,6 +23,7 @@
*/
#include <linux/mm.h>
+#include <linux/slab.h>
#include <linux/random.h>
#include "cryptodev.h"
#include <asm/uaccess.h>
diff --git a/ncr-limits.c b/ncr-limits.c
index ff8ff59..34acac7 100644
--- a/ncr-limits.c
+++ b/ncr-limits.c
@@ -26,6 +26,7 @@
#include <linux/mutex.h>
#include <linux/types.h>
#include <linux/mm.h>
+#include <linux/slab.h>
#include <linux/highmem.h>
#include <linux/random.h>
#include "cryptodev.h"
diff --git a/ncr-pk.c b/ncr-pk.c
index 667a129..e5dedbb 100644
--- a/ncr-pk.c
+++ b/ncr-pk.c
@@ -23,6 +23,7 @@
*/
#include <linux/mm.h>
+#include <linux/slab.h>
#include <linux/random.h>
#include "cryptodev.h"
#include <asm/uaccess.h>