forked from torvalds/linux
-
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.
[CRYPTO] des: Create header file for common macros
This patch creates include/crypto/des.h for common macros shared between DES implementations. Signed-off-by: Evgeniy Polyakov <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information
Showing
2 changed files
with
20 additions
and
7 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
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,19 @@ | ||
/* | ||
* DES & Triple DES EDE Cipher Algorithms. | ||
*/ | ||
|
||
#ifndef __CRYPTO_DES_H | ||
#define __CRYPTO_DES_H | ||
|
||
#define DES_KEY_SIZE 8 | ||
#define DES_EXPKEY_WORDS 32 | ||
#define DES_BLOCK_SIZE 8 | ||
|
||
#define DES3_EDE_KEY_SIZE (3 * DES_KEY_SIZE) | ||
#define DES3_EDE_EXPKEY_WORDS (3 * DES_EXPKEY_WORDS) | ||
#define DES3_EDE_BLOCK_SIZE DES_BLOCK_SIZE | ||
|
||
|
||
extern unsigned long des_ekey(u32 *pe, const u8 *k); | ||
|
||
#endif /* __CRYPTO_DES_H */ |