-
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.
yaml --- r: 329712 b: refs/heads/master c: 2b49b90 h: refs/heads/master v: v3
- Loading branch information
Johannes Goetzfried
authored and
Herbert Xu
committed
Aug 1, 2012
1 parent
7d5810b
commit 9ec609b
Showing
4 changed files
with
68 additions
and
25 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: 4d6d6a2c850f89bc9283d02519cb536baba72032 | ||
refs/heads/master: 2b49b906729644dd4696b9291b7e2f6cd1266dc0 |
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,23 @@ | ||
#ifndef _CRYPTO_CAST6_H | ||
#define _CRYPTO_CAST6_H | ||
|
||
#include <linux/types.h> | ||
#include <linux/crypto.h> | ||
|
||
#define CAST6_BLOCK_SIZE 16 | ||
#define CAST6_MIN_KEY_SIZE 16 | ||
#define CAST6_MAX_KEY_SIZE 32 | ||
|
||
struct cast6_ctx { | ||
u32 Km[12][4]; | ||
u8 Kr[12][4]; | ||
}; | ||
|
||
int __cast6_setkey(struct cast6_ctx *ctx, const u8 *key, | ||
unsigned int keylen, u32 *flags); | ||
int cast6_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen); | ||
|
||
void __cast6_encrypt(struct cast6_ctx *ctx, u8 *dst, const u8 *src); | ||
void __cast6_decrypt(struct cast6_ctx *ctx, u8 *dst, const u8 *src); | ||
|
||
#endif |