1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 2 /* 3 * Cryptographic API. 3 * Cryptographic API. 4 * 4 * 5 * Copyright (c) 2023 Herbert Xu <herbert@gond 5 * Copyright (c) 2023 Herbert Xu <herbert@gondor.apana.org.au> 6 */ 6 */ 7 #ifndef _LOCAL_CRYPTO_SKCIPHER_H 7 #ifndef _LOCAL_CRYPTO_SKCIPHER_H 8 #define _LOCAL_CRYPTO_SKCIPHER_H 8 #define _LOCAL_CRYPTO_SKCIPHER_H 9 9 10 #include <crypto/internal/skcipher.h> 10 #include <crypto/internal/skcipher.h> 11 #include "internal.h" 11 #include "internal.h" 12 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 13 int crypto_lskcipher_encrypt_sg(struct skciphe 23 int crypto_lskcipher_encrypt_sg(struct skcipher_request *req); 14 int crypto_lskcipher_decrypt_sg(struct skciphe 24 int crypto_lskcipher_decrypt_sg(struct skcipher_request *req); 15 int crypto_init_lskcipher_ops_sg(struct crypto 25 int crypto_init_lskcipher_ops_sg(struct crypto_tfm *tfm); 16 int skcipher_prepare_alg_common(struct skciphe 26 int skcipher_prepare_alg_common(struct skcipher_alg_common *alg); 17 27 18 #endif /* _LOCAL_CRYPTO_SKCIPHER_H */ 28 #endif /* _LOCAL_CRYPTO_SKCIPHER_H */ 19 29
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.