crypto_shash
static int sm4_cbcmac_setkey(struct crypto_shash *tfm, const u8 *key,
static int sm4_cmac_setkey(struct crypto_shash *tfm, const u8 *key,
static int sm4_xcbc_setkey(struct crypto_shash *tfm, const u8 *key,
static int s390_hmac_sha2_setkey(struct crypto_shash *tfm,
struct crypto_shash *tfm = desc->tfm;
static int __maybe_unused crypto_aes_cmac_setkey(struct crypto_shash *tfm,
static int __maybe_unused crypto_aes_xcbc_setkey(struct crypto_shash *tfm,
static int __maybe_unused crypto_aes_cbcmac_setkey(struct crypto_shash *tfm,
static inline struct crypto_shash *ahash_to_shash(struct crypto_ahash *tfm)
return *(struct crypto_shash **)crypto_ahash_ctx(tfm);
struct crypto_shash **ctx = crypto_tfm_ctx(tfm);
struct crypto_shash **ctx = crypto_tfm_ctx(tfm);
struct crypto_shash *shash;
struct crypto_shash *shash = ahash_to_shash(tfm);
return sizeof(struct crypto_shash *);
struct crypto_shash *tfm;
struct crypto_shash *tfm;
struct crypto_shash *tfm;
static int crypto_blake2b_setkey(struct crypto_shash *tfm,
static int crypto_cbcmac_digest_setkey(struct crypto_shash *parent,
struct crypto_shash *parent = pdesc->tfm;
struct crypto_shash *parent = pdesc->tfm;
struct crypto_shash *parent = pdesc->tfm;
struct crypto_shash *parent = pdesc->tfm;
static int cmac_init_tfm(struct crypto_shash *tfm)
static void cmac_exit_tfm(struct crypto_shash *tfm)
static int crypto_cmac_digest_setkey(struct crypto_shash *parent,
static int crc32_setkey(struct crypto_shash *hash, const u8 *key,
static int chksum_setkey(struct crypto_shash *tfm, const u8 *key,
struct crypto_shash *hash;
struct crypto_shash *child = ctx->child;
struct crypto_shash *child = ctx->child;
struct crypto_shash *child = ctx->child;
struct crypto_shash *child;
static int null_hash_setkey(struct crypto_shash *tfm, const u8 *key,
struct crypto_shash *hash;
struct crypto_shash *hash;
struct crypto_shash *parent = pdesc->tfm;
static int hmac_init_tfm(struct crypto_shash *parent)
struct crypto_shash *hash;
static void hmac_exit_tfm(struct crypto_shash *parent)
struct crypto_shash *hash;
static int hmac_setkey(struct crypto_shash *parent,
struct crypto_shash *hash = tctx->hash;
int crypto_kdf108_ctr_generate(struct crypto_shash *kmd,
int crypto_kdf108_setkey(struct crypto_shash *kmd,
struct crypto_shash *krb5_prepare_checksum(const struct krb5_enctype *krb5,
struct crypto_shash *shash,
struct crypto_shash *shash,
struct crypto_shash *shash,
struct crypto_shash *shash,
struct crypto_shash *krb5_prepare_checksum(const struct krb5_enctype *krb5,
struct crypto_shash *ci = NULL;
struct crypto_shash *crypto_krb5_prepare_checksum(const struct krb5_enctype *krb5,
struct crypto_shash *ci = NULL;
struct crypto_shash *shash,
struct crypto_shash *shash,
struct crypto_shash *tfm;
struct crypto_shash *shash,
struct crypto_shash *shash,
struct crypto_shash *shash;
struct crypto_shash *shash;
struct crypto_shash *shash;
struct crypto_shash *ci = NULL;
static int crypto_hmac_md5_setkey(struct crypto_shash *tfm,
static int crypto_hmac_sha1_setkey(struct crypto_shash *tfm,
static int crypto_hmac_sha224_setkey(struct crypto_shash *tfm,
static int crypto_hmac_sha256_setkey(struct crypto_shash *tfm,
static int crypto_hmac_sha384_setkey(struct crypto_shash *tfm,
static int crypto_hmac_sha512_setkey(struct crypto_shash *tfm,
struct crypto_shash *tfm = desc->tfm;
struct crypto_shash *tfm = desc->tfm;
static inline bool crypto_shash_block_only(struct crypto_shash *tfm)
int crypto_shash_tfm_digest(struct crypto_shash *tfm, const u8 *data,
struct crypto_shash *tfm = desc->tfm;
struct crypto_shash *tfm = desc->tfm;
static inline bool crypto_shash_final_nonzero(struct crypto_shash *tfm)
struct crypto_shash *tfm = desc->tfm;
struct crypto_shash *tfm = desc->tfm;
struct crypto_shash *hash = __crypto_shash_cast(tfm);
static inline bool crypto_shash_finup_max(struct crypto_shash *tfm)
struct crypto_shash *hash = __crypto_shash_cast(tfm);
int shash_no_setkey(struct crypto_shash *tfm, const u8 *key,
.tfmsize = offsetof(struct crypto_shash, base),
struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type,
static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg)
int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key,
struct crypto_shash *tfm = desc->tfm;
struct crypto_shash *tfm = desc->tfm;
struct crypto_shash **tfm_ret,
struct crypto_shash *tfm;
struct crypto_shash *stfm = NULL;
static int crypto_xcbc_digest_setkey(struct crypto_shash *parent,
struct crypto_shash *parent = pdesc->tfm;
struct crypto_shash *parent = pdesc->tfm;
static int xxhash64_setkey(struct crypto_shash *tfm, const u8 *key,
extern void drbd_csum_bio(struct crypto_shash *, struct bio *, void *);
extern void drbd_csum_ee(struct crypto_shash *, struct drbd_peer_request *,
struct crypto_shash *cram_hmac_tfm;
struct crypto_shash *integrity_tfm; /* checksums we compute, updates protected by connection->data->mutex */
struct crypto_shash *peer_integrity_tfm; /* checksums we verify, only accessed from receiver thread */
struct crypto_shash *csums_tfm;
struct crypto_shash *verify_tfm;
struct crypto_shash *verify_tfm;
struct crypto_shash *csums_tfm;
struct crypto_shash *cram_hmac_tfm;
struct crypto_shash *integrity_tfm;
alloc_shash(struct crypto_shash **tfm, char *tfm_name, int err_alg)
static void drbd_csum_ee_size(struct crypto_shash *h,
struct crypto_shash *peer_integrity_tfm = NULL;
static struct crypto_shash *drbd_crypto_alloc_digest_safe(
struct crypto_shash *tfm;
struct crypto_shash *verify_tfm = NULL;
struct crypto_shash *csums_tfm = NULL;
void drbd_csum_ee(struct crypto_shash *tfm, struct drbd_peer_request *peer_req, void *digest)
void drbd_csum_bio(struct crypto_shash *tfm, struct bio *bio, void *digest)
struct crypto_shash *xtfm;
struct crypto_shash *child;
struct crypto_shash *child_hash;
struct crypto_shash *hash;
struct crypto_shash *hash;
struct crypto_shash *shash = ctx->u.sha.hmac_tfm;
struct crypto_shash *hmac_tfm;
struct crypto_shash *hmac_tfm;
struct crypto_shash *shash_tfm;
struct crypto_shash *hash_tfm;
struct crypto_shash *hash_tfm = ctx->hash_tfm;
struct crypto_shash *shpre;
static struct otx_cpt_sdesc *alloc_sdesc(struct crypto_shash *alg);
static struct otx_cpt_sdesc *alloc_sdesc(struct crypto_shash *alg)
struct crypto_shash *hashalg;
static struct otx2_cpt_sdesc *alloc_sdesc(struct crypto_shash *alg);
static struct otx2_cpt_sdesc *alloc_sdesc(struct crypto_shash *alg)
struct crypto_shash *hashalg;
static int nx_crypto_ctx_aes_xcbc_init2(struct crypto_shash *tfm)
static int nx_xcbc_set_key(struct crypto_shash *desc,
static int nx_crypto_ctx_sha256_init(struct crypto_shash *tfm)
static int nx_crypto_ctx_sha512_init(struct crypto_shash *tfm)
int nx_crypto_ctx_sha_init(struct crypto_shash *tfm)
int nx_crypto_ctx_aes_xcbc_init(struct crypto_shash *tfm)
void nx_crypto_ctx_shash_exit(struct crypto_shash *tfm)
int nx_crypto_ctx_aes_xcbc_init(struct crypto_shash *tfm);
int nx_crypto_ctx_sha_init(struct crypto_shash *tfm);
void nx_crypto_ctx_shash_exit(struct crypto_shash *tfm);
struct crypto_shash *shash;
struct crypto_shash *fallback;
static int padlock_init_tfm(struct crypto_shash *hash)
static void padlock_exit_tfm(struct crypto_shash *hash)
struct crypto_shash *tfm = desc->tfm;
struct crypto_shash *fallback;
struct crypto_shash *shash;
struct crypto_shash *xtfm;
struct crypto_shash *xtfm;
struct crypto_shash *fallback_tfm;
struct crypto_shash *fbtfm = tctx->fbk_tfm;
struct crypto_shash *fbtfm = tctx->fbk_tfm;
struct crypto_shash *fbk_tfm;
static int zynqmp_sha_init_tfm(struct crypto_shash *hash)
struct crypto_shash *fallback_tfm;
static void zynqmp_sha_exit_tfm(struct crypto_shash *hash)
struct crypto_shash *fbtfm = tctx->fbk_tfm;
struct crypto_shash *journal_mac;
struct crypto_shash *internal_shash;
static int get_mac(struct crypto_shash **shash, struct crypto_ahash **ahash,
struct crypto_shash *shash;
struct crypto_shash *shash_tfm;
struct crypto_shash *tfm = NULL;
struct crypto_shash *tfm;
struct crypto_shash *tfm)
struct crypto_shash *hash_tfm;
struct crypto_shash *hmac_tfm;
struct crypto_shash *tfm;
int (*setkey)(struct crypto_shash *tfm, const u8 *key,
int (*init_tfm)(struct crypto_shash *tfm);
void (*exit_tfm)(struct crypto_shash *tfm);
struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type,
static inline struct crypto_tfm *crypto_shash_tfm(struct crypto_shash *tfm)
static inline void crypto_free_shash(struct crypto_shash *tfm)
static inline const char *crypto_shash_alg_name(struct crypto_shash *tfm)
static inline const char *crypto_shash_driver_name(struct crypto_shash *tfm)
static inline unsigned int crypto_shash_blocksize(struct crypto_shash *tfm)
static inline struct shash_alg *crypto_shash_alg(struct crypto_shash *tfm)
static inline unsigned int crypto_shash_digestsize(struct crypto_shash *tfm)
static inline unsigned int crypto_shash_statesize(struct crypto_shash *tfm)
static inline u32 crypto_shash_get_flags(struct crypto_shash *tfm)
static inline void crypto_shash_set_flags(struct crypto_shash *tfm, u32 flags)
static inline void crypto_shash_clear_flags(struct crypto_shash *tfm, u32 flags)
static inline unsigned int crypto_shash_descsize(struct crypto_shash *tfm)
int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key,
int crypto_shash_tfm_digest(struct crypto_shash *tfm, const u8 *data,
static inline void *crypto_shash_ctx(struct crypto_shash *tfm)
struct crypto_shash *shash)
static inline struct crypto_shash *crypto_spawn_shash(
static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm)
return container_of(tfm, struct crypto_shash, base);
static inline unsigned int crypto_shash_coresize(struct crypto_shash *tfm)
int shash_no_setkey(struct crypto_shash *tfm, const u8 *key,
int (*crypto_kdf_setkey)(struct crypto_shash *kmd,
int (*crypto_kdf_generate)(struct crypto_shash *kmd,
struct crypto_shash *kmd;
int crypto_kdf108_ctr_generate(struct crypto_shash *kmd,
int crypto_kdf108_setkey(struct crypto_shash *kmd,
struct crypto_shash *crypto_krb5_prepare_checksum(const struct krb5_enctype *krb5,
struct crypto_shash *shash,
struct crypto_shash;
struct crypto_shash *shash,
struct crypto_shash *shash,
struct crypto_shash *tx_Kc; /* Transmission checksum key */
struct crypto_shash *rx_Kc; /* Reception checksum key */
struct crypto_shash *shash;
struct crypto_shash *initiator_sign_shash;
struct crypto_shash *acceptor_sign_shash;
struct crypto_shash *shash = ctx->initiate ?
struct crypto_shash *shash = ctx->initiate ?
struct crypto_shash *tfm;
static struct crypto_shash *hmac_tfm;
static struct crypto_shash *evm_tfm[HASH_ALGO__LAST];
struct crypto_shash **tfm, *tmp_tfm;
struct crypto_shash *tfm;
static void ima_free_tfm(struct crypto_shash *tfm)
struct crypto_shash *tfm)
static struct crypto_shash *ima_shash_tfm;
struct crypto_shash *tfm;
struct crypto_shash *tfm)
struct crypto_shash *tfm;
struct crypto_shash *tfm)
struct crypto_shash *tfm;
static struct crypto_shash *ima_alloc_tfm(enum hash_algo algo)
struct crypto_shash *tfm = ima_shash_tfm;
struct crypto_shash *hash = NULL;
static int kdf_alloc(struct crypto_shash **hash, char *hashname)
struct crypto_shash *tfm;
static void kdf_dealloc(struct crypto_shash *hash)
static int keyctl_dh_compute_kdf(struct crypto_shash *hash,