Searched refs:tfm (Results 26 - 50 of 96) sorted by relevance

1234

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/crypto/
H A Dmichael_mic.c48 static void michael_init(struct crypto_tfm *tfm) argument
50 struct michael_mic_ctx *mctx = crypto_tfm_ctx(tfm);
55 static void michael_update(struct crypto_tfm *tfm, const u8 *data, argument
58 struct michael_mic_ctx *mctx = crypto_tfm_ctx(tfm);
94 static void michael_final(struct crypto_tfm *tfm, u8 *out) argument
96 struct michael_mic_ctx *mctx = crypto_tfm_ctx(tfm);
125 static int michael_setkey(struct crypto_tfm *tfm, const u8 *key, argument
128 struct michael_mic_ctx *mctx = crypto_tfm_ctx(tfm);
132 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN;
H A Decb.c43 struct crypto_cipher *tfm,
46 int bsize = crypto_cipher_blocksize(tfm);
57 fn(crypto_cipher_tfm(tfm), wdst, wsrc);
74 struct crypto_blkcipher *tfm = desc->tfm; local
75 struct crypto_ecb_ctx *ctx = crypto_blkcipher_ctx(tfm);
88 struct crypto_blkcipher *tfm = desc->tfm; local
89 struct crypto_ecb_ctx *ctx = crypto_blkcipher_ctx(tfm);
97 static int crypto_ecb_init_tfm(struct crypto_tfm *tfm) argument
41 crypto_ecb_crypt(struct blkcipher_desc *desc, struct blkcipher_walk *walk, struct crypto_cipher *tfm, void (*fn)(struct crypto_tfm *, u8 *, const u8 *)) argument
112 crypto_ecb_exit_tfm(struct crypto_tfm *tfm) argument
[all...]
H A Dcrypto_null.c30 static int null_compress(struct crypto_tfm *tfm, const u8 *src, argument
40 static void null_init(struct crypto_tfm *tfm) argument
43 static void null_update(struct crypto_tfm *tfm, const u8 *data, argument
47 static void null_final(struct crypto_tfm *tfm, u8 *out) argument
50 static int null_setkey(struct crypto_tfm *tfm, const u8 *key, argument
54 static void null_crypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
H A Dcryptd.c49 static inline struct cryptd_state *cryptd_get_state(struct crypto_tfm *tfm) argument
51 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm);
90 desc.tfm = child;
105 struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(req->tfm);
114 struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(req->tfm);
125 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); local
127 cryptd_get_state(crypto_ablkcipher_tfm(tfm));
134 err = ablkcipher_enqueue_request(crypto_ablkcipher_alg(tfm), req);
151 static int cryptd_blkcipher_init_tfm(struct crypto_tfm *tfm) argument
153 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm);
169 cryptd_blkcipher_exit_tfm(struct crypto_tfm *tfm) argument
[all...]
H A Dtea.c48 static int tea_setkey(struct crypto_tfm *tfm, const u8 *in_key, argument
51 struct tea_ctx *ctx = crypto_tfm_ctx(tfm);
63 static void tea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
67 struct tea_ctx *ctx = crypto_tfm_ctx(tfm);
91 static void tea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
95 struct tea_ctx *ctx = crypto_tfm_ctx(tfm);
121 static int xtea_setkey(struct crypto_tfm *tfm, const u8 *in_key, argument
124 struct xtea_ctx *ctx = crypto_tfm_ctx(tfm);
136 static void xtea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
140 struct xtea_ctx *ctx = crypto_tfm_ctx(tfm);
157 xtea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
180 xeta_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
201 xeta_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
[all...]
H A Dxcbc.c37 * | <parent tfm>
101 struct crypto_xcbc_ctx *ctx = crypto_hash_ctx_aligned(pdesc->tfm);
102 int bs = crypto_hash_blocksize(pdesc->tfm);
115 struct crypto_hash *parent = pdesc->tfm;
117 struct crypto_cipher *tfm = ctx->child; local
155 crypto_cipher_encrypt_one(tfm, ctx->prev, ctx->prev);
163 crypto_cipher_encrypt_one(tfm, ctx->prev,
198 struct crypto_hash *parent = pdesc->tfm;
200 struct crypto_cipher *tfm = ctx->child; local
207 if ((err = crypto_cipher_setkey(tfm, ct
257 xcbc_init_tfm(struct crypto_tfm *tfm) argument
285 xcbc_exit_tfm(struct crypto_tfm *tfm) argument
[all...]
H A Dtcrypt.c109 struct crypto_hash *tfm; local
128 tfm = crypto_alloc_hash(algo, 0, CRYPTO_ALG_ASYNC);
129 if (IS_ERR(tfm)) {
131 PTR_ERR(tfm));
135 desc.tfm = tfm;
145 ret = crypto_hash_setkey(tfm, hash_tv[i].key,
159 hexdump(result, crypto_hash_digestsize(tfm));
162 crypto_hash_digestsize(tfm)) ?
189 ret = crypto_hash_setkey(tfm, hash_t
223 struct crypto_ablkcipher *tfm; local
493 struct crypto_blkcipher *tfm; local
739 struct crypto_hash *tfm; local
797 struct crypto_comp *tfm; local
[all...]
H A Dinternal.h112 int crypto_init_digest_ops(struct crypto_tfm *tfm);
113 int crypto_init_cipher_ops(struct crypto_tfm *tfm);
114 int crypto_init_compress_ops(struct crypto_tfm *tfm);
116 void crypto_exit_digest_ops(struct crypto_tfm *tfm);
117 void crypto_exit_cipher_ops(struct crypto_tfm *tfm);
118 void crypto_exit_compress_ops(struct crypto_tfm *tfm);
H A Darc4.c27 static int arc4_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument
30 struct arc4_ctx *ctx = crypto_tfm_ctx(tfm);
52 static void arc4_crypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument
54 struct arc4_ctx *ctx = crypto_tfm_ctx(tfm);
H A Dlrw.c88 struct crypto_tfm *tfm; member in struct:sinfo
101 s->fn(s->tfm, dst, dst); /* CC <- E(Key2,PP) */
132 .tfm = crypto_cipher_tfm(ctx->child),
183 struct priv *ctx = crypto_blkcipher_ctx(desc->tfm);
194 struct priv *ctx = crypto_blkcipher_ctx(desc->tfm);
202 static int init_tfm(struct crypto_tfm *tfm) argument
205 struct crypto_instance *inst = (void *)tfm->__crt_alg;
207 struct priv *ctx = crypto_tfm_ctx(tfm);
208 u32 *flags = &tfm->crt_flags;
223 static void exit_tfm(struct crypto_tfm *tfm) argument
[all...]
H A Ddeflate.c80 static int deflate_init(struct crypto_tfm *tfm) argument
82 struct deflate_ctx *ctx = crypto_tfm_ctx(tfm);
95 static void deflate_exit(struct crypto_tfm *tfm) argument
97 struct deflate_ctx *ctx = crypto_tfm_ctx(tfm);
103 static int deflate_compress(struct crypto_tfm *tfm, const u8 *src, argument
107 struct deflate_ctx *dctx = crypto_tfm_ctx(tfm);
132 static int deflate_decompress(struct crypto_tfm *tfm, const u8 *src, argument
137 struct deflate_ctx *dctx = crypto_tfm_ctx(tfm);
H A Dsha512.c164 sha512_init(struct crypto_tfm *tfm) argument
166 struct sha512_ctx *sctx = crypto_tfm_ctx(tfm);
179 sha384_init(struct crypto_tfm *tfm) argument
181 struct sha512_ctx *sctx = crypto_tfm_ctx(tfm);
194 sha512_update(struct crypto_tfm *tfm, const u8 *data, unsigned int len) argument
196 struct sha512_ctx *sctx = crypto_tfm_ctx(tfm);
234 sha512_final(struct crypto_tfm *tfm, u8 *hash) argument
236 struct sha512_ctx *sctx = crypto_tfm_ctx(tfm);
252 sha512_update(tfm, padding, pad_len);
255 sha512_update(tfm, (cons
265 sha384_final(struct crypto_tfm *tfm, u8 *hash) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/s390/crypto/
H A Dsha1_s390.c41 static void sha1_init(struct crypto_tfm *tfm) argument
43 struct s390_sha1_ctx *sctx = crypto_tfm_ctx(tfm);
53 static void sha1_update(struct crypto_tfm *tfm, const u8 *data, argument
56 struct s390_sha1_ctx *sctx = crypto_tfm_ctx(tfm);
94 static void sha1_final(struct crypto_tfm *tfm, u8 *out) argument
96 struct s390_sha1_ctx *sctx = crypto_tfm_ctx(tfm);
H A Daes_s390.c44 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument
47 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm);
48 u32 *flags = &tfm->crt_flags;
77 static void aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument
79 const struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm);
97 static void aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument
99 const struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm);
139 static int ecb_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument
142 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm);
159 return aes_set_key(tfm, in_ke
228 cbc_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, unsigned int key_len) argument
[all...]
H A Ddes_s390.c48 static int des_setkey(struct crypto_tfm *tfm, const u8 *key, argument
51 struct crypt_s390_des_ctx *dctx = crypto_tfm_ctx(tfm);
52 u32 *flags = &tfm->crt_flags;
62 static void des_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument
64 struct crypt_s390_des_ctx *dctx = crypto_tfm_ctx(tfm);
69 static void des_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument
71 struct crypt_s390_des_ctx *dctx = crypto_tfm_ctx(tfm);
150 struct crypt_s390_des_ctx *sctx = crypto_blkcipher_ctx(desc->tfm);
161 struct crypt_s390_des_ctx *sctx = crypto_blkcipher_ctx(desc->tfm);
193 struct crypt_s390_des_ctx *sctx = crypto_blkcipher_ctx(desc->tfm);
245 des3_128_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) argument
266 des3_128_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
274 des3_128_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
404 des3_192_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) argument
428 des3_192_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
436 des3_192_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
[all...]
H A Dsha256_s390.c34 static void sha256_init(struct crypto_tfm *tfm) argument
36 struct s390_sha256_ctx *sctx = crypto_tfm_ctx(tfm);
49 static void sha256_update(struct crypto_tfm *tfm, const u8 *data, argument
52 struct s390_sha256_ctx *sctx = crypto_tfm_ctx(tfm);
90 static void sha256_final(struct crypto_tfm *tfm, u8 *out) argument
92 struct s390_sha256_ctx *sctx = crypto_tfm_ctx(tfm);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/mac80211/
H A Dtkip.h22 void ieee80211_tkip_encrypt_data(struct crypto_blkcipher *tfm,
31 int ieee80211_tkip_decrypt_data(struct crypto_blkcipher *tfm,
H A Dwep.h29 void ieee80211_wep_encrypt_data(struct crypto_blkcipher *tfm, u8 *rc4key,
31 int ieee80211_wep_decrypt_data(struct crypto_blkcipher *tfm, u8 *rc4key,
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/
H A Desp4.c20 struct crypto_blkcipher *tfm; local
41 tfm = esp->conf.tfm;
42 desc.tfm = tfm;
44 blksize = ALIGN(crypto_blkcipher_blocksize(tfm), 4);
106 crypto_blkcipher_set_iv(tfm, esp->conf.ivec, esp->conf.ivlen);
128 crypto_blkcipher_get_iv(tfm, esp->conf.ivec, esp->conf.ivlen);
153 struct crypto_blkcipher *tfm = esp->conf.tfm; local
336 struct crypto_blkcipher *tfm; local
[all...]
H A Dah4.c217 struct crypto_hash *tfm; local
235 tfm = crypto_alloc_hash(x->aalg->alg_name, 0, CRYPTO_ALG_ASYNC);
236 if (IS_ERR(tfm))
239 ahp->tfm = tfm;
240 if (crypto_hash_setkey(tfm, ahp->key, ahp->key_len))
253 crypto_hash_digestsize(tfm)) {
255 x->aalg->alg_name, crypto_hash_digestsize(tfm),
279 crypto_free_hash(ahp->tfm);
294 crypto_free_hash(ahp->tfm);
[all...]
H A Dipcomp.c52 struct crypto_comp *tfm = *per_cpu_ptr(ipcd->tfms, cpu); local
53 int err = crypto_comp_decompress(tfm, start, plen, scratch, &dlen);
107 struct crypto_comp *tfm = *per_cpu_ptr(ipcd->tfms, cpu); local
108 int err = crypto_comp_compress(tfm, start, plen, scratch, &dlen);
316 struct crypto_comp *tfm = *per_cpu_ptr(tfms, cpu); local
317 crypto_free_comp(tfm);
332 struct crypto_comp *tfm; local
335 tfm = *per_cpu_ptr(tfms, cpu);
337 if (!strcmp(crypto_comp_name(tfm), alg_name)) {
356 struct crypto_comp *tfm local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ieee80211/
H A Dieee80211_crypt_ccmp.c52 struct crypto_cipher *tfm; member in struct:ieee80211_ccmp_data
60 static inline void ieee80211_ccmp_aes_encrypt(struct crypto_cipher *tfm, argument
63 crypto_cipher_encrypt_one(tfm, ct, pt);
75 priv->tfm = crypto_alloc_cipher("aes", 0, CRYPTO_ALG_ASYNC);
76 if (IS_ERR(priv->tfm)) {
79 priv->tfm = NULL;
87 if (priv->tfm)
88 crypto_free_cipher(priv->tfm);
98 if (_priv && _priv->tfm)
99 crypto_free_cipher(_priv->tfm);
110 ccmp_init_blocks(struct crypto_cipher *tfm, struct ieee80211_hdr_4addr *hdr, u8 * pn, size_t dlen, u8 * b0, u8 * auth, u8 * s0) argument
393 struct crypto_cipher *tfm = data->tfm; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv6/
H A Dipcomp6.c73 struct crypto_comp *tfm; local
94 tfm = *per_cpu_ptr(ipcd->tfms, cpu);
96 err = crypto_comp_decompress(tfm, start, plen, scratch, &dlen);
131 struct crypto_comp *tfm; local
150 tfm = *per_cpu_ptr(ipcd->tfms, cpu);
152 err = crypto_comp_compress(tfm, start, plen, scratch, &dlen);
327 struct crypto_comp *tfm = *per_cpu_ptr(tfms, cpu); local
328 crypto_free_comp(tfm);
343 struct crypto_comp *tfm; local
346 tfm
367 struct crypto_comp *tfm = crypto_alloc_comp(alg_name, 0, local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/sunrpc/auth_gss/
H A Dgss_spkm3_seal.c161 desc.tfm = crypto_alloc_hash(cksumname, 0, CRYPTO_ALG_ASYNC);
162 if (IS_ERR(desc.tfm))
164 cksum->len = crypto_hash_digestsize(desc.tfm);
167 err = crypto_hash_setkey(desc.tfm, key->data, key->len);
183 crypto_free_hash(desc.tfm);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/x86_64/crypto/
H A Daes.c230 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument
233 struct aes_ctx *ctx = crypto_tfm_ctx(tfm);
235 u32 *flags = &tfm->crt_flags;
287 asmlinkage void aes_enc_blk(struct crypto_tfm *tfm, u8 *out, const u8 *in);
288 asmlinkage void aes_dec_blk(struct crypto_tfm *tfm, u8 *out, const u8 *in);
290 static void aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
292 aes_enc_blk(tfm, dst, src);
295 static void aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument
297 aes_dec_blk(tfm, dst, src);

Completed in 189 milliseconds

1234