/openbmc/linux/crypto/ |
H A D | rng.c | 31 int crypto_rng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) in crypto_rng_reset() argument 33 struct rng_alg *alg = crypto_rng_alg(tfm); in crypto_rng_reset() 52 err = alg->seed(tfm, seed, slen); in crypto_rng_reset() 60 static int crypto_rng_init_tfm(struct crypto_tfm *tfm) in crypto_rng_init_tfm() argument
|
H A D | michael_mic.c | 50 struct michael_mic_ctx *ctx = crypto_shash_ctx(desc->tfm); in michael_init() 129 static int michael_setkey(struct crypto_shash *tfm, const u8 *key, in michael_setkey() argument 132 struct michael_mic_ctx *mctx = crypto_shash_ctx(tfm); in michael_setkey()
|
H A D | aria_generic.c | 174 int aria_set_key(struct crypto_tfm *tfm, const u8 *in_key, unsigned int key_len) in aria_set_key() argument 176 struct aria_ctx *ctx = crypto_tfm_ctx(tfm); in aria_set_key() 266 static void __aria_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in __aria_encrypt() argument 268 struct aria_ctx *ctx = crypto_tfm_ctx(tfm); in __aria_encrypt() 273 static void __aria_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in __aria_decrypt() argument 275 struct aria_ctx *ctx = crypto_tfm_ctx(tfm); in __aria_decrypt()
|
H A D | cast6_generic.c | 146 int cast6_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in cast6_setkey() argument 148 return __cast6_setkey(crypto_tfm_ctx(tfm), key, keylen); in cast6_setkey() 204 static void cast6_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast6_encrypt() argument 206 __cast6_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast6_encrypt() 241 static void cast6_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast6_decrypt() argument 243 __cast6_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast6_decrypt()
|
/openbmc/linux/arch/powerpc/crypto/ |
H A D | chacha-p10-glue.c | 126 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in chacha_p10() local 127 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in chacha_p10() 134 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xchacha_p10() local 135 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in xchacha_p10()
|
/openbmc/linux/drivers/thunderbolt/ |
H A D | domain.c | 707 struct crypto_shash *tfm; in tb_domain_challenge_switch_key() local 724 tfm = crypto_alloc_shash("hmac(sha256)", 0, 0); in tb_domain_challenge_switch_key() 725 if (IS_ERR(tfm)) in tb_domain_challenge_switch_key() 726 return PTR_ERR(tfm); in tb_domain_challenge_switch_key() 728 ret = crypto_shash_setkey(tfm, sw->key, TB_SWITCH_KEY_SIZE); in tb_domain_challenge_switch_key() 732 shash = kzalloc(sizeof(*shash) + crypto_shash_descsize(tfm), in tb_domain_challenge_switch_key() 739 shash->tfm = tfm; in tb_domain_challenge_switch_key() 752 crypto_free_shash(tfm); in tb_domain_challenge_switch_key() 760 crypto_free_shash(tfm); in tb_domain_challenge_switch_key()
|
/openbmc/linux/drivers/crypto/ |
H A D | s5p-sss.c | 1599 struct s5p_hash_ctx *tctx = crypto_ahash_ctx(tfm); in s5p_hash_init() 1610 crypto_ahash_digestsize(tfm)); in s5p_hash_init() 1612 switch (crypto_ahash_digestsize(tfm)) { in s5p_hash_init() 1650 struct s5p_hash_ctx *tctx = crypto_tfm_ctx(tfm); in s5p_hash_cra_init_alg() 1651 const char *alg_name = crypto_tfm_alg_name(tfm); in s5p_hash_cra_init_alg() 1662 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in s5p_hash_cra_init_alg() 1674 return s5p_hash_cra_init_alg(tfm); in s5p_hash_cra_init() 1685 struct s5p_hash_ctx *tctx = crypto_tfm_ctx(tfm); in s5p_hash_cra_exit() 1714 struct s5p_hash_ctx *tctx = crypto_ahash_ctx(tfm); in s5p_hash_import() 1996 dev->ctx = crypto_tfm_ctx(dev->req->base.tfm); in s5p_tasklet_cb() [all …]
|
H A D | sahara.c | 630 struct sahara_ctx *ctx = crypto_skcipher_ctx(tfm); in sahara_aes_setkey() 726 static int sahara_aes_init_tfm(struct crypto_skcipher *tfm) in sahara_aes_init_tfm() argument 728 const char *name = crypto_tfm_alg_name(&tfm->base); in sahara_aes_init_tfm() 729 struct sahara_ctx *ctx = crypto_skcipher_ctx(tfm); in sahara_aes_init_tfm() 746 struct sahara_ctx *ctx = crypto_skcipher_ctx(tfm); in sahara_aes_exit_tfm() 891 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sahara_sha_prepare_request() local 1023 if (crypto_tfm_alg_type(async_req->tfm) == in sahara_queue_manage() 1074 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sahara_sha_init() local 1079 switch (crypto_ahash_digestsize(tfm)) { in sahara_sha_init() 1139 static int sahara_sha_cra_init(struct crypto_tfm *tfm) in sahara_sha_cra_init() argument [all …]
|
/openbmc/linux/drivers/crypto/nx/ |
H A D | nx-842.c | 104 int nx842_crypto_init(struct crypto_tfm *tfm, struct nx842_driver *driver) in nx842_crypto_init() argument 106 struct nx842_crypto_ctx *ctx = crypto_tfm_ctx(tfm); in nx842_crypto_init() 124 void nx842_crypto_exit(struct crypto_tfm *tfm) in nx842_crypto_exit() argument 126 struct nx842_crypto_ctx *ctx = crypto_tfm_ctx(tfm); in nx842_crypto_exit() 249 int nx842_crypto_compress(struct crypto_tfm *tfm, in nx842_crypto_compress() argument 253 struct nx842_crypto_ctx *ctx = crypto_tfm_ctx(tfm); in nx842_crypto_compress() 432 int nx842_crypto_decompress(struct crypto_tfm *tfm, in nx842_crypto_decompress() argument 436 struct nx842_crypto_ctx *ctx = crypto_tfm_ctx(tfm); in nx842_crypto_decompress()
|
H A D | nx-sha256.c | 25 static int nx_crypto_ctx_sha256_init(struct crypto_tfm *tfm) in nx_crypto_ctx_sha256_init() argument 27 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); in nx_crypto_ctx_sha256_init() 30 err = nx_crypto_ctx_sha_init(tfm); in nx_crypto_ctx_sha256_init() 65 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); in nx_sha256_update() 184 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); in nx_sha256_final()
|
H A D | nx-sha512.c | 24 static int nx_crypto_ctx_sha512_init(struct crypto_tfm *tfm) in nx_crypto_ctx_sha512_init() argument 26 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); in nx_crypto_ctx_sha512_init() 29 err = nx_crypto_ctx_sha_init(tfm); in nx_crypto_ctx_sha512_init() 65 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); in nx_sha512_update() 187 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base); in nx_sha512_final()
|
/openbmc/linux/net/sunrpc/auth_gss/ |
H A D | gss_krb5_unseal.c | 76 struct crypto_ahash *tfm = ctx->initiate ? in gss_krb5_verify_mic_v2() local 109 if (gss_krb5_checksum(tfm, ptr, GSS_KRB5_TOK_HDR_LEN, in gss_krb5_verify_mic_v2()
|
H A D | gss_krb5_seal.c | 108 struct crypto_ahash *tfm = ctx->initiate ? in gss_krb5_get_mic_v2() local 127 if (gss_krb5_checksum(tfm, krb5_hdr, GSS_KRB5_TOK_HDR_LEN, in gss_krb5_get_mic_v2()
|
H A D | gss_krb5_internal.h | 162 u32 gss_krb5_checksum(struct crypto_ahash *tfm, char *header, int hdrlen, 175 int gss_encrypt_xdr_buf(struct crypto_sync_skcipher *tfm, 179 int gss_decrypt_xdr_buf(struct crypto_sync_skcipher *tfm, 205 struct crypto_ahash *tfm, const struct xdr_buf *body,
|
/openbmc/openbmc/meta-arm/meta-arm/classes/ |
H A D | tfm_sign_image.bbclass | 12 TFM_IMAGE_SIGN_DIR = "${WORKDIR}/tfm-signed-images" 13 TFM_IMAGE_SIGN_DEPLOY_DIR = "${WORKDIR}/deploy-tfm-signed-images" 82 ${PYTHON} "${STAGING_LIBDIR_NATIVE}/tfm-scripts/wrapper/wrapper.py" \
|
/openbmc/linux/drivers/crypto/xilinx/ |
H A D | zynqmp-sha.c | 84 struct zynqmp_sha_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in zynqmp_sha_init() 86 dctx->fbk_req.tfm = tctx->fbk_tfm; in zynqmp_sha_init() 114 struct zynqmp_sha_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in zynqmp_sha_import() 116 dctx->fbk_req.tfm = tctx->fbk_tfm; in zynqmp_sha_import()
|
/openbmc/linux/net/mac802154/ |
H A D | llsec.c | 129 for (i = 0; i < ARRAY_SIZE(key->tfm); i++) { in llsec_key_alloc() 130 key->tfm[i] = crypto_alloc_aead("ccm(aes)", 0, in llsec_key_alloc() 132 if (IS_ERR(key->tfm[i])) in llsec_key_alloc() 134 if (crypto_aead_setkey(key->tfm[i], template->key, in llsec_key_alloc() 154 for (i = 0; i < ARRAY_SIZE(key->tfm); i++) in llsec_key_alloc() 155 if (!IS_ERR_OR_NULL(key->tfm[i])) in llsec_key_alloc() 156 crypto_free_aead(key->tfm[i]); in llsec_key_alloc() 169 for (i = 0; i < ARRAY_SIZE(key->tfm); i++) in llsec_key_release() 170 crypto_free_aead(key->tfm[i]); in llsec_key_release() 648 for (i = 0; i < ARRAY_SIZE(key->tfm); i++) in llsec_tfm_by_len() [all …]
|
/openbmc/linux/drivers/crypto/bcm/ |
H A D | cipher.c | 1930 alg_name = crypto_ahash_alg_name(tfm); in ahash_enqueue() 2031 alg_name = crypto_ahash_alg_name(tfm); in ahash_init() 2046 ctx->shash->tfm = hash; in ahash_init() 2159 crypto_free_shash(ctx->shash->tfm); in ahash_final() 2232 crypto_free_shash(ctx->shash->tfm); in ahash_finup() 2792 tfm->crt_flags & CRYPTO_TFM_REQ_MASK; in aead_authenc_setkey() 4182 return generic_cra_init(tfm, cipher_alg); in skcipher_init_tfm() 4188 struct crypto_alg *alg = tfm->__crt_alg; in ahash_cra_init() 4194 err = generic_cra_init(tfm, cipher_alg); in ahash_cra_init() 4212 struct crypto_alg *alg = tfm->__crt_alg; in aead_cra_init() [all …]
|
/openbmc/linux/drivers/crypto/intel/keembay/ |
H A D | keembay-ocs-ecc.c | 535 static int kmb_ocs_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, in kmb_ocs_ecdh_set_secret() argument 538 struct ocs_ecc_ctx *tctx = kpp_tfm_ctx(tfm); in kmb_ocs_ecdh_set_secret() 795 static int kmb_ocs_ecdh_nist_p256_init_tfm(struct crypto_kpp *tfm) in kmb_ocs_ecdh_nist_p256_init_tfm() argument 797 struct ocs_ecc_ctx *tctx = kpp_tfm_ctx(tfm); in kmb_ocs_ecdh_nist_p256_init_tfm() 802 static int kmb_ocs_ecdh_nist_p384_init_tfm(struct crypto_kpp *tfm) in kmb_ocs_ecdh_nist_p384_init_tfm() argument 804 struct ocs_ecc_ctx *tctx = kpp_tfm_ctx(tfm); in kmb_ocs_ecdh_nist_p384_init_tfm() 809 static void kmb_ocs_ecdh_exit_tfm(struct crypto_kpp *tfm) in kmb_ocs_ecdh_exit_tfm() argument 811 struct ocs_ecc_ctx *tctx = kpp_tfm_ctx(tfm); in kmb_ocs_ecdh_exit_tfm() 816 static unsigned int kmb_ocs_ecdh_max_size(struct crypto_kpp *tfm) in kmb_ocs_ecdh_max_size() argument 818 struct ocs_ecc_ctx *tctx = kpp_tfm_ctx(tfm); in kmb_ocs_ecdh_max_size()
|
/openbmc/linux/drivers/crypto/cavium/cpt/ |
H A D | cptvf_algs.c | 98 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in create_ctx_hdr() local 99 struct cvm_enc_ctx *ctx = crypto_skcipher_ctx(tfm); in create_ctx_hdr() 102 u32 enc_iv_len = crypto_skcipher_ivsize(tfm); in create_ctx_hdr() 195 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cvm_enc_dec() local 197 u32 enc_iv_len = crypto_skcipher_ivsize(tfm); in cvm_enc_dec() 334 static int cvm_enc_dec_init(struct crypto_skcipher *tfm) in cvm_enc_dec_init() argument 336 crypto_skcipher_set_reqsize_dma(tfm, sizeof(struct cvm_req_ctx)); in cvm_enc_dec_init()
|
/openbmc/linux/arch/arm64/crypto/ |
H A D | chacha-neon-glue.c | 140 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in chacha_neon() local 141 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in chacha_neon() 148 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xchacha_neon() local 149 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); in xchacha_neon()
|
/openbmc/linux/fs/crypto/ |
H A D | fname.c | 98 struct crypto_skcipher *tfm = ci->ci_enc_key.tfm; in fscrypt_fname_encrypt() local 116 req = skcipher_request_alloc(tfm, GFP_NOFS); in fscrypt_fname_encrypt() 155 struct crypto_skcipher *tfm = ci->ci_enc_key.tfm; in fname_decrypt() local 160 req = skcipher_request_alloc(tfm, GFP_NOFS); in fname_decrypt()
|
/openbmc/linux/drivers/crypto/aspeed/ |
H A D | aspeed-hace-crypto.c | 30 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in aspeed_crypto_do_fallback() local 31 struct aspeed_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in aspeed_crypto_do_fallback() 432 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in aspeed_des_setkey() local 444 rc = crypto_des_verify_key(tfm, key); in aspeed_des_setkey() 449 rc = crypto_des3_ede_verify_key(tfm, key); in aspeed_des_setkey() 702 static int aspeed_crypto_cra_init(struct crypto_skcipher *tfm) in aspeed_crypto_cra_init() argument 704 struct aspeed_cipher_ctx *ctx = crypto_skcipher_ctx(tfm); in aspeed_crypto_cra_init() 705 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in aspeed_crypto_cra_init() 706 const char *name = crypto_tfm_alg_name(&tfm->base); in aspeed_crypto_cra_init() 730 static void aspeed_crypto_cra_exit(struct crypto_skcipher *tfm) in aspeed_crypto_cra_exit() argument [all …]
|
/openbmc/linux/arch/x86/crypto/ |
H A D | camellia_glue.c | 35 static void camellia_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in camellia_encrypt() argument 37 camellia_enc_blk(crypto_tfm_ctx(tfm), dst, src); in camellia_encrypt() 40 static void camellia_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in camellia_decrypt() argument 42 camellia_dec_blk(crypto_tfm_ctx(tfm), dst, src); in camellia_decrypt() 1254 static int camellia_setkey(struct crypto_tfm *tfm, const u8 *key, in camellia_setkey() argument 1257 return __camellia_setkey(crypto_tfm_ctx(tfm), key, key_len); in camellia_setkey() 1260 static int camellia_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, in camellia_setkey_skcipher() argument 1263 return camellia_setkey(&tfm->base, key, key_len); in camellia_setkey_skcipher()
|
/openbmc/linux/drivers/crypto/gemini/ |
H A D | sl3516-ce.h | 331 int sl3516_ce_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, 333 int sl3516_ce_cipher_init(struct crypto_tfm *tfm); 334 void sl3516_ce_cipher_exit(struct crypto_tfm *tfm);
|