Searched refs:tfm (Results 151 - 175 of 470) sorted by relevance

1234567891011>>

/linux-master/arch/s390/crypto/
H A Dcrc32-vx.c79 static int crc32_vx_cra_init_zero(struct crypto_tfm *tfm) argument
81 struct crc_ctx *mctx = crypto_tfm_ctx(tfm);
87 static int crc32_vx_cra_init_invert(struct crypto_tfm *tfm) argument
89 struct crc_ctx *mctx = crypto_tfm_ctx(tfm);
97 struct crc_ctx *mctx = crypto_shash_ctx(desc->tfm);
104 static int crc32_vx_setkey(struct crypto_shash *tfm, const u8 *newkey, argument
107 struct crc_ctx *mctx = crypto_shash_ctx(tfm);
115 static int crc32be_vx_setkey(struct crypto_shash *tfm, const u8 *newkey, argument
118 struct crc_ctx *mctx = crypto_shash_ctx(tfm);
196 return __ ## alg ## _vx_finup(crypto_shash_ctx(desc->tfm), \
[all...]
/linux-master/net/sunrpc/auth_gss/
H A Dgss_krb5_crypto.c88 * @tfm: initialized cipher transform
104 struct crypto_sync_skcipher *tfm,
113 SYNC_SKCIPHER_REQUEST_ON_STACK(req, tfm);
115 if (length % crypto_sync_skcipher_blocksize(tfm) != 0)
118 if (crypto_sync_skcipher_ivsize(tfm) > GSS_KRB5_MAX_BLOCKSIZE) {
119 dprintk("RPC: gss_k5encrypt: tfm iv size too large %d\n",
120 crypto_sync_skcipher_ivsize(tfm));
125 memcpy(local_iv, iv, crypto_sync_skcipher_ivsize(tfm));
130 skcipher_request_set_sync_tfm(req, tfm);
143 * @tfm
103 krb5_encrypt( struct crypto_sync_skcipher *tfm, void * iv, void * in, void * out, int length) argument
158 krb5_decrypt( struct crypto_sync_skcipher *tfm, void * iv, void * in, void * out, int length) argument
215 struct crypto_ahash *tfm; local
314 gss_krb5_checksum(struct crypto_ahash *tfm, char *header, int hdrlen, const struct xdr_buf *body, int body_offset, struct xdr_netobj *cksumout) argument
385 struct crypto_sync_skcipher *tfm = local
446 gss_encrypt_xdr_buf(struct crypto_sync_skcipher *tfm, struct xdr_buf *buf, int offset, struct page **pages) argument
487 struct crypto_sync_skcipher *tfm = local
529 gss_decrypt_xdr_buf(struct crypto_sync_skcipher *tfm, struct xdr_buf *buf, int offset) argument
929 krb5_etm_checksum(struct crypto_sync_skcipher *cipher, struct crypto_ahash *tfm, const struct xdr_buf *body, int body_offset, struct xdr_netobj *cksumout) argument
[all...]
/linux-master/net/xfrm/
H A Dxfrm_ipcomp.c45 struct crypto_comp *tfm = *this_cpu_ptr(ipcd->tfms); local
46 int err = crypto_comp_decompress(tfm, start, plen, scratch, &dlen);
128 struct crypto_comp *tfm; local
134 tfm = *this_cpu_ptr(ipcd->tfms);
135 err = crypto_comp_compress(tfm, start, plen, scratch, &dlen);
254 struct crypto_comp *tfm = *per_cpu_ptr(tfms, cpu); local
255 crypto_free_comp(tfm);
268 struct crypto_comp *tfm; local
271 tfm = this_cpu_read(*pos->tfms);
273 if (!strcmp(crypto_comp_name(tfm), alg_nam
292 struct crypto_comp *tfm = crypto_alloc_comp(alg_name, 0, local
[all...]
/linux-master/arch/x86/crypto/
H A Daesni-intel_glue.c209 aesni_rfc4106_gcm_ctx *aesni_rfc4106_gcm_ctx_get(struct crypto_aead *tfm) argument
211 return aes_align_addr(crypto_aead_ctx(tfm));
215 generic_gcmaes_ctx *generic_gcmaes_ctx_get(struct crypto_aead *tfm) argument
217 return aes_align_addr(crypto_aead_ctx(tfm));
226 static inline struct aesni_xts_ctx *aes_xts_ctx(struct crypto_skcipher *tfm) argument
228 return aes_align_addr(crypto_skcipher_ctx(tfm));
251 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument
254 return aes_set_key_common(aes_ctx(crypto_tfm_ctx(tfm)), in_key,
258 static void aesni_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
260 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm));
271 aesni_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
284 aesni_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int len) argument
292 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
314 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
336 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
358 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
380 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
436 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
510 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
559 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
649 generic_gcmaes_set_authsize(struct crypto_aead *tfm, unsigned int authsize) argument
781 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
800 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
826 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
854 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
880 xts_aesni_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen) argument
903 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
1154 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
1171 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local
[all...]
H A Dpolyval-clmulni_glue.c52 static inline struct polyval_tfm_ctx *polyval_tfm_ctx(struct crypto_shash *tfm) argument
54 return PTR_ALIGN(crypto_shash_ctx(tfm), POLYVAL_ALIGN);
81 static int polyval_x86_setkey(struct crypto_shash *tfm, argument
84 struct polyval_tfm_ctx *tctx = polyval_tfm_ctx(tfm);
114 const struct polyval_tfm_ctx *tctx = polyval_tfm_ctx(desc->tfm);
155 const struct polyval_tfm_ctx *tctx = polyval_tfm_ctx(desc->tfm);
H A Dblowfish_glue.c43 static void blowfish_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
45 blowfish_enc_blk(crypto_tfm_ctx(tfm), dst, src);
48 static void blowfish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
50 blowfish_dec_blk(crypto_tfm_ctx(tfm), dst, src);
53 static int blowfish_setkey_skcipher(struct crypto_skcipher *tfm, argument
56 return blowfish_setkey(&tfm->base, key, keylen);
H A Dsm4_aesni_avx_glue.c31 static int sm4_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
34 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm);
75 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
76 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm);
84 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
85 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm);
93 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
94 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm);
127 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
128 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm);
192 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
[all...]
/linux-master/arch/arm64/crypto/
H A Daes-glue.c137 static int skcipher_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, argument
140 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
145 static int __maybe_unused xts_set_key(struct crypto_skcipher *tfm, argument
148 struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
151 ret = xts_verify_key(tfm, in_key, key_len);
162 static int __maybe_unused essiv_cbc_set_key(struct crypto_skcipher *tfm, argument
166 struct crypto_aes_essiv_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
181 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
182 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
201 struct crypto_skcipher *tfm local
222 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
251 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
279 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
336 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
391 essiv_cbc_init_tfm(struct crypto_skcipher *tfm) argument
400 essiv_cbc_exit_tfm(struct crypto_skcipher *tfm) argument
409 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
431 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
453 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
499 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
543 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
615 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
800 cbcmac_setkey(struct crypto_shash *tfm, const u8 *in_key, unsigned int key_len) argument
817 cmac_setkey(struct crypto_shash *tfm, const u8 *in_key, unsigned int key_len) argument
841 xcbc_setkey(struct crypto_shash *tfm, const u8 *in_key, unsigned int key_len) argument
[all...]
H A Daes-ce-glue.c46 static void aes_cipher_encrypt(struct crypto_tfm *tfm, u8 dst[], u8 const src[]) argument
48 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm);
60 static void aes_cipher_decrypt(struct crypto_tfm *tfm, u8 dst[], u8 const src[]) argument
62 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm);
142 int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, argument
145 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm);
/linux-master/crypto/
H A Dghash-generic.c55 static int ghash_setkey(struct crypto_shash *tfm, argument
58 struct ghash_ctx *ctx = crypto_shash_ctx(tfm);
82 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm);
134 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm);
143 static void ghash_exit_tfm(struct crypto_tfm *tfm) argument
145 struct ghash_ctx *ctx = crypto_tfm_ctx(tfm);
H A Dgeniv.c19 static int aead_geniv_setkey(struct crypto_aead *tfm, argument
22 struct aead_geniv_ctx *ctx = crypto_aead_ctx(tfm);
27 static int aead_geniv_setauthsize(struct crypto_aead *tfm, argument
30 struct aead_geniv_ctx *ctx = crypto_aead_ctx(tfm);
153 void aead_exit_geniv(struct crypto_aead *tfm) argument
155 struct aead_geniv_ctx *ctx = crypto_aead_ctx(tfm);
H A Dpolyval-generic.c119 static int polyval_setkey(struct crypto_shash *tfm, argument
122 struct polyval_tfm_ctx *ctx = crypto_shash_ctx(tfm);
156 const struct polyval_tfm_ctx *ctx = crypto_shash_ctx(desc->tfm);
196 const struct polyval_tfm_ctx *ctx = crypto_shash_ctx(desc->tfm);
204 static void polyval_exit_tfm(struct crypto_tfm *tfm) argument
206 struct polyval_tfm_ctx *ctx = crypto_tfm_ctx(tfm);
H A Dcrc32_generic.c22 static int crc32_cra_init(struct crypto_tfm *tfm) argument
24 u32 *key = crypto_tfm_ctx(tfm);
49 u32 *mctx = crypto_shash_ctx(desc->tfm);
91 return __crc32_finup(crypto_shash_ctx(desc->tfm), data, len,
/linux-master/drivers/crypto/amlogic/
H A Damlogic-gxl.h155 int meson_aes_setkey(struct crypto_skcipher *tfm, const u8 *key,
157 int meson_cipher_init(struct crypto_tfm *tfm);
158 void meson_cipher_exit(struct crypto_tfm *tfm);
/linux-master/drivers/crypto/intel/qat/qat_common/
H A Dqat_comp_algs.c72 struct crypto_acomp *tfm = crypto_acomp_reqtfm(areq); local
81 crypto_tfm_alg_driver_name(crypto_acomp_tfm(tfm)),
109 struct crypto_acomp *tfm = crypto_acomp_reqtfm(areq); local
127 crypto_tfm_alg_driver_name(crypto_acomp_tfm(tfm)),
194 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp_tfm); local
195 struct qat_compression_ctx *ctx = crypto_tfm_ctx(tfm);
199 if (tfm->node == NUMA_NO_NODE)
202 node = tfm->node;
217 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp_tfm); local
218 struct qat_compression_ctx *ctx = crypto_tfm_ctx(tfm);
230 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp_tfm); local
[all...]
/linux-master/include/crypto/
H A Dcast6.h19 int cast6_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen);
/linux-master/lib/
H A Dcrc-t10dif.c75 desc.shash.tfm = rcu_dereference(crct10dif_tfm);
112 struct crypto_shash *tfm; local
119 tfm = rcu_dereference(crct10dif_tfm);
121 crypto_shash_driver_name(tfm));
H A Dcrc64-rocksoft.c69 desc.shash.tfm = rcu_dereference(crc64_rocksoft_tfm);
106 struct crypto_shash *tfm; local
113 tfm = rcu_dereference(crc64_rocksoft_tfm);
115 crypto_shash_driver_name(tfm));
/linux-master/include/crypto/internal/
H A Dblake2b.h72 static inline int crypto_blake2b_setkey(struct crypto_shash *tfm, argument
75 struct blake2b_tfm_ctx *tctx = crypto_shash_ctx(tfm);
88 const struct blake2b_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm);
90 unsigned int outlen = crypto_shash_digestsize(desc->tfm);
/linux-master/drivers/crypto/nx/
H A Dnx-aes-cbc.c21 static int cbc_aes_nx_set_key(struct crypto_skcipher *tfm, argument
25 struct nx_crypto_ctx *nx_ctx = crypto_skcipher_ctx(tfm);
56 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
57 struct nx_crypto_ctx *nx_ctx = crypto_skcipher_ctx(tfm);
H A Dnx-aes-ecb.c21 static int ecb_aes_nx_set_key(struct crypto_skcipher *tfm, argument
25 struct nx_crypto_ctx *nx_ctx = crypto_skcipher_ctx(tfm);
56 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
57 struct nx_crypto_ctx *nx_ctx = crypto_skcipher_ctx(tfm);
H A Dnx-842.h180 int nx842_crypto_init(struct crypto_tfm *tfm, struct nx842_driver *driver);
181 void nx842_crypto_exit(struct crypto_tfm *tfm);
182 int nx842_crypto_compress(struct crypto_tfm *tfm,
185 int nx842_crypto_decompress(struct crypto_tfm *tfm,
/linux-master/net/wireless/
H A Dlib80211_crypt_ccmp.c52 struct crypto_aead *tfm; member in struct:lib80211_ccmp_data
68 priv->tfm = crypto_alloc_aead("ccm(aes)", 0, CRYPTO_ALG_ASYNC);
69 if (IS_ERR(priv->tfm)) {
70 priv->tfm = NULL;
78 if (priv->tfm)
79 crypto_free_aead(priv->tfm);
89 if (_priv && _priv->tfm)
90 crypto_free_aead(_priv->tfm);
209 req = aead_request_alloc(key->tfm, GFP_ATOMIC);
313 req = aead_request_alloc(key->tfm, GFP_ATOMI
351 struct crypto_aead *tfm = data->tfm; local
[all...]
/linux-master/drivers/crypto/ccp/
H A Dccp-crypto-des3.c37 static int ccp_des3_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
40 struct ccp_crypto_skcipher_alg *alg = ccp_crypto_skcipher_alg(tfm);
41 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm);
44 err = verify_skcipher_des3_key(tfm, key);
63 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
64 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm);
116 static int ccp_des3_init_tfm(struct crypto_skcipher *tfm) argument
118 struct ccp_ctx *ctx = crypto_skcipher_ctx_dma(tfm);
123 crypto_skcipher_set_reqsize_dma(tfm, sizeof(struct ccp_des3_req_ctx));
/linux-master/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss.h199 int sun4i_hash_crainit(struct crypto_tfm *tfm);
200 void sun4i_hash_craexit(struct crypto_tfm *tfm);
226 int sun4i_ss_cipher_init(struct crypto_tfm *tfm);
227 void sun4i_ss_cipher_exit(struct crypto_tfm *tfm);
228 int sun4i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key,
230 int sun4i_ss_des_setkey(struct crypto_skcipher *tfm, const u8 *key,
232 int sun4i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key,
234 int sun4i_ss_prng_generate(struct crypto_rng *tfm, const u8 *src,
236 int sun4i_ss_prng_seed(struct crypto_rng *tfm, const u8 *seed, unsigned int slen);

Completed in 180 milliseconds

1234567891011>>