shash_desc
static int ghash_import(struct shash_desc *desc, const void *in)
static int ghash_finup(struct shash_desc *desc, const u8 *src,
static int ghash_init(struct shash_desc *desc)
static int ghash_update(struct shash_desc *desc, const u8 *src,
static int ghash_export(struct shash_desc *desc, void *out)
static int mac_init(struct shash_desc *desc)
static int mac_update(struct shash_desc *desc, const u8 *p, unsigned int len)
static int cbcmac_finup(struct shash_desc *desc, const u8 *src,
static int cmac_finup(struct shash_desc *desc, const u8 *src, unsigned int len,
static int ghash_export(struct shash_desc *desc, void *out)
static int ghash_import(struct shash_desc *desc, const void *in)
static int ghash_finup(struct shash_desc *desc, const u8 *src,
static int ghash_init(struct shash_desc *desc)
static int ghash_update(struct shash_desc *desc, const u8 *src,
static int sm3_ce_update(struct shash_desc *desc, const u8 *data,
static int sm3_ce_finup(struct shash_desc *desc, const u8 *data,
static int sm3_neon_update(struct shash_desc *desc, const u8 *data,
static int sm3_neon_finup(struct shash_desc *desc, const u8 *data,
static int sm4_mac_init(struct shash_desc *desc)
static int sm4_mac_update(struct shash_desc *desc, const u8 *p,
static int sm4_cmac_finup(struct shash_desc *desc, const u8 *src,
static int sm4_cbcmac_finup(struct shash_desc *desc, const u8 *src,
static int p8_ghash_update(struct shash_desc *desc,
static int p8_ghash_finup(struct shash_desc *desc, const u8 *src,
static int p8_ghash_init(struct shash_desc *desc)
static int riscv64_ghash_init(struct shash_desc *desc)
static int riscv64_ghash_update(struct shash_desc *desc, const u8 *src,
static int riscv64_ghash_finup(struct shash_desc *desc, const u8 *src,
static int riscv64_sm3_update(struct shash_desc *desc, const u8 *data,
static int riscv64_sm3_finup(struct shash_desc *desc, const u8 *data,
static int ghash_init(struct shash_desc *desc)
static int ghash_update(struct shash_desc *desc,
static int ghash_finup(struct shash_desc *desc, const u8 *src,
static int ghash_export(struct shash_desc *desc, void *out)
static int ghash_import(struct shash_desc *desc, const void *in)
static int s390_hmac_sha2_init(struct shash_desc *desc)
static int s390_hmac_sha2_update(struct shash_desc *desc,
static int s390_hmac_sha2_finup(struct shash_desc *desc, const u8 *src,
static int s390_hmac_sha2_digest(struct shash_desc *desc,
static int s390_hmac_export_zero(struct shash_desc *desc, void *out)
static int s390_hmac_export(struct shash_desc *desc, void *out)
static int s390_hmac_import(struct shash_desc *desc, const void *in)
static int ghash_finup(struct shash_desc *desc, const u8 *src,
static int ghash_init(struct shash_desc *desc)
static int ghash_update(struct shash_desc *desc,
static int sm3_avx_update(struct shash_desc *desc, const u8 *data,
static int sm3_avx_finup(struct shash_desc *desc, const u8 *data,
static inline struct shash_desc *prepare_shash_desc(struct ahash_request *req,
struct shash_desc *desc = ahash_request_ctx(req);
int shash_ahash_update(struct ahash_request *req, struct shash_desc *desc)
int shash_ahash_finup(struct ahash_request *req, struct shash_desc *desc)
int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc)
struct shash_desc *desc;
struct shash_desc *desc)
struct shash_desc *desc;
struct shash_desc *desc;
static int crypto_blake2b_init(struct shash_desc *desc)
static int crypto_blake2b_update(struct shash_desc *desc,
static int crypto_blake2b_final(struct shash_desc *desc, u8 *out)
static int crypto_blake2b_digest(struct shash_desc *desc,
static int crypto_cbcmac_digest_init(struct shash_desc *pdesc)
static int crypto_cbcmac_digest_update(struct shash_desc *pdesc, const u8 *p,
static int crypto_cbcmac_digest_finup(struct shash_desc *pdesc, const u8 *src,
static int crypto_cmac_digest_finup(struct shash_desc *pdesc, const u8 *src,
static int crypto_cmac_digest_init(struct shash_desc *pdesc)
static int crypto_cmac_digest_update(struct shash_desc *pdesc, const u8 *p,
static int crc32_init(struct shash_desc *desc)
static int crc32_update(struct shash_desc *desc, const u8 *data,
static int crc32_finup(struct shash_desc *desc, const u8 *data,
static int crc32_final(struct shash_desc *desc, u8 *out)
static int crc32_digest(struct shash_desc *desc, const u8 *data,
static int chksum_finup(struct shash_desc *desc, const u8 *data,
static int chksum_digest(struct shash_desc *desc, const u8 *data,
static int chksum_init(struct shash_desc *desc)
static int chksum_update(struct shash_desc *desc, const u8 *data,
static int chksum_final(struct shash_desc *desc, u8 *out)
struct shash_desc *cryptd_shash_desc(struct ahash_request *req)
static struct shash_desc *cryptd_hash_prepare(struct ahash_request *req,
struct shash_desc *desc;
struct shash_desc *desc;
struct shash_desc *desc;
struct shash_desc *desc;
struct shash_desc *desc;
struct shash_desc *desc = cryptd_shash_desc(req);
struct shash_desc desc;
static int null_init(struct shash_desc *desc)
static int null_update(struct shash_desc *desc, const u8 *data,
static int null_final(struct shash_desc *desc, u8 *out)
static int null_digest(struct shash_desc *desc, const u8 *data,
struct shash_desc shash;
sdesc = kzalloc(sizeof(struct shash_desc) + crypto_shash_descsize(tfm),
static int ghash_finup(struct shash_desc *desc, const u8 *src,
static int ghash_init(struct shash_desc *desc)
static int ghash_update(struct shash_desc *desc,
static void ghash_flush(struct shash_desc *desc, const u8 *src,
struct shash_desc *desc = shash_desc_ctx(pdesc);
static int hmac_import_core(struct shash_desc *pdesc, const void *in)
struct shash_desc *desc = shash_desc_ctx(pdesc);
static int hmac_init(struct shash_desc *pdesc)
static int hmac_update(struct shash_desc *pdesc,
struct shash_desc *desc = shash_desc_ctx(pdesc);
static int hmac_finup(struct shash_desc *pdesc, const u8 *data,
struct shash_desc *desc = shash_desc_ctx(pdesc);
inst->alg.descsize = sizeof(struct shash_desc) + salg->descsize;
static int hmac_export(struct shash_desc *pdesc, void *out)
struct shash_desc *desc = shash_desc_ctx(pdesc);
static int hmac_import(struct shash_desc *pdesc, const void *in)
struct shash_desc *desc = shash_desc_ctx(pdesc);
static int hmac_export_core(struct shash_desc *pdesc, void *out)
struct shash_desc *hash_state_desc = (struct shash_desc *)hash_state;
struct shash_desc *hash_state_desc = (struct shash_desc *)hash_state;
struct shash_desc *sdesc;
struct shash_desc *sdesc;
size = sizeof(struct shash_desc) + crypto_shash_descsize(hash);
crypto_roundup(sizeof(struct shash_desc) + crypto_shash_descsize(TFM))
int crypto_shash_update_sg(struct shash_desc *desc, struct scatterlist *sg,
struct shash_desc *desc;
struct shash_desc *desc;
struct shash_desc *desc;
int crypto_shash_update_sg(struct shash_desc *desc, struct scatterlist *sg,
struct shash_desc *desc;
struct shash_desc *desc;
struct shash_desc *desc;
static int md4_init(struct shash_desc *desc)
static int md4_update(struct shash_desc *desc, const u8 *data, unsigned int len)
static int md4_final(struct shash_desc *desc, u8 *out)
static int crypto_md5_import(struct shash_desc *desc, const void *in)
static int crypto_md5_export_core(struct shash_desc *desc, void *out)
static int crypto_md5_import_core(struct shash_desc *desc, const void *in)
static int crypto_hmac_md5_init(struct shash_desc *desc)
static int crypto_hmac_md5_update(struct shash_desc *desc,
static int crypto_hmac_md5_final(struct shash_desc *desc, u8 *out)
static int crypto_hmac_md5_digest(struct shash_desc *desc,
static int crypto_hmac_md5_export(struct shash_desc *desc, void *out)
static int crypto_hmac_md5_import(struct shash_desc *desc, const void *in)
static int crypto_hmac_md5_export_core(struct shash_desc *desc, void *out)
static int crypto_hmac_md5_import_core(struct shash_desc *desc, const void *in)
static int crypto_md5_init(struct shash_desc *desc)
static int crypto_md5_update(struct shash_desc *desc,
static int crypto_md5_final(struct shash_desc *desc, u8 *out)
static int crypto_md5_digest(struct shash_desc *desc,
static int crypto_md5_export(struct shash_desc *desc, void *out)
static int michael_init(struct shash_desc *desc)
static int michael_update(struct shash_desc *desc, const u8 *data,
static int michael_final(struct shash_desc *desc, u8 *out)
static int rmd160_init(struct shash_desc *desc)
static int rmd160_update(struct shash_desc *desc, const u8 *data,
static int rmd160_finup(struct shash_desc *desc, const u8 *src,
static int crypto_sha1_import(struct shash_desc *desc, const void *in)
static int crypto_sha1_export_core(struct shash_desc *desc, void *out)
static int crypto_sha1_import_core(struct shash_desc *desc, const void *in)
static int crypto_hmac_sha1_init(struct shash_desc *desc)
static int crypto_hmac_sha1_update(struct shash_desc *desc,
static int crypto_hmac_sha1_final(struct shash_desc *desc, u8 *out)
static int crypto_hmac_sha1_digest(struct shash_desc *desc,
static int crypto_hmac_sha1_export(struct shash_desc *desc, void *out)
static int crypto_hmac_sha1_import(struct shash_desc *desc, const void *in)
static int crypto_hmac_sha1_export_core(struct shash_desc *desc, void *out)
static int crypto_hmac_sha1_import_core(struct shash_desc *desc, const void *in)
static int crypto_sha1_init(struct shash_desc *desc)
static int crypto_sha1_update(struct shash_desc *desc,
static int crypto_sha1_final(struct shash_desc *desc, u8 *out)
static int crypto_sha1_digest(struct shash_desc *desc,
static int crypto_sha1_export(struct shash_desc *desc, void *out)
static int crypto_sha224_export(struct shash_desc *desc, void *out)
static int crypto_sha224_import(struct shash_desc *desc, const void *in)
static int crypto_sha224_export_core(struct shash_desc *desc, void *out)
static int crypto_sha224_import_core(struct shash_desc *desc, const void *in)
static int crypto_sha256_init(struct shash_desc *desc)
static int crypto_sha256_update(struct shash_desc *desc,
static int crypto_sha256_final(struct shash_desc *desc, u8 *out)
static int crypto_sha256_digest(struct shash_desc *desc,
static int crypto_sha256_export(struct shash_desc *desc, void *out)
static int crypto_sha256_import(struct shash_desc *desc, const void *in)
static int crypto_sha256_export_core(struct shash_desc *desc, void *out)
static int crypto_sha256_import_core(struct shash_desc *desc, const void *in)
static int crypto_hmac_sha224_init(struct shash_desc *desc)
static int crypto_hmac_sha224_update(struct shash_desc *desc,
static int crypto_hmac_sha224_final(struct shash_desc *desc, u8 *out)
static int crypto_hmac_sha224_digest(struct shash_desc *desc,
static int crypto_hmac_sha224_export(struct shash_desc *desc, void *out)
static int crypto_hmac_sha224_import(struct shash_desc *desc, const void *in)
static int crypto_hmac_sha224_export_core(struct shash_desc *desc, void *out)
static int crypto_hmac_sha224_import_core(struct shash_desc *desc,
static int crypto_hmac_sha256_init(struct shash_desc *desc)
static int crypto_hmac_sha256_update(struct shash_desc *desc,
static int crypto_hmac_sha256_final(struct shash_desc *desc, u8 *out)
static int crypto_hmac_sha256_digest(struct shash_desc *desc,
static int crypto_hmac_sha256_export(struct shash_desc *desc, void *out)
static int crypto_hmac_sha256_import(struct shash_desc *desc, const void *in)
static int crypto_hmac_sha256_export_core(struct shash_desc *desc, void *out)
static int crypto_hmac_sha256_import_core(struct shash_desc *desc,
static int crypto_sha224_init(struct shash_desc *desc)
static int crypto_sha224_update(struct shash_desc *desc,
static int crypto_sha224_final(struct shash_desc *desc, u8 *out)
static int crypto_sha224_digest(struct shash_desc *desc,
static int crypto_sha3_224_init(struct shash_desc *desc)
static int crypto_sha3_256_init(struct shash_desc *desc)
static int crypto_sha3_384_init(struct shash_desc *desc)
static int crypto_sha3_512_init(struct shash_desc *desc)
static int crypto_sha3_update(struct shash_desc *desc, const u8 *data,
static int crypto_sha3_final(struct shash_desc *desc, u8 *out)
static int crypto_sha3_224_digest(struct shash_desc *desc,
static int crypto_sha3_256_digest(struct shash_desc *desc,
static int crypto_sha3_384_digest(struct shash_desc *desc,
static int crypto_sha3_512_digest(struct shash_desc *desc,
static int crypto_sha3_export_core(struct shash_desc *desc, void *out)
static int crypto_sha3_import_core(struct shash_desc *desc, const void *in)
static int crypto_sha384_export(struct shash_desc *desc, void *out)
static int crypto_sha384_import(struct shash_desc *desc, const void *in)
static int crypto_sha384_export_core(struct shash_desc *desc, void *out)
static int crypto_sha384_import_core(struct shash_desc *desc, const void *in)
static int crypto_sha512_init(struct shash_desc *desc)
static int crypto_sha512_update(struct shash_desc *desc,
static int crypto_sha512_final(struct shash_desc *desc, u8 *out)
static int crypto_sha512_digest(struct shash_desc *desc,
static int crypto_sha512_export(struct shash_desc *desc, void *out)
static int crypto_sha512_import(struct shash_desc *desc, const void *in)
static int crypto_sha512_export_core(struct shash_desc *desc, void *out)
static int crypto_sha512_import_core(struct shash_desc *desc, const void *in)
static int crypto_hmac_sha384_init(struct shash_desc *desc)
static int crypto_hmac_sha384_update(struct shash_desc *desc,
static int crypto_hmac_sha384_final(struct shash_desc *desc, u8 *out)
static int crypto_hmac_sha384_digest(struct shash_desc *desc,
static int crypto_hmac_sha384_export(struct shash_desc *desc, void *out)
static int crypto_hmac_sha384_import(struct shash_desc *desc, const void *in)
static int crypto_hmac_sha384_export_core(struct shash_desc *desc, void *out)
static int crypto_hmac_sha384_import_core(struct shash_desc *desc,
static int crypto_hmac_sha512_init(struct shash_desc *desc)
static int crypto_hmac_sha512_update(struct shash_desc *desc,
static int crypto_hmac_sha512_final(struct shash_desc *desc, u8 *out)
static int crypto_hmac_sha512_digest(struct shash_desc *desc,
static int crypto_hmac_sha512_export(struct shash_desc *desc, void *out)
static int crypto_hmac_sha512_import(struct shash_desc *desc, const void *in)
static int crypto_hmac_sha512_export_core(struct shash_desc *desc, void *out)
static int crypto_hmac_sha512_import_core(struct shash_desc *desc,
static int crypto_sha384_init(struct shash_desc *desc)
static int crypto_sha384_update(struct shash_desc *desc,
static int crypto_sha384_final(struct shash_desc *desc, u8 *out)
static int crypto_sha384_digest(struct shash_desc *desc,
struct shash_desc *desc, const u8 *data, unsigned int len, u8 *out)
int crypto_shash_finup(struct shash_desc *restrict desc, const u8 *data,
static int shash_default_digest(struct shash_desc *desc, const u8 *data,
int crypto_shash_digest(struct shash_desc *desc, const u8 *data,
static int __crypto_shash_export(struct shash_desc *desc, void *out,
int (*export)(struct shash_desc *desc,
int crypto_shash_export_core(struct shash_desc *desc, void *out)
int crypto_shash_export(struct shash_desc *desc, void *out)
static int __crypto_shash_import(struct shash_desc *desc, const void *in,
int (*import)(struct shash_desc *desc,
int crypto_shash_import_core(struct shash_desc *desc, const void *in)
int crypto_shash_import(struct shash_desc *desc, const void *in)
static int shash_default_export_core(struct shash_desc *desc, void *out)
static int shash_default_import_core(struct shash_desc *desc, const void *in)
base->cra_reqsize = sizeof(struct shash_desc) + alg->descsize;
static int __crypto_shash_init(struct shash_desc *desc)
int crypto_shash_init(struct shash_desc *desc)
static int shash_default_finup(struct shash_desc *desc, const u8 *data,
int (*op)(struct shash_desc *desc, const u8 *data,
static int crypto_sm3_update(struct shash_desc *desc, const u8 *data,
static int crypto_sm3_finup(struct shash_desc *desc, const u8 *data,
static int streebog_finup(struct shash_desc *desc, const u8 *src,
static int streebog_init(struct shash_desc *desc)
static int streebog_update(struct shash_desc *desc, const u8 *data,
struct shash_desc *desc,
struct shash_desc *desc,
struct ahash_request *req, struct shash_desc *desc,
struct shash_desc *desc,
struct shash_desc **desc_ret)
struct shash_desc *desc;
struct shash_desc *desc = NULL;
static int wp512_update(struct shash_desc *desc, const u8 *source,
static int wp512_finup(struct shash_desc *desc, const u8 *src,
static int wp384_finup(struct shash_desc *desc, const u8 *src,
static int wp256_finup(struct shash_desc *desc, const u8 *src,
static int wp512_init(struct shash_desc *desc) {
static int crypto_xcbc_digest_init(struct shash_desc *pdesc)
static int crypto_xcbc_digest_update(struct shash_desc *pdesc, const u8 *p,
static int crypto_xcbc_digest_finup(struct shash_desc *pdesc, const u8 *src,
static int xxhash64_init(struct shash_desc *desc)
static int xxhash64_update(struct shash_desc *desc, const u8 *data,
static int xxhash64_final(struct shash_desc *desc, u8 *out)
static int xxhash64_digest(struct shash_desc *desc, const u8 *data,
struct shash_desc *desc;
desc = kmalloc(sizeof(struct shash_desc) +
struct shash_desc *shash;
struct shash_desc shash;
size = sizeof(struct shash_desc) + crypto_shash_descsize(hash);
struct shash_desc *shdesc;
size = sizeof(struct shash_desc) + crypto_shash_descsize(alg);
struct shash_desc shash;
size = sizeof(struct shash_desc) + crypto_shash_descsize(alg);
struct shash_desc shash;
static int nx_xcbc_init(struct shash_desc *desc)
static int nx_xcbc_update(struct shash_desc *desc,
static int nx_xcbc_finup(struct shash_desc *desc, const u8 *src,
static int nx_xcbc_empty(struct shash_desc *desc, u8 *out)
static int nx_sha256_finup(struct shash_desc *desc, const u8 *src,
static int nx_sha256_export(struct shash_desc *desc, void *out)
static int nx_sha256_import(struct shash_desc *desc, const void *in)
static int nx_sha256_init(struct shash_desc *desc)
static int nx_sha256_update(struct shash_desc *desc, const u8 *data,
static int nx_sha512_finup(struct shash_desc *desc, const u8 *src,
static int nx_sha512_export(struct shash_desc *desc, void *out)
static int nx_sha512_import(struct shash_desc *desc, const void *in)
static int nx_sha512_init(struct shash_desc *desc)
static int nx_sha512_update(struct shash_desc *desc, const u8 *data,
static int padlock_sha_finup(struct shash_desc *desc, const u8 *in,
static int padlock_sha1_finup(struct shash_desc *desc, const u8 *in,
static int padlock_sha256_finup(struct shash_desc *desc, const u8 *in,
static int padlock_sha1_update_nano(struct shash_desc *desc,
static int padlock_sha256_update_nano(struct shash_desc *desc, const u8 *src,
static inline void *padlock_shash_desc_ctx(struct shash_desc *desc)
static int padlock_sha1_init(struct shash_desc *desc)
static int padlock_sha256_init(struct shash_desc *desc)
static int padlock_sha_update(struct shash_desc *desc,
static int padlock_sha_export(struct shash_desc *desc, void *out)
static int padlock_sha_import(struct shash_desc *desc, const void *in)
static void sa_export_shash(void *state, struct shash_desc *hash,
static int zynqmp_sha_finup(struct shash_desc *desc, const u8 *data, unsigned int length, u8 *out)
static int __zynqmp_sha_digest(struct shash_desc *desc, const u8 *data,
static int zynqmp_sha_digest(struct shash_desc *desc, const u8 *data, unsigned int len, u8 *out)
static int zynqmp_sha_continue(struct shash_desc *desc,
struct shash_desc *fbdesc, int err)
static int zynqmp_sha_init(struct shash_desc *desc)
static int zynqmp_sha_update(struct shash_desc *desc, const u8 *data, unsigned int length)
struct shash_desc *desc;
struct shash_desc shash;
struct shash_desc *shash;
struct shash_desc *desc = NULL;
struct shash_desc *aes_cmac; /* block-cipher based MAC function, for SMB3 signatures */
struct shash_desc *shash;
int cifs_alloc_hash(const char *name, struct shash_desc **sdesc);
void cifs_free_hash(struct shash_desc **sdesc);
cifs_alloc_hash(const char *name, struct shash_desc **sdesc)
*sdesc = kmalloc(sizeof(struct shash_desc) + crypto_shash_descsize(alg), GFP_KERNEL);
cifs_free_hash(struct shash_desc **sdesc)
struct shash_desc *shash = NULL;
static void free_shash(struct shash_desc *shash)
static struct shash_desc *alloc_shash_desc(int id)
struct shash_desc *shash;
struct shash_desc *desc[CRYPTO_SHASH_MAX];
struct shash_desc *__ubifs_hash_get_desc(const struct ubifs_info *c)
int __ubifs_shash_copy_state(const struct ubifs_info *c, struct shash_desc *src,
struct shash_desc *target)
struct shash_desc *inhash)
static struct shash_desc *ubifs_get_desc(const struct ubifs_info *c,
struct shash_desc *desc;
int len, struct shash_desc *hash)
struct shash_desc *desc;
struct shash_desc *desc;
struct shash_desc *log_hash, u8 *hash)
struct shash_desc *log_hash, int is_last)
struct shash_desc *log_hash;
struct shash_desc *__ubifs_hash_get_desc(const struct ubifs_info *c);
static inline struct shash_desc *ubifs_hash_get_desc(const struct ubifs_info *c)
struct shash_desc *desc)
struct shash_desc *desc, const void *buf,
struct shash_desc *desc, u8 *out)
struct shash_desc *inhash);
int __ubifs_shash_copy_state(const struct ubifs_info *c, struct shash_desc *src,
struct shash_desc *target);
struct shash_desc *src,
struct shash_desc *target)
struct shash_desc *log_hash;
struct shash_desc *log_hash;
struct shash_desc *cryptd_shash_desc(struct ahash_request *req);
static inline int crypto_shash_update(struct shash_desc *desc, const u8 *data,
static inline int crypto_shash_final(struct shash_desc *desc, u8 *out)
static inline void shash_desc_zero(struct shash_desc *desc)
#define HASH_MAX_DESCSIZE (sizeof(struct shash_desc) + \
char __##shash##_desc[sizeof(struct shash_desc) + HASH_MAX_DESCSIZE] \
__aligned(__alignof__(struct shash_desc)); \
struct shash_desc *shash = (struct shash_desc *)__##shash##_desc
int (*init)(struct shash_desc *desc);
int (*update)(struct shash_desc *desc, const u8 *data,
int (*final)(struct shash_desc *desc, u8 *out);
int (*finup)(struct shash_desc *desc, const u8 *data,
int (*digest)(struct shash_desc *desc, const u8 *data,
int (*export)(struct shash_desc *desc, void *out);
int (*import)(struct shash_desc *desc, const void *in);
int (*export_core)(struct shash_desc *desc, void *out);
int (*import_core)(struct shash_desc *desc, const void *in);
static inline void *shash_desc_ctx(struct shash_desc *desc)
int crypto_shash_digest(struct shash_desc *desc, const u8 *data,
int crypto_shash_export(struct shash_desc *desc, void *out);
int crypto_shash_import(struct shash_desc *desc, const void *in);
int crypto_shash_init(struct shash_desc *desc);
int crypto_shash_finup(struct shash_desc *desc, const u8 *data,
int shash_ahash_update(struct ahash_request *req, struct shash_desc *desc);
int shash_ahash_finup(struct ahash_request *req, struct shash_desc *desc);
int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc);
int crypto_shash_export_core(struct shash_desc *desc, void *out);
int crypto_shash_import_core(struct shash_desc *desc, const void *in);
static inline int sm3_base_init(struct shash_desc *desc)
static inline int sm3_base_do_update_blocks(struct shash_desc *desc,
static inline int sm3_base_do_finup(struct shash_desc *desc,
static inline int sm3_base_finish(struct shash_desc *desc, u8 *out)
static void hmac_add_misc(struct shash_desc *desc, struct inode *inode,
struct shash_desc *desc;
struct shash_desc *desc;
static struct shash_desc *init_desc(char type, uint8_t hash_algo)
struct shash_desc *desc;