Horia Geanta | 7256725 | 2014-03-14 17:46:50 +0200 | [diff] [blame] | 1 | /* Values for NULL algorithms */ |
| 2 | |
| 3 | #ifndef _CRYPTO_NULL_H |
| 4 | #define _CRYPTO_NULL_H |
| 5 | |
| 6 | #define NULL_KEY_SIZE 0 |
| 7 | #define NULL_BLOCK_SIZE 1 |
| 8 | #define NULL_DIGEST_SIZE 0 |
| 9 | #define NULL_IV_SIZE 0 |
| 10 | |
Herbert Xu | 499a66e | 2016-07-12 13:17:47 +0800 | [diff] [blame] | 11 | struct crypto_skcipher *crypto_get_default_null_skcipher(void); |
Herbert Xu | 3302346 | 2015-05-21 15:11:09 +0800 | [diff] [blame] | 12 | void crypto_put_default_null_skcipher(void); |
Herbert Xu | 499a66e | 2016-07-12 13:17:47 +0800 | [diff] [blame] | 13 | |
| 14 | static inline struct crypto_skcipher *crypto_get_default_null_skcipher2(void) |
| 15 | { |
| 16 | return crypto_get_default_null_skcipher(); |
| 17 | } |
| 18 | |
| 19 | static inline void crypto_put_default_null_skcipher2(void) |
| 20 | { |
| 21 | crypto_put_default_null_skcipher(); |
| 22 | } |
Herbert Xu | 3302346 | 2015-05-21 15:11:09 +0800 | [diff] [blame] | 23 | |
Horia Geanta | 7256725 | 2014-03-14 17:46:50 +0200 | [diff] [blame] | 24 | #endif |