1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|---|
2 | /* |
3 | * Cryptographic API. |
4 | * |
5 | * Copyright (c) 2023 Herbert Xu <herbert@gondor.apana.org.au> |
6 | */ |
7 | #ifndef _LOCAL_CRYPTO_SKCIPHER_H |
8 | #define _LOCAL_CRYPTO_SKCIPHER_H |
9 | |
10 | #include <crypto/internal/skcipher.h> |
11 | #include "internal.h" |
12 | |
13 | static inline struct crypto_istat_cipher *skcipher_get_stat_common( |
14 | struct skcipher_alg_common *alg) |
15 | { |
16 | #ifdef CONFIG_CRYPTO_STATS |
17 | return &alg->stat; |
18 | #else |
19 | return NULL; |
20 | #endif |
21 | } |
22 | |
23 | int crypto_lskcipher_encrypt_sg(struct skcipher_request *req); |
24 | int crypto_lskcipher_decrypt_sg(struct skcipher_request *req); |
25 | int crypto_init_lskcipher_ops_sg(struct crypto_tfm *tfm); |
26 | int skcipher_prepare_alg_common(struct skcipher_alg_common *alg); |
27 | |
28 | #endif /* _LOCAL_CRYPTO_SKCIPHER_H */ |
29 |