#include <asm/byteorder.h>
#include <linux/bitops.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/crypto.h>
#include <linux/types.h>
#include <crypto/des.h>
Go to the source code of this file.
|
#define | ROL(x, r) ((x) = rol32((x), (r))) |
|
#define | ROR(x, r) ((x) = ror32((x), (r))) |
|
#define | IP(L, R, T) |
|
#define | FP(L, R, T) |
|
#define | ROUND(L, R, A, B, K, d) |
|
#define | T1(x) pt[2 * (x) + 0] |
|
#define | T2(x) pt[2 * (x) + 1] |
|
#define | T3(x) pt[2 * (x) + 2] |
|
#define | T4(x) pt[2 * (x) + 3] |
|
#define | DES_PC2(a, b, c, d) (T4(d) | T3(c) | T2(b) | T1(a)) |
|
#define ROL |
( |
|
x, |
|
|
|
r |
|
) |
| ((x) = rol32((x), (r))) |
#define ROR |
( |
|
x, |
|
|
|
r |
|
) |
| ((x) = ror32((x), (r))) |
#define ROUND |
( |
|
L, |
|
|
|
R, |
|
|
|
A, |
|
|
|
B, |
|
|
|
K, |
|
|
|
d |
|
) |
| |
Value:
B &= 0x3f3f3f3f;
ROR(
A, 4); \
L ^=
S8[0xff &
B];
A &= 0x3f3f3f3f; \
L ^=
S6[0xff & (
B >> 8)];
B >>= 16; \
L ^=
S5[0xff & (
A >> 8)];
A >>= 16; \
L ^=
S2[0xff & (
B >> 8)]; \
L ^=
S1[0xff & (
A >> 8)];
Definition at line 590 of file des_generic.c.
#define T1 |
( |
|
x | ) |
pt[2 * (x) + 0] |
#define T2 |
( |
|
x | ) |
pt[2 * (x) + 1] |
#define T3 |
( |
|
x | ) |
pt[2 * (x) + 2] |
#define T4 |
( |
|
x | ) |
pt[2 * (x) + 3] |
MODULE_ALIAS |
( |
"des3_ede" |
| ) |
|
MODULE_DESCRIPTION |
( |
"DES & Triple DES EDE Cipher Algorithms" |
| ) |
|
module_exit |
( |
des_generic_mod_fini |
| ) |
|
module_init |
( |
des_generic_mod_init |
| ) |
|