#ifndef _CRYPTO_SM3_BASE_H
#define _CRYPTO_SM3_BASE_H
#include <crypto/internal/hash.h>
#include <crypto/sm3.h>
#include <linux/crypto.h>
#include <linux/module.h>
#include <linux/string.h>
#include <asm/unaligned.h>
sm3_block_fn;
static inline int sm3_base_init(struct shash_desc *desc)
{ … }
static inline int sm3_base_do_update(struct shash_desc *desc,
const u8 *data,
unsigned int len,
sm3_block_fn *block_fn)
{ … }
static inline int sm3_base_do_finalize(struct shash_desc *desc,
sm3_block_fn *block_fn)
{ … }
static inline int sm3_base_finish(struct shash_desc *desc, u8 *out)
{ … }
#endif