-
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.
- Loading branch information
Jussi Kivilinna
authored and
Herbert Xu
committed
Nov 9, 2011
1 parent
25d6867
commit 390743a
Showing
3 changed files
with
48 additions
and
20 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: 7fb7fe4469d0b870a031a5d33676343979b80625 | ||
refs/heads/master: bc83b8299cb4ac2a9f64215a04854e4c934d1510 |
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,25 @@ | ||
/* | ||
* Common values for serpent algorithms | ||
*/ | ||
|
||
#ifndef _CRYPTO_SERPENT_H | ||
#define _CRYPTO_SERPENT_H | ||
|
||
#include <linux/types.h> | ||
#include <linux/crypto.h> | ||
|
||
#define SERPENT_MIN_KEY_SIZE 0 | ||
#define SERPENT_MAX_KEY_SIZE 32 | ||
#define SERPENT_EXPKEY_WORDS 132 | ||
#define SERPENT_BLOCK_SIZE 16 | ||
|
||
struct serpent_ctx { | ||
u32 expkey[SERPENT_EXPKEY_WORDS]; | ||
}; | ||
|
||
int serpent_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen); | ||
|
||
void __serpent_encrypt(struct serpent_ctx *ctx, u8 *dst, const u8 *src); | ||
void __serpent_decrypt(struct serpent_ctx *ctx, u8 *dst, const u8 *src); | ||
|
||
#endif |