/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/openssl-0.9.8e/crypto/pkcs7/ |
H A D | pk7_attr.c | 114 X509_ALGOR *alg; local 116 if(!(alg = X509_ALGOR_new())) { 120 ASN1_OBJECT_free(alg->algorithm); 121 alg->algorithm = OBJ_nid2obj (nid); 124 if(!(alg->parameter = ASN1_TYPE_new())) { 136 alg->parameter->value.integer = nbit; 137 alg->parameter->type = V_ASN1_INTEGER; 139 sk_X509_ALGOR_push (sk, alg);
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/crypto/ |
H A D | lrw.c | 241 struct crypto_alg *alg; local 248 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, 250 if (IS_ERR(alg)) 251 return ERR_CAST(alg); 253 inst = crypto_alloc_instance("lrw", alg); 257 inst->alg.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER; 258 inst->alg.cra_priority = alg->cra_priority; 259 inst->alg.cra_blocksize = alg [all...] |
H A D | ecb.c | 121 struct crypto_alg *alg; local 128 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, 130 if (IS_ERR(alg)) 131 return ERR_CAST(alg); 133 inst = crypto_alloc_instance("ecb", alg); 137 inst->alg.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER; 138 inst->alg.cra_priority = alg->cra_priority; 139 inst->alg.cra_blocksize = alg [all...] |
H A D | cts.c | 276 struct crypto_alg *alg; local 283 alg = crypto_attr_alg(tb[1], CRYPTO_ALG_TYPE_BLKCIPHER, 285 err = PTR_ERR(alg); 286 if (IS_ERR(alg)) 290 if (!is_power_of_2(alg->cra_blocksize)) 293 inst = crypto_alloc_instance("cts", alg); 297 inst->alg.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER; 298 inst->alg.cra_priority = alg->cra_priority; 299 inst->alg [all...] |
H A D | algboss.c | 40 } alg; member in union:cryptomgr_param::__anon10695 56 char alg[CRYPTO_MAX_ALG_NAME]; member in struct:crypto_test_param 102 const char *name = larval->alg.cra_name; 154 param->attrs[i].alg.attr.rta_len = 155 sizeof(param->attrs[i].alg); 156 param->attrs[i].alg.attr.rta_type = CRYPTOA_ALG; 157 memcpy(param->attrs[i].alg.data.name, name, len); 186 param->type.data.type = larval->alg.cra_flags & ~CRYPTO_ALG_TESTED; 190 param->otype = larval->alg.cra_flags; 193 memcpy(param->larval, larval->alg 231 cryptomgr_schedule_test(struct crypto_alg *alg) argument [all...] |
H A D | cbc.c | 217 struct crypto_alg *alg; local 224 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, 226 if (IS_ERR(alg)) 227 return ERR_CAST(alg); 230 if (!is_power_of_2(alg->cra_blocksize)) 233 inst = crypto_alloc_instance("cbc", alg); 237 inst->alg.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER; 238 inst->alg.cra_priority = alg->cra_priority; 239 inst->alg [all...] |
H A D | xts.c | 217 struct crypto_alg *alg; local 224 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, 226 if (IS_ERR(alg)) 227 return ERR_CAST(alg); 229 inst = crypto_alloc_instance("xts", alg); 233 inst->alg.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER; 234 inst->alg.cra_priority = alg->cra_priority; 235 inst->alg.cra_blocksize = alg [all...] |
H A D | ahash.c | 367 struct ahash_alg *alg = crypto_ahash_alg(hash); local 376 hash->init = alg->init; 377 hash->update = alg->update; 378 hash->final = alg->final; 379 hash->finup = alg->finup ?: ahash_def_finup; 380 hash->digest = alg->digest; 382 if (alg->setkey) 383 hash->setkey = alg->setkey; 384 if (alg->export) 385 hash->export = alg 392 crypto_ahash_extsize(struct crypto_alg *alg) argument 402 crypto_ahash_show(struct seq_file *m, struct crypto_alg *alg) argument 432 ahash_prepare_alg(struct ahash_alg *alg) argument 447 crypto_register_ahash(struct ahash_alg *alg) argument 460 crypto_unregister_ahash(struct ahash_alg *alg) argument 486 crypto_init_ahash_spawn(struct crypto_ahash_spawn *spawn, struct hash_alg_common *alg, struct crypto_instance *inst) argument 497 struct crypto_alg *alg; local [all...] |
H A D | pcbc.c | 227 struct crypto_alg *alg; local 234 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, 236 if (IS_ERR(alg)) 237 return ERR_CAST(alg); 239 inst = crypto_alloc_instance("pcbc", alg); 243 inst->alg.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER; 244 inst->alg.cra_priority = alg->cra_priority; 245 inst->alg.cra_blocksize = alg [all...] |
H A D | hmac.c | 187 struct crypto_alg *alg; local 204 alg = &salg->base; 205 if (ds > alg->cra_blocksize || 206 ss < alg->cra_blocksize) 209 inst = shash_alloc_instance("hmac", alg); 219 inst->alg.base.cra_priority = alg->cra_priority; 220 inst->alg.base.cra_blocksize = alg->cra_blocksize; 221 inst->alg [all...] |
H A D | blkcipher.c | 406 struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; local 414 return alg->encrypt(&desc, req->dst, req->src, req->nbytes); 420 struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; local 427 return alg->decrypt(&desc, req->dst, req->src, req->nbytes); 430 static unsigned int crypto_blkcipher_ctxsize(struct crypto_alg *alg, u32 type, argument 433 struct blkcipher_alg *cipher = &alg->cra_blkcipher; 434 unsigned int len = alg->cra_ctxsize; 438 len = ALIGN(len, (unsigned long)alg->cra_alignmask + 1); 448 struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; local 453 if (!alg 466 struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; local 484 struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; local 497 crypto_blkcipher_show(struct seq_file *m, struct crypto_alg *alg) argument 520 struct crypto_alg *alg; local 555 struct crypto_alg *alg; local [all...] |
H A D | shash.c | 326 struct shash_alg *alg = __crypto_shash_alg(calg); local 349 if (alg->setkey) 351 if (alg->export) 353 if (alg->import) 449 struct shash_alg *alg = __crypto_shash_alg(calg); local 480 crt->digestsize = alg->digestsize; 495 static unsigned int crypto_shash_ctxsize(struct crypto_alg *alg, u32 type, argument 514 static unsigned int crypto_shash_extsize(struct crypto_alg *alg) argument 516 return alg->cra_ctxsize; 519 static void crypto_shash_show(struct seq_file *m, struct crypto_alg *alg) 521 crypto_shash_show(struct seq_file *m, struct crypto_alg *alg) argument 551 shash_prepare_alg(struct shash_alg *alg) argument 579 crypto_register_shash(struct shash_alg *alg) argument 592 crypto_unregister_shash(struct shash_alg *alg) argument 618 crypto_init_shash_spawn(struct crypto_shash_spawn *spawn, struct shash_alg *alg, struct crypto_instance *inst) argument 629 struct crypto_alg *alg; local [all...] |
H A D | rng.c | 52 struct rng_alg *alg = &tfm->__crt_alg->cra_rng; local 55 ops->rng_gen_random = alg->rng_make_random; 61 static void crypto_rng_show(struct seq_file *m, struct crypto_alg *alg) 63 static void crypto_rng_show(struct seq_file *m, struct crypto_alg *alg) argument 66 seq_printf(m, "seedsize : %u\n", alg->cra_rng.seedsize); 69 static unsigned int crypto_rng_ctxsize(struct crypto_alg *alg, u32 type, argument 72 return alg->cra_ctxsize;
|
H A D | gcm.c | 749 if (snprintf(inst->alg.cra_driver_name, CRYPTO_MAX_ALG_NAME, 755 memcpy(inst->alg.cra_name, full_name, CRYPTO_MAX_ALG_NAME); 757 inst->alg.cra_flags = CRYPTO_ALG_TYPE_AEAD; 758 inst->alg.cra_flags |= ctr->cra_flags & CRYPTO_ALG_ASYNC; 759 inst->alg.cra_priority = ctr->cra_priority; 760 inst->alg.cra_blocksize = 1; 761 inst->alg.cra_alignmask = ctr->cra_alignmask | (__alignof__(u64) - 1); 762 inst->alg.cra_type = &crypto_aead_type; 763 inst->alg.cra_aead.ivsize = 16; 764 inst->alg 969 struct crypto_alg *alg; local 1235 struct crypto_alg *alg; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/crypto/pkcs7/ |
H A D | pk7_attr.c | 101 X509_ALGOR *alg; local 103 if (!(alg = X509_ALGOR_new())) { 107 ASN1_OBJECT_free(alg->algorithm); 108 alg->algorithm = OBJ_nid2obj(nid); 111 if (!(alg->parameter = ASN1_TYPE_new())) { 123 alg->parameter->value.integer = nbit; 124 alg->parameter->type = V_ASN1_INTEGER; 126 sk_X509_ALGOR_push(sk, alg);
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/rtl8187se/ieee80211/ |
H A D | ieee80211_crypt.c | 107 struct ieee80211_crypto_alg *alg; local 112 alg = kzalloc(sizeof(*alg), GFP_KERNEL); 113 if (alg == NULL) 116 alg->ops = ops; 119 list_add(&alg->list, &hcrypt->algs); 139 struct ieee80211_crypto_alg *alg = local 141 if (alg->ops == ops) { 142 list_del(&alg->list); 143 del_alg = alg; 170 struct ieee80211_crypto_alg *alg = local 229 struct ieee80211_crypto_alg *alg = NULL; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/rtl8192su/ieee80211/ |
H A D | ieee80211_crypt.c | 106 struct ieee80211_crypto_alg *alg; local 111 alg = kzalloc(sizeof(*alg), GFP_KERNEL); 112 if (alg == NULL) 115 alg->ops = ops; 118 list_add(&alg->list, &hcrypt->algs); 138 struct ieee80211_crypto_alg *alg = local 140 if (alg->ops == ops) { 141 list_del(&alg->list); 142 del_alg = alg; 169 struct ieee80211_crypto_alg *alg = local 226 struct ieee80211_crypto_alg *alg = NULL; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl/crypto/pkcs7/ |
H A D | pk7_attr.c | 101 X509_ALGOR *alg; local 103 if (!(alg = X509_ALGOR_new())) { 107 ASN1_OBJECT_free(alg->algorithm); 108 alg->algorithm = OBJ_nid2obj(nid); 111 if (!(alg->parameter = ASN1_TYPE_new())) { 123 alg->parameter->value.integer = nbit; 124 alg->parameter->type = V_ASN1_INTEGER; 126 sk_X509_ALGOR_push(sk, alg);
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/rtl8192e/ieee80211/ |
H A D | ieee80211_crypt.c | 107 struct ieee80211_crypto_alg *alg; local 112 alg = kzalloc(sizeof(*alg), GFP_KERNEL); 113 if (alg == NULL) 116 alg->ops = ops; 119 list_add(&alg->list, &hcrypt->algs); 139 struct ieee80211_crypto_alg *alg = local 141 if (alg->ops == ops) { 142 list_del(&alg->list); 143 del_alg = alg; 170 struct ieee80211_crypto_alg *alg = local 235 struct ieee80211_crypto_alg *alg = local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/rtl8192u/ieee80211/ |
H A D | ieee80211_crypt.c | 107 struct ieee80211_crypto_alg *alg; local 112 alg = kzalloc(sizeof(*alg), GFP_KERNEL); 113 if (alg == NULL) 116 alg->ops = ops; 119 list_add(&alg->list, &hcrypt->algs); 139 struct ieee80211_crypto_alg *alg = local 141 if (alg->ops == ops) { 142 list_del(&alg->list); 143 del_alg = alg; 170 struct ieee80211_crypto_alg *alg = local 233 struct ieee80211_crypto_alg *alg = local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/x86/crypto/ |
H A D | twofish_glue.c | 60 static struct crypto_alg alg = { variable in typeref:struct:crypto_alg 69 .cra_list = LIST_HEAD_INIT(alg.cra_list), 83 return crypto_register_alg(&alg); 88 crypto_unregister_alg(&alg);
|
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/gsoap/source/gsoap/plugin/ |
H A D | smdevp.c | 82 int alg = SOAP_SMD_SIGN_RSA_SHA1; 85 char *sig = (char*)soap_malloc(soap, soap_smd_size(alg, key)); 88 if (soap_smd_begin(soap, alg, key, 0) 105 int alg = SOAP_SMD_VRFY_RSA_SHA1; 109 if (soap_smd_begin(soap, alg, key, 0) 122 int alg = SOAP_SMD_HMAC_SHA1; 126 char *sig = (char*)soap_malloc(soap, soap_smd_size(alg, NULL)); 128 if (soap_smd_begin(soap, alg, key, sizeof(key)) 144 int alg = SOAP_SMD_DGST_SHA1; 145 char *digest = (char*)soap_malloc(soap, soap_smd_size(alg, NUL 194 soap_smd_size(int alg, const void *key) argument 221 soap_smd_begin(struct soap *soap, int alg, const void *key, int keylen) argument 294 soap_smd_init(struct soap *soap, struct soap_smd_data *data, int alg, const void *key, int keylen) argument [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/gsoap/source_build_platform/gsoap/plugin/ |
H A D | smdevp.c | 82 int alg = SOAP_SMD_SIGN_RSA_SHA1; 85 char *sig = (char*)soap_malloc(soap, soap_smd_size(alg, key)); 88 if (soap_smd_begin(soap, alg, key, 0) 105 int alg = SOAP_SMD_VRFY_RSA_SHA1; 109 if (soap_smd_begin(soap, alg, key, 0) 122 int alg = SOAP_SMD_HMAC_SHA1; 126 char *sig = (char*)soap_malloc(soap, soap_smd_size(alg, NULL)); 128 if (soap_smd_begin(soap, alg, key, sizeof(key)) 144 int alg = SOAP_SMD_DGST_SHA1; 145 char *digest = (char*)soap_malloc(soap, soap_smd_size(alg, NUL 194 soap_smd_size(int alg, const void *key) argument 221 soap_smd_begin(struct soap *soap, int alg, const void *key, int keylen) argument 294 soap_smd_init(struct soap *soap, struct soap_smd_data *data, int alg, const void *key, int keylen) argument [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/wireless/ |
H A D | lib80211.c | 194 struct lib80211_crypto_alg *alg; local 196 alg = kzalloc(sizeof(*alg), GFP_KERNEL); 197 if (alg == NULL) 200 alg->ops = ops; 203 list_add(&alg->list, &lib80211_crypto_algs); 215 struct lib80211_crypto_alg *alg; local 219 list_for_each_entry(alg, &lib80211_crypto_algs, list) { 220 if (alg->ops == ops) 229 list_del(&alg 238 struct lib80211_crypto_alg *alg; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/mac80211/ |
H A D | rate.c | 33 struct rate_control_alg *alg; local 39 list_for_each_entry(alg, &rate_ctrl_algs, list) { 40 if (!strcmp(alg->ops->name, ops->name)) { 48 alg = kzalloc(sizeof(*alg), GFP_KERNEL); 49 if (alg == NULL) { 53 alg->ops = ops; 55 list_add_tail(&alg->list, &rate_ctrl_algs); 64 struct rate_control_alg *alg; local 67 list_for_each_entry(alg, 81 struct rate_control_alg *alg; local [all...] |