Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
arch
x86
include
asm
crypto
serpent-avx.h
Go to the documentation of this file.
1
#ifndef ASM_X86_SERPENT_AVX_H
2
#define ASM_X86_SERPENT_AVX_H
3
4
#include <
linux/crypto.h
>
5
#include <
crypto/serpent.h
>
6
7
#define SERPENT_PARALLEL_BLOCKS 8
8
9
asmlinkage
void
__serpent_enc_blk_8way_avx
(
struct
serpent_ctx
*
ctx
,
u8
*
dst
,
10
const
u8
*
src
,
bool
xor
);
11
asmlinkage
void
serpent_dec_blk_8way_avx
(
struct
serpent_ctx
*
ctx
,
u8
*
dst
,
12
const
u8
*
src
);
13
14
static
inline
void
serpent_enc_blk_xway(
struct
serpent_ctx
*
ctx
,
u8
*
dst
,
15
const
u8
*
src
)
16
{
17
__serpent_enc_blk_8way_avx
(ctx, dst, src,
false
);
18
}
19
20
static
inline
void
serpent_enc_blk_xway_xor(
struct
serpent_ctx
*
ctx
,
u8
*
dst
,
21
const
u8
*
src
)
22
{
23
__serpent_enc_blk_8way_avx
(ctx, dst, src,
true
);
24
}
25
26
static
inline
void
serpent_dec_blk_xway(
struct
serpent_ctx
*
ctx
,
u8
*
dst
,
27
const
u8
*
src
)
28
{
29
serpent_dec_blk_8way_avx
(ctx, dst, src);
30
}
31
32
#endif
Generated on Thu Jan 10 2013 13:20:00 for Linux Kernel by
1.8.2