xref: /kernel/linux/linux-6.6/arch/arm64/crypto/sm4-ce.h (revision 62306a36)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/arch/arm64/crypto/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * SM4 common functions for Crypto Extensions
462306a36Sopenharmony_ci * Copyright (C) 2022 Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci
762306a36Sopenharmony_civoid sm4_ce_expand_key(const u8 *key, u32 *rkey_enc, u32 *rkey_dec,
862306a36Sopenharmony_ci		       const u32 *fk, const u32 *ck);
962306a36Sopenharmony_ci
1062306a36Sopenharmony_civoid sm4_ce_crypt_block(const u32 *rkey, u8 *dst, const u8 *src);
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_civoid sm4_ce_cbc_enc(const u32 *rkey_enc, u8 *dst, const u8 *src,
1362306a36Sopenharmony_ci		    u8 *iv, unsigned int nblocks);
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_civoid sm4_ce_cfb_enc(const u32 *rkey_enc, u8 *dst, const u8 *src,
1662306a36Sopenharmony_ci		    u8 *iv, unsigned int nblocks);
17

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