-
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
Johannes Goetzfried
authored and
Herbert Xu
committed
Aug 1, 2012
1 parent
8c5c20d
commit 14d8409
Showing
4 changed files
with
70 additions
and
35 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: 37743cc0d34c4c5cb8520bc27eb2a45141e938fe | ||
refs/heads/master: 270b0c6b406a0ae7673ee880d1d7cc6bd6c904de |
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,22 @@ | ||
#ifndef _CRYPTO_CAST5_H | ||
#define _CRYPTO_CAST5_H | ||
|
||
#include <linux/types.h> | ||
#include <linux/crypto.h> | ||
|
||
#define CAST5_BLOCK_SIZE 8 | ||
#define CAST5_MIN_KEY_SIZE 5 | ||
#define CAST5_MAX_KEY_SIZE 16 | ||
|
||
struct cast5_ctx { | ||
u32 Km[16]; | ||
u8 Kr[16]; | ||
int rr; /* rr ? rounds = 12 : rounds = 16; (rfc 2144) */ | ||
}; | ||
|
||
int cast5_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen); | ||
|
||
void __cast5_encrypt(struct cast5_ctx *ctx, u8 *dst, const u8 *src); | ||
void __cast5_decrypt(struct cast5_ctx *ctx, u8 *dst, const u8 *src); | ||
|
||
#endif |