/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * CTR: Counter mode * * Copyright (c) 2007 Herbert Xu <[email protected]> */ #ifndef _CRYPTO_CTR_H #define _CRYPTO_CTR_H #include <crypto/algapi.h> #include <crypto/internal/skcipher.h> #include <linux/string.h> #include <linux/types.h> #define CTR_RFC3686_NONCE_SIZE … #define CTR_RFC3686_IV_SIZE … #define CTR_RFC3686_BLOCK_SIZE … static inline int crypto_ctr_encrypt_walk(struct skcipher_request *req, void (*fn)(struct crypto_skcipher *, const u8 *, u8 *)) { … } #endif /* _CRYPTO_CTR_H */