linux/arch/x86/crypto/ecb_cbc_helpers.h

/* SPDX-License-Identifier: GPL-2.0 */

#ifndef _CRYPTO_ECB_CBC_HELPER_H
#define _CRYPTO_ECB_CBC_HELPER_H

#include <crypto/internal/skcipher.h>
#include <asm/fpu/api.h>

/*
 * Mode helpers to instantiate parameterized skcipher ECB/CBC modes without
 * having to rely on indirect calls and retpolines.
 */

#define ECB_WALK_START(req, bsize, fpu_blocks)

#define CBC_WALK_START(req, bsize, fpu_blocks)

#define ECB_WALK_ADVANCE(blocks)

#define ECB_BLOCK(blocks, func)

#define CBC_ENC_BLOCK(func)

#define CBC_DEC_BLOCK(blocks, func)

#define ECB_WALK_END()

#define CBC_WALK_END()

#endif