aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/padlock.h
diff options
context:
space:
mode:
authorMichal Ludvig <michal@logix.cz>2006-07-14 20:23:49 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2006-09-20 21:40:22 -0400
commitccc17c34d676f116bd09dd36a3b01627bc6a2f8a (patch)
tree458c6c6e7b187885c5fac80668c44583ce930ab1 /drivers/crypto/padlock.h
parentdb5e9a42373ae6d84c4b0179c2fe0aba866474e8 (diff)
[CRYPTO] padlock: Update private header file
PADLOCK_CRA_PRIORITY is shared between padlock-aes and padlock-sha so it should be in the header. On the other hand "struct cword" is only used in padlock-aes.c so it's unnecessary to have it in padlock.h Signed-off-by: Michal Ludvig <michal@logix.cz> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/padlock.h')
-rw-r--r--drivers/crypto/padlock.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/crypto/padlock.h b/drivers/crypto/padlock.h
index e2ee3b689dbd..7e3385b0904d 100644
--- a/drivers/crypto/padlock.h
+++ b/drivers/crypto/padlock.h
@@ -15,17 +15,8 @@
15 15
16#define PADLOCK_ALIGNMENT 16 16#define PADLOCK_ALIGNMENT 16
17 17
18/* Control word. */
19struct cword {
20 unsigned int __attribute__ ((__packed__))
21 rounds:4,
22 algo:3,
23 keygen:1,
24 interm:1,
25 encdec:1,
26 ksize:2;
27} __attribute__ ((__aligned__(PADLOCK_ALIGNMENT)));
28
29#define PFX "padlock: " 18#define PFX "padlock: "
30 19
20#define PADLOCK_CRA_PRIORITY 300
21
31#endif /* _CRYPTO_PADLOCK_H */ 22#endif /* _CRYPTO_PADLOCK_H */