-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 318343 b: refs/heads/master c: 3387e7d h: refs/heads/master i: 318341: c2c142b 318339: 121baad 318335: d9de250 v: v3
- Loading branch information
Jussi Kivilinna
authored and
Herbert Xu
committed
Jun 14, 2012
1 parent
f956dbc
commit 225438d
Showing
6 changed files
with
43 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: d366db605c8c4a9878589bc4a87e55f6063184ac | ||
refs/heads/master: 3387e7d69048f5ab02729825f9611754850d9a87 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ifndef ASM_X86_SERPENT_AVX_H | ||
#define ASM_X86_SERPENT_AVX_H | ||
|
||
#include <linux/crypto.h> | ||
#include <crypto/serpent.h> | ||
|
||
#define SERPENT_PARALLEL_BLOCKS 8 | ||
|
||
asmlinkage void __serpent_enc_blk_8way_avx(struct serpent_ctx *ctx, u8 *dst, | ||
const u8 *src, bool xor); | ||
asmlinkage void serpent_dec_blk_8way_avx(struct serpent_ctx *ctx, u8 *dst, | ||
const u8 *src); | ||
|
||
static inline void serpent_enc_blk_xway(struct serpent_ctx *ctx, u8 *dst, | ||
const u8 *src) | ||
{ | ||
__serpent_enc_blk_8way_avx(ctx, dst, src, false); | ||
} | ||
|
||
static inline void serpent_enc_blk_xway_xor(struct serpent_ctx *ctx, u8 *dst, | ||
const u8 *src) | ||
{ | ||
__serpent_enc_blk_8way_avx(ctx, dst, src, true); | ||
} | ||
|
||
static inline void serpent_dec_blk_xway(struct serpent_ctx *ctx, u8 *dst, | ||
const u8 *src) | ||
{ | ||
serpent_dec_blk_8way_avx(ctx, dst, src); | ||
} | ||
|
||
#endif |
4 changes: 2 additions & 2 deletions
4
trunk/arch/x86/include/asm/serpent.h → trunk/arch/x86/include/asm/serpent-sse2.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters