/* SPDX-License-Identifier: GPL-2.0 */1#ifndef _CRYPTO_CAST5_H2#define _CRYPTO_CAST5_H34#include <linux/types.h>5#include <linux/crypto.h>6#include <crypto/cast_common.h>78#define CAST5_BLOCK_SIZE 89#define CAST5_MIN_KEY_SIZE 510#define CAST5_MAX_KEY_SIZE 161112struct cast5_ctx {13u32 Km[16];14u8 Kr[16];15int rr; /* rr ? rounds = 12 : rounds = 16; (rfc 2144) */16};1718int cast5_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen);1920void __cast5_encrypt(struct cast5_ctx *ctx, u8 *dst, const u8 *src);21void __cast5_decrypt(struct cast5_ctx *ctx, u8 *dst, const u8 *src);2223#endif242526