Searched refs:alg (Results 1 - 25 of 306) sorted by relevance

1234567891011>>

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/crypto/internal/
H A Dcompress.h25 extern int crypto_register_pcomp(struct pcomp_alg *alg);
26 extern int crypto_unregister_pcomp(struct pcomp_alg *alg);
H A Dhash.h38 struct ahash_alg alg; member in struct:ahash_instance
42 struct shash_alg alg; member in struct:shash_instance
67 int crypto_register_ahash(struct ahash_alg *alg);
68 int crypto_unregister_ahash(struct ahash_alg *alg);
74 struct hash_alg_common *alg,
84 int crypto_register_shash(struct shash_alg *alg);
85 int crypto_unregister_shash(struct shash_alg *alg);
91 struct shash_alg *alg,
112 static inline struct ahash_alg *__crypto_ahash_alg(struct crypto_alg *alg) argument
114 return container_of(__crypto_hash_alg_common(alg), struc
146 ahash_alloc_instance( const char *name, struct crypto_alg *alg) argument
199 shash_alloc_instance( const char *name, struct crypto_alg *alg) argument
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/rtl8192u/ieee80211/
H A Dautoload.c34 struct crypto_alg *alg = crypto_alg_lookup(name); local
35 if (alg == NULL) {
37 alg = crypto_alg_lookup(name);
39 return alg;
H A Dapi.c30 static inline int crypto_alg_get(struct crypto_alg *alg) argument
32 return try_inc_mod_count(alg->cra_module);
35 static inline void crypto_alg_put(struct crypto_alg *alg) argument
37 if (alg->cra_module)
38 __MOD_DEC_USE_COUNT(alg->cra_module);
43 struct crypto_alg *q, *alg = NULL; local
53 alg = q;
59 return alg;
128 struct crypto_alg *alg; local
130 alg
161 struct crypto_alg *alg = tfm->__crt_alg; local
170 crypto_register_alg(struct crypto_alg *alg) argument
190 crypto_unregister_alg(struct crypto_alg *alg) argument
213 struct crypto_alg *alg = crypto_alg_mod_lookup(name); local
[all...]
H A Dcrypto_compat.h39 struct crypto_alg *alg; local
41 alg = crypto_alg_mod_lookup(name, 0, CRYPTO_ALG_ASYNC);
42 err = PTR_ERR(alg);
43 if (IS_ERR(alg))
46 tfm = __crypto_alloc_tfm(alg, flags);
49 crypto_mod_put(alg);
H A Dproc.c54 struct crypto_alg *alg = (struct crypto_alg *)p; local
56 seq_printf(m, "name : %s\n", alg->cra_name);
58 (alg->cra_module ?
59 alg->cra_module->name :
62 switch (alg->cra_flags & CRYPTO_ALG_TYPE_MASK) {
65 seq_printf(m, "blocksize : %u\n", alg->cra_blocksize);
67 alg->cra_cipher.cia_min_keysize);
69 alg->cra_cipher.cia_max_keysize);
74 seq_printf(m, "blocksize : %u\n", alg->cra_blocksize);
76 alg
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/crypto/
H A Dapi.c37 static inline struct crypto_alg *crypto_alg_get(struct crypto_alg *alg) argument
39 atomic_inc(&alg->cra_refcnt);
40 return alg;
43 struct crypto_alg *crypto_mod_get(struct crypto_alg *alg) argument
45 return try_module_get(alg->cra_module) ? crypto_alg_get(alg) : NULL;
49 void crypto_mod_put(struct crypto_alg *alg) argument
51 struct module *module = alg->cra_module;
53 crypto_alg_put(alg);
60 return larval->alg
66 struct crypto_alg *q, *alg = NULL; local
103 crypto_larval_destroy(struct crypto_alg *alg) argument
136 struct crypto_alg *alg; local
159 crypto_larval_kill(struct crypto_alg *alg) argument
171 crypto_larval_wait(struct crypto_alg *alg) argument
198 struct crypto_alg *alg; local
210 struct crypto_alg *alg; local
252 struct crypto_alg *alg; local
324 crypto_ctxsize(struct crypto_alg *alg, u32 type, u32 mask) argument
349 crypto_shoot_alg(struct crypto_alg *alg) argument
357 __crypto_alloc_tfm(struct crypto_alg *alg, u32 type, u32 mask) argument
421 struct crypto_alg *alg; local
449 crypto_create_tfm(struct crypto_alg *alg, const struct crypto_type *frontend) argument
538 struct crypto_alg *alg; local
576 struct crypto_alg *alg; local
594 struct crypto_alg *alg = crypto_alg_mod_lookup(name, type, mask); local
[all...]
H A Dinternal.h43 struct crypto_alg alg; member in struct:crypto_larval
63 static inline unsigned int crypto_cipher_ctxsize(struct crypto_alg *alg) argument
65 return alg->cra_ctxsize;
68 static inline unsigned int crypto_compress_ctxsize(struct crypto_alg *alg) argument
70 return alg->cra_ctxsize;
73 struct crypto_alg *crypto_mod_get(struct crypto_alg *alg);
84 void crypto_larval_kill(struct crypto_alg *alg);
89 void crypto_shoot_alg(struct crypto_alg *alg);
90 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
92 void *crypto_create_tfm(struct crypto_alg *alg,
104 crypto_alg_put(struct crypto_alg *alg) argument
120 crypto_is_larval(struct crypto_alg *alg) argument
125 crypto_is_dead(struct crypto_alg *alg) argument
130 crypto_is_moribund(struct crypto_alg *alg) argument
[all...]
H A Daead.c80 static unsigned int crypto_aead_ctxsize(struct crypto_alg *alg, u32 type, argument
83 return alg->cra_ctxsize;
93 struct aead_alg *alg = &tfm->__crt_alg->cra_aead; local
96 if (max(alg->maxauthsize, alg->ivsize) > PAGE_SIZE / 8)
100 alg->setkey : setkey;
101 crt->encrypt = alg->encrypt;
102 crt->decrypt = alg->decrypt;
103 crt->givencrypt = alg->givencrypt ?: no_givcrypt;
104 crt->givdecrypt = alg
114 crypto_aead_show(struct seq_file *m, struct crypto_alg *alg) argument
148 struct aead_alg *alg = &tfm->__crt_alg->cra_aead; local
170 crypto_nivaead_show(struct seq_file *m, struct crypto_alg *alg) argument
195 struct crypto_alg *alg; local
219 struct crypto_alg *alg; local
337 crypto_nivaead_default(struct crypto_alg *alg, u32 type, u32 mask) argument
414 struct crypto_alg *alg; local
448 struct crypto_alg *alg; local
477 struct crypto_alg *alg; local
[all...]
H A Dproc.c81 struct crypto_alg *alg = list_entry(p, struct crypto_alg, cra_list); local
83 seq_printf(m, "name : %s\n", alg->cra_name);
84 seq_printf(m, "driver : %s\n", alg->cra_driver_name);
85 seq_printf(m, "module : %s\n", module_name(alg->cra_module));
86 seq_printf(m, "priority : %d\n", alg->cra_priority);
87 seq_printf(m, "refcnt : %d\n", atomic_read(&alg->cra_refcnt));
89 (alg->cra_flags & CRYPTO_ALG_TESTED) ?
92 if (alg->cra_flags & CRYPTO_ALG_LARVAL) {
94 seq_printf(m, "flags : 0x%x\n", alg->cra_flags);
98 if (alg
[all...]
H A Dalgapi.c31 struct crypto_alg *alg; local
33 alg = crypto_alg_lookup(name, type, mask);
35 if (alg) {
36 if (crypto_is_larval(alg)) {
37 struct crypto_larval *larval = (void *)alg;
40 crypto_mod_put(alg);
45 static inline int crypto_set_driver_name(struct crypto_alg *alg) argument
48 char *driver_name = alg->cra_driver_name;
54 len = strlcpy(driver_name, alg->cra_name, CRYPTO_MAX_ALG_NAME);
62 static int crypto_check_alg(struct crypto_alg *alg) argument
76 crypto_destroy_instance(struct crypto_alg *alg) argument
85 crypto_more_spawns(struct crypto_alg *alg, struct list_head *stack, struct list_head *top, struct list_head *secondary_spawns) argument
132 crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list, struct crypto_alg *nalg) argument
181 __crypto_register_alg(struct crypto_alg *alg) argument
247 struct crypto_alg *alg; local
326 struct crypto_alg *alg; local
353 crypto_register_alg(struct crypto_alg *alg) argument
374 crypto_remove_alg(struct crypto_alg *alg, struct list_head *list) argument
388 crypto_unregister_alg(struct crypto_alg *alg) argument
521 crypto_init_spawn(struct crypto_spawn *spawn, struct crypto_alg *alg, struct crypto_instance *inst, u32 mask) argument
541 crypto_init_spawn2(struct crypto_spawn *spawn, struct crypto_alg *alg, struct crypto_instance *inst, const struct crypto_type *frontend) argument
571 struct crypto_alg *alg; local
593 struct crypto_alg *alg; local
618 struct crypto_alg *alg; local
734 crypto_alloc_instance2(const char *name, struct crypto_alg *alg, unsigned int head) argument
765 crypto_alloc_instance(const char *name, struct crypto_alg *alg) argument
[all...]
H A Dpcompress.c39 static unsigned int crypto_pcomp_extsize(struct crypto_alg *alg) argument
41 return alg->cra_ctxsize;
49 static void crypto_pcomp_show(struct seq_file *m, struct crypto_alg *alg)
51 static void crypto_pcomp_show(struct seq_file *m, struct crypto_alg *alg) argument
76 int crypto_register_pcomp(struct pcomp_alg *alg) argument
78 struct crypto_alg *base = &alg->base;
88 int crypto_unregister_pcomp(struct pcomp_alg *alg) argument
90 return crypto_unregister_alg(&alg->base);
H A Dctr.c178 struct crypto_alg *alg; local
185 alg = crypto_attr_alg(tb[1], CRYPTO_ALG_TYPE_CIPHER,
187 if (IS_ERR(alg))
188 return ERR_CAST(alg);
192 if (alg->cra_blocksize < 4)
196 if (alg->cra_blocksize % 4)
199 inst = crypto_alloc_instance("ctr", alg);
203 inst->alg.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER;
204 inst->alg.cra_priority = alg
328 struct crypto_alg *alg; local
[all...]
H A Dablkcipher.c347 static unsigned int crypto_ablkcipher_ctxsize(struct crypto_alg *alg, u32 type, argument
350 return alg->cra_ctxsize;
366 struct ablkcipher_alg *alg = &tfm->__crt_alg->cra_ablkcipher; local
369 if (alg->ivsize > PAGE_SIZE / 8)
373 crt->encrypt = alg->encrypt;
374 crt->decrypt = alg->decrypt;
375 if (!alg->ivsize) {
380 crt->ivsize = alg->ivsize;
385 static void crypto_ablkcipher_show(struct seq_file *m, struct crypto_alg *alg)
387 static void crypto_ablkcipher_show(struct seq_file *m, struct crypto_alg *alg) argument
418 struct ablkcipher_alg *alg = &tfm->__crt_alg->cra_ablkcipher; local
438 crypto_givcipher_show(struct seq_file *m, struct crypto_alg *alg) argument
461 crypto_default_geniv(const struct crypto_alg *alg) argument
473 crypto_givcipher_default(struct crypto_alg *alg, u32 type, u32 mask) argument
558 struct crypto_alg *alg; local
598 struct crypto_alg *alg; local
624 struct crypto_alg *alg; local
[all...]
H A Dxcbc.c201 struct crypto_alg *alg; local
209 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER,
211 if (IS_ERR(alg))
212 return PTR_ERR(alg);
214 switch(alg->cra_blocksize) {
221 inst = shash_alloc_instance("xcbc", alg);
226 err = crypto_init_spawn(shash_instance_ctx(inst), alg,
232 alignmask = alg->cra_alignmask | 3;
233 inst->alg.base.cra_alignmask = alignmask;
234 inst->alg
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl/crypto/asn1/
H A Dx_algor.c81 int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval)
83 if (!alg)
86 if (alg->parameter == NULL)
87 alg->parameter = ASN1_TYPE_new();
88 if (alg->parameter == NULL)
91 if (alg) {
92 if (alg->algorithm)
93 ASN1_OBJECT_free(alg->algorithm);
94 alg->algorithm = aobj;
99 if (alg
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/crypto/asn1/
H A Dx_algor.c81 int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval)
83 if (!alg)
86 if (alg->parameter == NULL)
87 alg->parameter = ASN1_TYPE_new();
88 if (alg->parameter == NULL)
91 if (alg) {
92 if (alg->algorithm)
93 ASN1_OBJECT_free(alg->algorithm);
94 alg->algorithm = aobj;
99 if (alg
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/x86/crypto/
H A Dfpu.c104 struct crypto_alg *alg; local
111 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_BLKCIPHER,
113 if (IS_ERR(alg))
114 return ERR_CAST(alg);
116 inst = crypto_alloc_instance("fpu", alg);
120 inst->alg.cra_flags = alg->cra_flags;
121 inst->alg.cra_priority = alg->cra_priority;
122 inst->alg
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/test/
H A Dtest_padlock28 for alg in $ACE_ALGS; do
29 echo $alg
31 $PROG enc -e -k "$HASH" -$alg -bufsize 999 -engine padlock | \
32 $PROG enc -d -k "$HASH" -$alg | \
35 echo "-$alg encrypt test failed"
39 $PROG enc -e -k "$HASH" -$alg | \
40 $PROG enc -d -k "$HASH" -$alg -bufsize 999 -engine padlock | \
43 echo "-$alg decrypt test failed"
47 $PROG enc -e -k "$HASH" -$alg -engine padlock | \
48 $PROG enc -d -k "$HASH" -$alg
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl/test/
H A Dtest_padlock28 for alg in $ACE_ALGS; do
29 echo $alg
31 $PROG enc -e -k "$HASH" -$alg -bufsize 999 -engine padlock | \
32 $PROG enc -d -k "$HASH" -$alg | \
35 echo "-$alg encrypt test failed"
39 $PROG enc -e -k "$HASH" -$alg | \
40 $PROG enc -d -k "$HASH" -$alg -bufsize 999 -engine padlock | \
43 echo "-$alg decrypt test failed"
47 $PROG enc -e -k "$HASH" -$alg -engine padlock | \
48 $PROG enc -d -k "$HASH" -$alg
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl/crypto/engine/
H A Deng_fat.c103 static int int_def_cb(const char *alg, int len, void *arg) argument
106 if (alg == NULL)
108 if (!strncmp(alg, "ALL", len))
110 else if (!strncmp(alg, "RSA", len))
112 else if (!strncmp(alg, "DSA", len))
114 else if (!strncmp(alg, "ECDH", len))
116 else if (!strncmp(alg, "ECDSA", len))
118 else if (!strncmp(alg, "DH", len))
120 else if (!strncmp(alg, "RAND", len))
122 else if (!strncmp(alg, "CIPHER
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/crypto/engine/
H A Deng_fat.c103 static int int_def_cb(const char *alg, int len, void *arg) argument
106 if (alg == NULL)
108 if (!strncmp(alg, "ALL", len))
110 else if (!strncmp(alg, "RSA", len))
112 else if (!strncmp(alg, "DSA", len))
114 else if (!strncmp(alg, "ECDH", len))
116 else if (!strncmp(alg, "ECDSA", len))
118 else if (!strncmp(alg, "DH", len))
120 else if (!strncmp(alg, "RAND", len))
122 else if (!strncmp(alg, "CIPHER
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/openssl-0.9.8e/crypto/engine/
H A Deng_fat.c97 static int int_def_cb(const char *alg, int len, void *arg) argument
100 if (!strncmp(alg, "ALL", len))
102 else if (!strncmp(alg, "RSA", len))
104 else if (!strncmp(alg, "DSA", len))
106 else if (!strncmp(alg, "ECDH", len))
108 else if (!strncmp(alg, "ECDSA", len))
110 else if (!strncmp(alg, "DH", len))
112 else if (!strncmp(alg, "RAND", len))
114 else if (!strncmp(alg, "CIPHERS", len))
116 else if (!strncmp(alg, "DIGEST
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/gsoap/source/gsoap/plugin/
H A Dsmdevp.h100 { int alg; /**< The digest or signature algorithm used */ member in struct:soap_smd_data
115 size_t soap_smd_size(int alg, const void *key);
117 int soap_smd_begin(struct soap *soap, int alg, const void *key, int keylen);
120 int soap_smd_init(struct soap *soap, struct soap_smd_data *data, int alg, const void *key, int keylen);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/gsoap/source_build_platform/gsoap/plugin/
H A Dsmdevp.h100 { int alg; /**< The digest or signature algorithm used */ member in struct:soap_smd_data
115 size_t soap_smd_size(int alg, const void *key);
117 int soap_smd_begin(struct soap *soap, int alg, const void *key, int keylen);
120 int soap_smd_init(struct soap *soap, struct soap_smd_data *data, int alg, const void *key, int keylen);

Completed in 151 milliseconds

1234567891011>>