/drivers/crypto/qce/ |
H A D | cipher.h | 62 struct crypto_alg *alg = tfm->__crt_alg; local 63 return container_of(alg, struct qce_alg_template, alg.crypto);
|
H A D | sha.h | 73 struct ahash_alg *alg = container_of(crypto_hash_alg_common(ahash), local 76 return container_of(alg, struct qce_alg_template, alg.ahash);
|
H A D | ablkcipher.c | 350 struct crypto_alg *alg; local 357 alg = &tmpl->alg.crypto; 359 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s", def->name); 360 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", 363 alg->cra_blocksize = def->blocksize; 364 alg->cra_ablkcipher.ivsize = def->ivsize; 365 alg->cra_ablkcipher.min_keysize = def->min_keysize; 366 alg->cra_ablkcipher.max_keysize = def->max_keysize; 367 alg [all...] |
H A D | sha.c | 503 struct ahash_alg *alg; local 513 alg = &tmpl->alg.ahash; 514 alg->init = qce_ahash_init; 515 alg->update = qce_ahash_update; 516 alg->final = qce_ahash_final; 517 alg->digest = qce_ahash_digest; 518 alg->export = qce_ahash_export; 519 alg->import = qce_ahash_import; 521 alg [all...] |
/drivers/crypto/ccp/ |
H A D | ccp-crypto-aes-xts.c | 224 struct crypto_alg *alg; local 233 alg = &ccp_alg->alg; 235 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s", def->name); 236 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", 238 alg->cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | CRYPTO_ALG_ASYNC | 241 alg->cra_blocksize = AES_BLOCK_SIZE; 242 alg->cra_ctxsize = sizeof(struct ccp_ctx); 243 alg->cra_priority = CCP_CRA_PRIORITY; 244 alg [all...] |
H A D | ccp-crypto.h | 36 struct crypto_alg alg; member in struct:ccp_crypto_ablkcipher_alg 49 struct ahash_alg alg; member in struct:ccp_crypto_ahash_alg 55 struct crypto_alg *alg = tfm->__crt_alg; local 57 return container_of(alg, struct ccp_crypto_ablkcipher_alg, alg); 63 struct crypto_alg *alg = tfm->__crt_alg; local 66 ahash_alg = container_of(alg, struct ahash_alg, halg.base); 68 return container_of(ahash_alg, struct ccp_crypto_ahash_alg, alg);
|
H A D | ccp-crypto-sha.c | 151 struct ccp_crypto_ahash_alg *alg = local 158 rctx->type = alg->type; 266 struct ccp_crypto_ahash_alg *alg = ccp_crypto_ahash_alg(tfm); local 269 hmac_tfm = crypto_alloc_shash(alg->child_alg, 0, 0); 272 alg->child_alg); 328 struct ahash_alg *alg; local 343 alg = &ccp_alg->alg; 344 alg->setkey = ccp_sha_setkey; 346 halg = &alg 372 struct ahash_alg *alg; local [all...] |
H A D | ccp-crypto-aes.c | 45 struct ccp_crypto_ablkcipher_alg *alg = local 62 ctx->u.aes.mode = alg->mode; 325 struct crypto_alg *alg; local 337 alg = &ccp_alg->alg; 338 *alg = *def->alg_defaults; 339 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s", def->name); 340 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", 342 alg->cra_blocksize = def->blocksize; 343 alg [all...] |
H A D | ccp-crypto-aes-cmac.c | 208 struct ccp_crypto_ahash_alg *alg = local 229 ctx->u.aes.mode = alg->mode; 317 struct ahash_alg *alg; local 329 alg = &ccp_alg->alg; 330 alg->init = ccp_aes_cmac_init; 331 alg->update = ccp_aes_cmac_update; 332 alg->final = ccp_aes_cmac_final; 333 alg->finup = ccp_aes_cmac_finup; 334 alg [all...] |
/drivers/staging/rtl8192e/ |
H A D | rtllib_crypt.c | 104 struct rtllib_crypto_alg *alg; local 109 alg = kzalloc(sizeof(*alg), GFP_KERNEL); 110 if (alg == NULL) 113 alg->ops = ops; 116 list_add(&alg->list, &hcrypt->algs); 137 struct rtllib_crypto_alg *alg = local 139 if (alg->ops == ops) { 140 list_del(&alg->list); 141 del_alg = alg; 169 struct rtllib_crypto_alg *alg = local 237 struct rtllib_crypto_alg *alg = local [all...] |
H A D | rtllib_wx.c | 533 const char *alg, *module; local 553 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) 563 ext->alg == IW_ENCODE_ALG_NONE) { 580 switch (ext->alg) { 582 alg = "R-WEP"; 586 alg = "R-TKIP"; 590 alg = "R-CCMP"; 594 RTLLIB_DEBUG_WX("%s: unknown crypto alg %d\n", 595 dev->name, ext->alg); 599 printk(KERN_INFO "alg nam [all...] |
/drivers/staging/rtl8192u/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 232 struct ieee80211_crypto_alg *alg = local [all...] |
H A D | ieee80211_wx.c | 518 const char *alg, *module; local 525 //printk("======>encoding flag:%x,ext flag:%x, ext alg:%d\n", encoding->flags,ext->ext_flags, ext->alg); 541 //printk("not group key, flags:%x, ext->alg:%d\n", ext->ext_flags, ext->alg); 542 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) 554 ext->alg == IW_ENCODE_ALG_NONE) { 576 switch (ext->alg) { 578 alg = "WEP"; 582 alg [all...] |
/drivers/crypto/ |
H A D | picoxcell_crypto.c | 141 struct crypto_alg alg; member in struct:spacc_alg 182 static inline struct spacc_alg *to_spacc_alg(struct crypto_alg *alg) argument 184 return alg ? container_of(alg, struct spacc_alg, alg) : NULL; 408 struct spacc_alg *alg = to_spacc_alg(req->req->tfm->__crt_alg); local 411 unsigned ivsize = alg->alg.cra_aead.ivsize; 497 struct spacc_alg *alg = to_spacc_alg(tfm->base.__crt_alg); local 510 if ((alg 548 struct crypto_alg *alg = req->req->tfm->__crt_alg; local 599 struct crypto_alg *alg = req->req->tfm->__crt_alg; local 684 struct crypto_alg *alg = req->base.tfm->__crt_alg; local 732 struct spacc_alg *alg = to_spacc_alg(tfm->__crt_alg); local 742 struct spacc_alg *alg = to_spacc_alg(tfm->base.__crt_alg); local 762 struct spacc_alg *alg = to_spacc_alg(tfm->__crt_alg); local 774 struct crypto_alg *alg = tfm->__crt_alg; local 914 struct crypto_alg *alg = req->req->tfm->__crt_alg; local 947 struct crypto_alg *alg = req->req->tfm->__crt_alg; local 1003 struct crypto_alg *alg = req->base.tfm->__crt_alg; local 1080 struct crypto_alg *alg = tfm->__crt_alg; local 1116 struct spacc_alg *alg = to_spacc_alg(tfm->__crt_alg); local 1125 struct spacc_alg *alg = to_spacc_alg(tfm->__crt_alg); local 1204 struct crypto_alg *alg = req->req->tfm->__crt_alg; local 1822 struct spacc_alg *alg, *next; local [all...] |
H A D | talitos.c | 634 * crypto alg 1915 } alg; member in struct:talitos_alg_template 1922 .alg.crypto = { 1941 .alg.crypto = { 1961 .alg.crypto = { 1980 .alg.crypto = { 2000 .alg.crypto = { 2019 .alg.crypto = { 2039 .alg.crypto = { 2058 .alg 2382 struct crypto_alg *alg = tfm->__crt_alg; local 2509 struct crypto_alg *alg; local [all...] |
H A D | n2_core.c | 250 struct ahash_alg alg; member in struct:n2_ahash_alg 255 struct crypto_alg *alg = tfm->__crt_alg; local 258 ahash_alg = container_of(alg, struct ahash_alg, halg.base); 260 return container_of(ahash_alg, struct n2_ahash_alg, alg); 270 struct crypto_alg *alg = tfm->__crt_alg; local 273 ahash_alg = container_of(alg, struct ahash_alg, halg.base); 275 return container_of(ahash_alg, struct n2_hmac_alg, derived.alg); 700 struct crypto_alg alg; member in struct:n2_cipher_alg 705 struct crypto_alg *alg = tfm->__crt_alg; local 707 return container_of(alg, struc 1362 struct n2_ahash_alg *alg, *alg_tmp; local 1391 struct crypto_alg *alg; local [all...] |
H A D | hifn_795x.c | 633 struct crypto_alg alg; member in struct:hifn_crypto_alg 663 #define crypto_alg_to_hifn(a) container_of(a, struct hifn_crypto_alg, alg) 2474 struct crypto_alg *alg = tfm->__crt_alg; local 2475 struct hifn_crypto_alg *ha = crypto_alg_to_hifn(alg); 2485 struct hifn_crypto_alg *alg; local 2488 alg = kzalloc(sizeof(struct hifn_crypto_alg), GFP_KERNEL); 2489 if (!alg) 2492 snprintf(alg->alg.cra_name, CRYPTO_MAX_ALG_NAME, "%s", t->name); 2493 snprintf(alg [all...] |
/drivers/staging/lustre/include/linux/libcfs/ |
H A D | libcfs_crypto.h | 112 * @param alg id of hash algorithm 129 int cfs_crypto_hash_digest(unsigned char alg, 138 * @param alg algorithm id 146 cfs_crypto_hash_init(unsigned char alg,
|
/drivers/staging/lustre/lustre/libcfs/linux/ |
H A D | linux-crypto-adler.c | 112 static struct shash_alg alg = { variable in typeref:struct:shash_alg 135 return crypto_register_shash(&alg); 140 crypto_unregister_shash(&alg);
|
/drivers/staging/lustre/lustre/obdclass/ |
H A D | capa.c | 262 struct capa_hmac_alg *alg; local 271 alg = &capa_hmac_algs[capa_alg(capa)]; 273 tfm = crypto_alloc_hash(alg->ha_name, 0, 0); 279 keylen = alg->ha_keylen; 301 char alg[CRYPTO_MAX_ALG_NAME+1] = "aes"; local 305 tfm = crypto_alloc_blkcipher(alg, 0, 0 ); 354 char alg[CRYPTO_MAX_ALG_NAME+1] = "aes"; local 358 tfm = crypto_alloc_blkcipher(alg, 0, 0 ); 416 " gid %llu flags %u alg %d keyid %u timeout %u "
|
/drivers/net/wireless/ipw2x00/ |
H A D | libipw_wx.c | 527 const char *alg, *module; local 548 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) 558 ext->alg == IW_ENCODE_ALG_NONE) { 583 switch (ext->alg) { 585 alg = "WEP"; 589 alg = "TKIP"; 593 alg = "CCMP"; 597 LIBIPW_DEBUG_WX("%s: unknown crypto alg %d\n", 598 dev->name, ext->alg); 603 ops = lib80211_get_crypto_ops(alg); [all...] |
/drivers/crypto/amcc/ |
H A D | crypto4xx_core.c | 994 struct crypto_alg *alg = tfm->__crt_alg; local 995 struct crypto4xx_alg *amcc_alg = crypto_alg_to_crypto4xx_alg(alg); 1005 switch (alg->cra_flags & CRYPTO_ALG_TYPE_MASK) { 1030 struct crypto4xx_alg *alg; local 1035 alg = kzalloc(sizeof(struct crypto4xx_alg), GFP_KERNEL); 1036 if (!alg) 1039 alg->alg = crypto_alg[i]; 1040 alg->dev = sec_dev; 1042 switch (alg 1065 struct crypto4xx_alg *alg, *tmp; local [all...] |
H A D | crypto4xx_core.h | 153 struct crypto4xx_alg_common alg; member in struct:crypto4xx_alg 163 struct crypto4xx_alg, alg.u.hash); 166 return container_of(x, struct crypto4xx_alg, alg.u.cipher);
|
/drivers/staging/media/davinci_vpfe/ |
H A D | dm365_ipipe.h | 49 enum vpfe_ipipe_otfdpc_alg alg; member in struct:ipipe_otfdpc_2_0 61 enum vpfe_ipipe_otfdpc_alg alg; member in struct:ipipe_otfdpc_3_0
|
/drivers/staging/rtl8192e/rtl8192e/ |
H A D | rtl_crypto.h | 122 int crypto_register_alg(struct crypto_alg *alg); 123 int crypto_unregister_alg(struct crypto_alg *alg); 225 struct crypto_alg *alg = tfm->__crt_alg; local 227 if (alg->cra_module) 228 return alg->cra_module->name;
|