Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
72567258 HG |
2 | /* Values for NULL algorithms */ |
3 | ||
4 | #ifndef _CRYPTO_NULL_H | |
5 | #define _CRYPTO_NULL_H | |
6 | ||
7 | #define NULL_KEY_SIZE 0 | |
8 | #define NULL_BLOCK_SIZE 1 | |
9 | #define NULL_DIGEST_SIZE 0 | |
10 | #define NULL_IV_SIZE 0 | |
11 | ||
499a66e6 | 12 | struct crypto_skcipher *crypto_get_default_null_skcipher(void); |
33023463 | 13 | void crypto_put_default_null_skcipher(void); |
499a66e6 HX |
14 | |
15 | static inline struct crypto_skcipher *crypto_get_default_null_skcipher2(void) | |
16 | { | |
17 | return crypto_get_default_null_skcipher(); | |
18 | } | |
19 | ||
20 | static inline void crypto_put_default_null_skcipher2(void) | |
21 | { | |
22 | crypto_put_default_null_skcipher(); | |
23 | } | |
33023463 | 24 | |
72567258 | 25 | #endif |