mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-29 02:24:04 +00:00
crypto: padlock - Move padlock.h into include/crypto
This patch moves padlock.h from drivers/crypto into include/crypto so that it may be used by the via-rng driver. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
0735ac1f25
commit
2149308873
3 changed files with 9 additions and 9 deletions
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
#include <crypto/algapi.h>
|
#include <crypto/algapi.h>
|
||||||
#include <crypto/aes.h>
|
#include <crypto/aes.h>
|
||||||
|
#include <crypto/padlock.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
@ -21,7 +22,6 @@
|
||||||
#include <asm/byteorder.h>
|
#include <asm/byteorder.h>
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
#include <asm/i387.h>
|
#include <asm/i387.h>
|
||||||
#include "padlock.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Number of data blocks actually fetched for each xcrypt insn.
|
* Number of data blocks actually fetched for each xcrypt insn.
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <crypto/internal/hash.h>
|
#include <crypto/internal/hash.h>
|
||||||
|
#include <crypto/padlock.h>
|
||||||
#include <crypto/sha.h>
|
#include <crypto/sha.h>
|
||||||
#include <linux/err.h>
|
#include <linux/err.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
|
@ -22,13 +23,6 @@
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/scatterlist.h>
|
#include <linux/scatterlist.h>
|
||||||
#include <asm/i387.h>
|
#include <asm/i387.h>
|
||||||
#include "padlock.h"
|
|
||||||
|
|
||||||
#ifdef CONFIG_64BIT
|
|
||||||
#define STACK_ALIGN 16
|
|
||||||
#else
|
|
||||||
#define STACK_ALIGN 4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct padlock_sha_desc {
|
struct padlock_sha_desc {
|
||||||
struct shash_desc fallback;
|
struct shash_desc fallback;
|
||||||
|
|
|
@ -15,9 +15,15 @@
|
||||||
|
|
||||||
#define PADLOCK_ALIGNMENT 16
|
#define PADLOCK_ALIGNMENT 16
|
||||||
|
|
||||||
#define PFX "padlock: "
|
#define PFX KBUILD_MODNAME ": "
|
||||||
|
|
||||||
#define PADLOCK_CRA_PRIORITY 300
|
#define PADLOCK_CRA_PRIORITY 300
|
||||||
#define PADLOCK_COMPOSITE_PRIORITY 400
|
#define PADLOCK_COMPOSITE_PRIORITY 400
|
||||||
|
|
||||||
|
#ifdef CONFIG_64BIT
|
||||||
|
#define STACK_ALIGN 16
|
||||||
|
#else
|
||||||
|
#define STACK_ALIGN 4
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _CRYPTO_PADLOCK_H */
|
#endif /* _CRYPTO_PADLOCK_H */
|
Loading…
Add table
Reference in a new issue