Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Common values for blowfish algorithms
0004  */
0005 
0006 #ifndef _CRYPTO_BLOWFISH_H
0007 #define _CRYPTO_BLOWFISH_H
0008 
0009 #include <linux/types.h>
0010 #include <linux/crypto.h>
0011 
0012 #define BF_BLOCK_SIZE 8
0013 #define BF_MIN_KEY_SIZE 4
0014 #define BF_MAX_KEY_SIZE 56
0015 
0016 struct bf_ctx {
0017     u32 p[18];
0018     u32 s[1024];
0019 };
0020 
0021 int blowfish_setkey(struct crypto_tfm *tfm, const u8 *key,
0022             unsigned int key_len);
0023 
0024 #endif