aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/cast6_generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/cast6_generic.c')
-rw-r--r--crypto/cast6_generic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/cast6_generic.c b/crypto/cast6_generic.c
index dc9309d70405..1acd2f1c48fc 100644
--- a/crypto/cast6_generic.c
+++ b/crypto/cast6_generic.c
@@ -370,7 +370,7 @@ static const u8 Tr[4][8] = {
370}; 370};
371 371
372/* forward octave */ 372/* forward octave */
373static void W(u32 *key, unsigned int i) 373static inline void W(u32 *key, unsigned int i)
374{ 374{
375 u32 I; 375 u32 I;
376 key[6] ^= F1(key[7], Tr[i % 4][0], Tm[i][0]); 376 key[6] ^= F1(key[7], Tr[i % 4][0], Tm[i][0]);
@@ -434,7 +434,7 @@ int cast6_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen)
434EXPORT_SYMBOL_GPL(cast6_setkey); 434EXPORT_SYMBOL_GPL(cast6_setkey);
435 435
436/*forward quad round*/ 436/*forward quad round*/
437static void Q(u32 *block, u8 *Kr, u32 *Km) 437static inline void Q(u32 *block, u8 *Kr, u32 *Km)
438{ 438{
439 u32 I; 439 u32 I;
440 block[2] ^= F1(block[3], Kr[0], Km[0]); 440 block[2] ^= F1(block[3], Kr[0], Km[0]);
@@ -444,7 +444,7 @@ static void Q(u32 *block, u8 *Kr, u32 *Km)
444} 444}
445 445
446/*reverse quad round*/ 446/*reverse quad round*/
447static void QBAR(u32 *block, u8 *Kr, u32 *Km) 447static inline void QBAR(u32 *block, u8 *Kr, u32 *Km)
448{ 448{
449 u32 I; 449 u32 I;
450 block[3] ^= F1(block[0], Kr[3], Km[3]); 450 block[3] ^= F1(block[0], Kr[3], Km[3]);