Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d366db605c8c4a9878589bc4a87e55f6063184ac
refs/heads/master: 3387e7d69048f5ab02729825f9611754850d9a87
12 changes: 6 additions & 6 deletions trunk/arch/x86/crypto/serpent-avx-x86_64-asm_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -579,10 +579,10 @@
vmovdqu x3, (3*4*4)(out);

.align 8
.global __serpent_enc_blk_8way
.type __serpent_enc_blk_8way,@function;
.global __serpent_enc_blk_8way_avx
.type __serpent_enc_blk_8way_avx,@function;

__serpent_enc_blk_8way:
__serpent_enc_blk_8way_avx:
/* input:
* %rdi: ctx, CTX
* %rsi: dst
Expand Down Expand Up @@ -647,10 +647,10 @@ __enc_xor8:
ret;

.align 8
.global serpent_dec_blk_8way
.type serpent_dec_blk_8way,@function;
.global serpent_dec_blk_8way_avx
.type serpent_dec_blk_8way_avx,@function;

serpent_dec_blk_8way:
serpent_dec_blk_8way_avx:
/* input:
* %rdi: ctx, CTX
* %rsi: dst
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/crypto/serpent_avx_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <asm/i387.h>
#include <asm/xcr.h>
#include <asm/xsave.h>
#include <asm/serpent.h>
#include <asm/serpent-avx.h>
#include <crypto/scatterwalk.h>
#include <linux/workqueue.h>
#include <linux/spinlock.h>
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/crypto/serpent_sse2_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include <crypto/lrw.h>
#include <crypto/xts.h>
#include <asm/i387.h>
#include <asm/serpent.h>
#include <asm/serpent-sse2.h>
#include <crypto/scatterwalk.h>
#include <linux/workqueue.h>
#include <linux/spinlock.h>
Expand Down
32 changes: 32 additions & 0 deletions trunk/arch/x86/include/asm/serpent-avx.h
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef ASM_X86_SERPENT_H
#define ASM_X86_SERPENT_H
#ifndef ASM_X86_SERPENT_SSE2_H
#define ASM_X86_SERPENT_SSE2_H

#include <linux/crypto.h>
#include <crypto/serpent.h>
Expand Down

0 comments on commit 225438d

Please sign in to comment.