xref: /kernel/linux/linux-5.10/include/crypto/cast6.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/include/crypto/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _CRYPTO_CAST6_H
38c2ecf20Sopenharmony_ci#define _CRYPTO_CAST6_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <linux/types.h>
68c2ecf20Sopenharmony_ci#include <linux/crypto.h>
78c2ecf20Sopenharmony_ci#include <crypto/cast_common.h>
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#define CAST6_BLOCK_SIZE 16
108c2ecf20Sopenharmony_ci#define CAST6_MIN_KEY_SIZE 16
118c2ecf20Sopenharmony_ci#define CAST6_MAX_KEY_SIZE 32
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_cistruct cast6_ctx {
148c2ecf20Sopenharmony_ci	u32 Km[12][4];
158c2ecf20Sopenharmony_ci	u8 Kr[12][4];
168c2ecf20Sopenharmony_ci};
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciint __cast6_setkey(struct cast6_ctx *ctx, const u8 *key, unsigned int keylen);
198c2ecf20Sopenharmony_ciint cast6_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen);
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_civoid __cast6_encrypt(const void *ctx, u8 *dst, const u8 *src);
228c2ecf20Sopenharmony_civoid __cast6_decrypt(const void *ctx, u8 *dst, const u8 *src);
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#endif
25

Indexes created Thu Nov 07 10:32:03 CST 2024