/linux-4.4.14/crypto/ |
D | api.c | 37 static struct crypto_alg *crypto_larval_wait(struct crypto_alg *alg); 39 struct crypto_alg *crypto_mod_get(struct crypto_alg *alg) in crypto_mod_get() argument 41 return try_module_get(alg->cra_module) ? crypto_alg_get(alg) : NULL; in crypto_mod_get() 45 void crypto_mod_put(struct crypto_alg *alg) in crypto_mod_put() argument 47 struct module *module = alg->cra_module; in crypto_mod_put() 49 crypto_alg_put(alg); in crypto_mod_put() 56 return larval->alg.cra_driver_name[0]; in crypto_is_test_larval() 62 struct crypto_alg *q, *alg = NULL; in __crypto_alg_lookup() local 88 if (alg) in __crypto_alg_lookup() 89 crypto_mod_put(alg); in __crypto_alg_lookup() [all …]
|
D | algapi.c | 28 static inline int crypto_set_driver_name(struct crypto_alg *alg) in crypto_set_driver_name() argument 31 char *driver_name = alg->cra_driver_name; in crypto_set_driver_name() 37 len = strlcpy(driver_name, alg->cra_name, CRYPTO_MAX_ALG_NAME); in crypto_set_driver_name() 52 static int crypto_check_alg(struct crypto_alg *alg) in crypto_check_alg() argument 54 crypto_check_module_sig(alg->cra_module); in crypto_check_alg() 56 if (alg->cra_alignmask & (alg->cra_alignmask + 1)) in crypto_check_alg() 59 if (alg->cra_blocksize > PAGE_SIZE / 8) in crypto_check_alg() 62 if (alg->cra_priority < 0) in crypto_check_alg() 65 atomic_set(&alg->cra_refcnt, 1); in crypto_check_alg() 67 return crypto_set_driver_name(alg); in crypto_check_alg() [all …]
|
D | crypto_user.c | 50 struct crypto_alg *q, *alg = NULL; in crypto_alg_match() local 72 alg = q; in crypto_alg_match() 78 return alg; in crypto_alg_match() 81 static int crypto_report_cipher(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_cipher() argument 87 rcipher.blocksize = alg->cra_blocksize; in crypto_report_cipher() 88 rcipher.min_keysize = alg->cra_cipher.cia_min_keysize; in crypto_report_cipher() 89 rcipher.max_keysize = alg->cra_cipher.cia_max_keysize; in crypto_report_cipher() 100 static int crypto_report_comp(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_comp() argument 114 static int crypto_report_akcipher(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_akcipher() argument 129 static int crypto_report_one(struct crypto_alg *alg, in crypto_report_one() argument [all …]
|
D | internal.h | 42 struct crypto_alg alg; member 62 static inline unsigned int crypto_cipher_ctxsize(struct crypto_alg *alg) in crypto_cipher_ctxsize() argument 64 return alg->cra_ctxsize; in crypto_cipher_ctxsize() 67 static inline unsigned int crypto_compress_ctxsize(struct crypto_alg *alg) in crypto_compress_ctxsize() argument 69 return alg->cra_ctxsize; in crypto_compress_ctxsize() 72 struct crypto_alg *crypto_mod_get(struct crypto_alg *alg); 83 void crypto_larval_kill(struct crypto_alg *alg); 87 void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list, 90 void crypto_shoot_alg(struct crypto_alg *alg); 91 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type, [all …]
|
D | ablkcipher.c | 346 static unsigned int crypto_ablkcipher_ctxsize(struct crypto_alg *alg, u32 type, in crypto_ablkcipher_ctxsize() argument 349 return alg->cra_ctxsize; in crypto_ablkcipher_ctxsize() 365 struct ablkcipher_alg *alg = &tfm->__crt_alg->cra_ablkcipher; in crypto_init_ablkcipher_ops() local 368 if (alg->ivsize > PAGE_SIZE / 8) in crypto_init_ablkcipher_ops() 372 crt->encrypt = alg->encrypt; in crypto_init_ablkcipher_ops() 373 crt->decrypt = alg->decrypt; in crypto_init_ablkcipher_ops() 374 if (!alg->ivsize) { in crypto_init_ablkcipher_ops() 379 crt->ivsize = alg->ivsize; in crypto_init_ablkcipher_ops() 385 static int crypto_ablkcipher_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_ablkcipher_report() argument 390 strncpy(rblkcipher.geniv, alg->cra_ablkcipher.geniv ?: "<default>", in crypto_ablkcipher_report() [all …]
|
D | aead.c | 85 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_exit_tfm() local 87 alg->exit(aead); in crypto_aead_exit_tfm() 93 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_init_tfm() local 95 aead->authsize = alg->maxauthsize; in crypto_aead_init_tfm() 97 if (alg->exit) in crypto_aead_init_tfm() 100 if (alg->init) in crypto_aead_init_tfm() 101 return alg->init(aead); in crypto_aead_init_tfm() 107 static int crypto_aead_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_aead_report() argument 110 struct aead_alg *aead = container_of(alg, struct aead_alg, base); in crypto_aead_report() 115 raead.blocksize = alg->cra_blocksize; in crypto_aead_report() [all …]
|
D | ctr.c | 184 struct crypto_alg *alg; in crypto_ctr_alloc() local 191 alg = crypto_attr_alg(tb[1], CRYPTO_ALG_TYPE_CIPHER, in crypto_ctr_alloc() 193 if (IS_ERR(alg)) in crypto_ctr_alloc() 194 return ERR_CAST(alg); in crypto_ctr_alloc() 198 if (alg->cra_blocksize < 4) in crypto_ctr_alloc() 202 if (alg->cra_blocksize % 4) in crypto_ctr_alloc() 205 inst = crypto_alloc_instance("ctr", alg); in crypto_ctr_alloc() 209 inst->alg.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER; in crypto_ctr_alloc() 210 inst->alg.cra_priority = alg->cra_priority; in crypto_ctr_alloc() 211 inst->alg.cra_blocksize = 1; in crypto_ctr_alloc() [all …]
|
D | proc.c | 43 struct crypto_alg *alg = list_entry(p, struct crypto_alg, cra_list); in c_show() local 45 seq_printf(m, "name : %s\n", alg->cra_name); in c_show() 46 seq_printf(m, "driver : %s\n", alg->cra_driver_name); in c_show() 47 seq_printf(m, "module : %s\n", module_name(alg->cra_module)); in c_show() 48 seq_printf(m, "priority : %d\n", alg->cra_priority); in c_show() 49 seq_printf(m, "refcnt : %d\n", atomic_read(&alg->cra_refcnt)); in c_show() 51 (alg->cra_flags & CRYPTO_ALG_TESTED) ? in c_show() 54 (alg->cra_flags & CRYPTO_ALG_INTERNAL) ? in c_show() 57 if (alg->cra_flags & CRYPTO_ALG_LARVAL) { in c_show() 59 seq_printf(m, "flags : 0x%x\n", alg->cra_flags); in c_show() [all …]
|
D | ecb.c | 121 struct crypto_alg *alg; in crypto_ecb_alloc() local 128 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, in crypto_ecb_alloc() 130 if (IS_ERR(alg)) in crypto_ecb_alloc() 131 return ERR_CAST(alg); in crypto_ecb_alloc() 133 inst = crypto_alloc_instance("ecb", alg); in crypto_ecb_alloc() 137 inst->alg.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER; in crypto_ecb_alloc() 138 inst->alg.cra_priority = alg->cra_priority; in crypto_ecb_alloc() 139 inst->alg.cra_blocksize = alg->cra_blocksize; in crypto_ecb_alloc() 140 inst->alg.cra_alignmask = alg->cra_alignmask; in crypto_ecb_alloc() 141 inst->alg.cra_type = &crypto_blkcipher_type; in crypto_ecb_alloc() [all …]
|
D | blkcipher.c | 422 struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; in async_encrypt() local 430 return alg->encrypt(&desc, req->dst, req->src, req->nbytes); in async_encrypt() 436 struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; in async_decrypt() local 443 return alg->decrypt(&desc, req->dst, req->src, req->nbytes); in async_decrypt() 446 static unsigned int crypto_blkcipher_ctxsize(struct crypto_alg *alg, u32 type, in crypto_blkcipher_ctxsize() argument 449 struct blkcipher_alg *cipher = &alg->cra_blkcipher; in crypto_blkcipher_ctxsize() 450 unsigned int len = alg->cra_ctxsize; in crypto_blkcipher_ctxsize() 454 len = ALIGN(len, (unsigned long)alg->cra_alignmask + 1); in crypto_blkcipher_ctxsize() 464 struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; in crypto_init_blkcipher_ops_async() local 469 if (!alg->ivsize) { in crypto_init_blkcipher_ops_async() [all …]
|
D | akcipher.c | 27 static int crypto_akcipher_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_akcipher_report() argument 42 static int crypto_akcipher_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_akcipher_report() argument 48 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg) 51 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg) in crypto_akcipher_show() argument 59 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_exit_tfm() local 61 alg->exit(akcipher); in crypto_akcipher_exit_tfm() 67 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_init_tfm() local 69 if (alg->exit) in crypto_akcipher_init_tfm() 72 if (alg->init) in crypto_akcipher_init_tfm() 73 return alg->init(akcipher); in crypto_akcipher_init_tfm() [all …]
|
D | xcbc.c | 202 struct crypto_alg *alg; in xcbc_create() local 210 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, in xcbc_create() 212 if (IS_ERR(alg)) in xcbc_create() 213 return PTR_ERR(alg); in xcbc_create() 215 switch(alg->cra_blocksize) { in xcbc_create() 222 inst = shash_alloc_instance("xcbc", alg); in xcbc_create() 227 err = crypto_init_spawn(shash_instance_ctx(inst), alg, in xcbc_create() 233 alignmask = alg->cra_alignmask | 3; in xcbc_create() 234 inst->alg.base.cra_alignmask = alignmask; in xcbc_create() 235 inst->alg.base.cra_priority = alg->cra_priority; in xcbc_create() [all …]
|
D | cmac.c | 228 struct crypto_alg *alg; in cmac_create() local 236 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, in cmac_create() 238 if (IS_ERR(alg)) in cmac_create() 239 return PTR_ERR(alg); in cmac_create() 241 switch (alg->cra_blocksize) { in cmac_create() 249 inst = shash_alloc_instance("cmac", alg); in cmac_create() 254 err = crypto_init_spawn(shash_instance_ctx(inst), alg, in cmac_create() 260 alignmask = alg->cra_alignmask | (sizeof(long) - 1); in cmac_create() 261 inst->alg.base.cra_alignmask = alignmask; in cmac_create() 262 inst->alg.base.cra_priority = alg->cra_priority; in cmac_create() [all …]
|
D | cbc.c | 217 struct crypto_alg *alg; in crypto_cbc_alloc() local 224 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, in crypto_cbc_alloc() 226 if (IS_ERR(alg)) in crypto_cbc_alloc() 227 return ERR_CAST(alg); in crypto_cbc_alloc() 230 if (!is_power_of_2(alg->cra_blocksize)) in crypto_cbc_alloc() 233 inst = crypto_alloc_instance("cbc", alg); in crypto_cbc_alloc() 237 inst->alg.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER; in crypto_cbc_alloc() 238 inst->alg.cra_priority = alg->cra_priority; in crypto_cbc_alloc() 239 inst->alg.cra_blocksize = alg->cra_blocksize; in crypto_cbc_alloc() 240 inst->alg.cra_alignmask = alg->cra_alignmask; in crypto_cbc_alloc() [all …]
|
D | ahash.c | 452 struct ahash_alg *alg = crypto_ahash_alg(hash); in crypto_ahash_init_tfm() local 462 hash->init = alg->init; in crypto_ahash_init_tfm() 463 hash->update = alg->update; in crypto_ahash_init_tfm() 464 hash->final = alg->final; in crypto_ahash_init_tfm() 465 hash->finup = alg->finup ?: ahash_def_finup; in crypto_ahash_init_tfm() 466 hash->digest = alg->digest; in crypto_ahash_init_tfm() 468 if (alg->setkey) { in crypto_ahash_init_tfm() 469 hash->setkey = alg->setkey; in crypto_ahash_init_tfm() 472 if (alg->export) in crypto_ahash_init_tfm() 473 hash->export = alg->export; in crypto_ahash_init_tfm() [all …]
|
D | hmac.c | 184 struct crypto_alg *alg; in hmac_create() local 201 alg = &salg->base; in hmac_create() 202 if (ds > alg->cra_blocksize || in hmac_create() 203 ss < alg->cra_blocksize) in hmac_create() 206 inst = shash_alloc_instance("hmac", alg); in hmac_create() 216 inst->alg.base.cra_priority = alg->cra_priority; in hmac_create() 217 inst->alg.base.cra_blocksize = alg->cra_blocksize; in hmac_create() 218 inst->alg.base.cra_alignmask = alg->cra_alignmask; in hmac_create() 220 ss = ALIGN(ss, alg->cra_alignmask + 1); in hmac_create() 221 inst->alg.digestsize = ds; in hmac_create() [all …]
|
D | lrw.c | 329 struct crypto_alg *alg; in alloc() local 336 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, in alloc() 338 if (IS_ERR(alg)) in alloc() 339 return ERR_CAST(alg); in alloc() 341 inst = crypto_alloc_instance("lrw", alg); in alloc() 345 inst->alg.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER; in alloc() 346 inst->alg.cra_priority = alg->cra_priority; in alloc() 347 inst->alg.cra_blocksize = alg->cra_blocksize; in alloc() 349 if (alg->cra_alignmask < 7) inst->alg.cra_alignmask = 7; in alloc() 350 else inst->alg.cra_alignmask = alg->cra_alignmask; in alloc() [all …]
|
D | pcbc.c | 227 struct crypto_alg *alg; in crypto_pcbc_alloc() local 234 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, in crypto_pcbc_alloc() 236 if (IS_ERR(alg)) in crypto_pcbc_alloc() 237 return ERR_CAST(alg); in crypto_pcbc_alloc() 239 inst = crypto_alloc_instance("pcbc", alg); in crypto_pcbc_alloc() 243 inst->alg.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER; in crypto_pcbc_alloc() 244 inst->alg.cra_priority = alg->cra_priority; in crypto_pcbc_alloc() 245 inst->alg.cra_blocksize = alg->cra_blocksize; in crypto_pcbc_alloc() 246 inst->alg.cra_alignmask = alg->cra_alignmask; in crypto_pcbc_alloc() 247 inst->alg.cra_type = &crypto_blkcipher_type; in crypto_pcbc_alloc() [all …]
|
D | cts.c | 277 struct crypto_alg *alg; in crypto_cts_alloc() local 284 alg = crypto_attr_alg(tb[1], CRYPTO_ALG_TYPE_BLKCIPHER, in crypto_cts_alloc() 286 if (IS_ERR(alg)) in crypto_cts_alloc() 287 return ERR_CAST(alg); in crypto_cts_alloc() 290 if (!is_power_of_2(alg->cra_blocksize)) in crypto_cts_alloc() 293 if (strncmp(alg->cra_name, "cbc(", 4)) in crypto_cts_alloc() 296 inst = crypto_alloc_instance("cts", alg); in crypto_cts_alloc() 300 inst->alg.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER; in crypto_cts_alloc() 301 inst->alg.cra_priority = alg->cra_priority; in crypto_cts_alloc() 302 inst->alg.cra_blocksize = alg->cra_blocksize; in crypto_cts_alloc() [all …]
|
D | cryptd.c | 298 struct crypto_alg *alg) in cryptd_init_instance() argument 300 if (snprintf(inst->alg.cra_driver_name, CRYPTO_MAX_ALG_NAME, in cryptd_init_instance() 302 alg->cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in cryptd_init_instance() 305 memcpy(inst->alg.cra_name, alg->cra_name, CRYPTO_MAX_ALG_NAME); in cryptd_init_instance() 307 inst->alg.cra_priority = alg->cra_priority + 50; in cryptd_init_instance() 308 inst->alg.cra_blocksize = alg->cra_blocksize; in cryptd_init_instance() 309 inst->alg.cra_alignmask = alg->cra_alignmask; in cryptd_init_instance() 314 static void *cryptd_alloc_instance(struct crypto_alg *alg, unsigned int head, in cryptd_alloc_instance() argument 327 err = cryptd_init_instance(inst, alg); in cryptd_alloc_instance() 346 struct crypto_alg *alg; in cryptd_create_blkcipher() local [all …]
|
D | testmgr.c | 41 int alg_test(const char *driver, const char *alg, u32 type, u32 mask) in alg_test() argument 127 const char *alg; member 1979 static int test_akcipher(struct crypto_akcipher *tfm, const char *alg, in test_akcipher() argument 1982 if (strncmp(alg, "rsa", 3) == 0) in test_akcipher() 2001 err = test_akcipher(tfm, desc->alg, desc->suite.akcipher.vecs, in alg_test_akcipher() 2017 .alg = "__cbc-cast5-avx", 2020 .alg = "__cbc-cast6-avx", 2023 .alg = "__cbc-serpent-avx", 2026 .alg = "__cbc-serpent-avx2", 2029 .alg = "__cbc-serpent-sse2", [all …]
|
D | xts.c | 290 struct crypto_alg *alg; in alloc() local 297 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, in alloc() 299 if (IS_ERR(alg)) in alloc() 300 return ERR_CAST(alg); in alloc() 302 inst = crypto_alloc_instance("xts", alg); in alloc() 306 inst->alg.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER; in alloc() 307 inst->alg.cra_priority = alg->cra_priority; in alloc() 308 inst->alg.cra_blocksize = alg->cra_blocksize; in alloc() 310 if (alg->cra_alignmask < 7) in alloc() 311 inst->alg.cra_alignmask = 7; in alloc() [all …]
|
D | algboss.c | 41 } alg; member 58 char alg[CRYPTO_MAX_ALG_NAME]; member 90 crypto_alg_put(¶m->larval->alg); in cryptomgr_probe() 99 const char *name = larval->alg.cra_name; in cryptomgr_schedule_probe() 151 param->attrs[i].alg.attr.rta_len = in cryptomgr_schedule_probe() 152 sizeof(param->attrs[i].alg); in cryptomgr_schedule_probe() 153 param->attrs[i].alg.attr.rta_type = CRYPTOA_ALG; in cryptomgr_schedule_probe() 154 memcpy(param->attrs[i].alg.data.name, name, len); in cryptomgr_schedule_probe() 183 param->type.data.type = larval->alg.cra_flags & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe() 187 param->otype = larval->alg.cra_flags; in cryptomgr_schedule_probe() [all …]
|
D | keywrap.c | 346 struct crypto_alg *alg = NULL; in crypto_kw_alloc() local 353 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, in crypto_kw_alloc() 355 if (IS_ERR(alg)) in crypto_kw_alloc() 356 return ERR_CAST(alg); in crypto_kw_alloc() 360 if (alg->cra_blocksize != sizeof(struct crypto_kw_block)) in crypto_kw_alloc() 363 inst = crypto_alloc_instance("kw", alg); in crypto_kw_alloc() 367 inst->alg.cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER; in crypto_kw_alloc() 368 inst->alg.cra_priority = alg->cra_priority; in crypto_kw_alloc() 369 inst->alg.cra_blocksize = SEMIBSIZE; in crypto_kw_alloc() 370 inst->alg.cra_alignmask = 0; in crypto_kw_alloc() [all …]
|
D | shash.c | 335 struct shash_alg *alg = __crypto_shash_alg(calg); in crypto_init_shash_ops_async() local 359 crt->has_setkey = alg->setkey != shash_no_setkey; in crypto_init_shash_ops_async() 361 if (alg->export) in crypto_init_shash_ops_async() 363 if (alg->import) in crypto_init_shash_ops_async() 459 struct shash_alg *alg = __crypto_shash_alg(calg); in crypto_init_shash_ops_compat() local 490 crt->digestsize = alg->digestsize; in crypto_init_shash_ops_compat() 505 static unsigned int crypto_shash_ctxsize(struct crypto_alg *alg, u32 type, in crypto_shash_ctxsize() argument 525 static int crypto_shash_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_shash_report() argument 528 struct shash_alg *salg = __crypto_shash_alg(alg); in crypto_shash_report() 532 rhash.blocksize = alg->cra_blocksize; in crypto_shash_report() [all …]
|
D | rng.c | 66 static unsigned int seedsize(struct crypto_alg *alg) in seedsize() argument 68 struct rng_alg *ralg = container_of(alg, struct rng_alg, base); in seedsize() 74 static int crypto_rng_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_rng_report() argument 80 rrng.seedsize = seedsize(alg); in crypto_rng_report() 91 static int crypto_rng_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_rng_report() argument 97 static void crypto_rng_show(struct seq_file *m, struct crypto_alg *alg) 99 static void crypto_rng_show(struct seq_file *m, struct crypto_alg *alg) in crypto_rng_show() argument 102 seq_printf(m, "seedsize : %u\n", seedsize(alg)); in crypto_rng_show() 185 int crypto_register_rng(struct rng_alg *alg) in crypto_register_rng() argument 187 struct crypto_alg *base = &alg->base; in crypto_register_rng() [all …]
|
D | pcrypt.c | 258 struct crypto_alg *alg) in pcrypt_init_instance() argument 260 if (snprintf(inst->alg.cra_driver_name, CRYPTO_MAX_ALG_NAME, in pcrypt_init_instance() 261 "pcrypt(%s)", alg->cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in pcrypt_init_instance() 264 memcpy(inst->alg.cra_name, alg->cra_name, CRYPTO_MAX_ALG_NAME); in pcrypt_init_instance() 266 inst->alg.cra_priority = alg->cra_priority + 100; in pcrypt_init_instance() 267 inst->alg.cra_blocksize = alg->cra_blocksize; in pcrypt_init_instance() 268 inst->alg.cra_alignmask = alg->cra_alignmask; in pcrypt_init_instance() 279 struct aead_alg *alg; in pcrypt_create_aead() local 302 alg = crypto_spawn_aead_alg(&ctx->spawn); in pcrypt_create_aead() 303 err = pcrypt_init_instance(aead_crypto_instance(inst), &alg->base); in pcrypt_create_aead() [all …]
|
D | pcompress.c | 47 static int crypto_pcomp_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_pcomp_report() argument 61 static int crypto_pcomp_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_pcomp_report() argument 67 static void crypto_pcomp_show(struct seq_file *m, struct crypto_alg *alg) 69 static void crypto_pcomp_show(struct seq_file *m, struct crypto_alg *alg) in crypto_pcomp_show() argument 95 int crypto_register_pcomp(struct pcomp_alg *alg) in crypto_register_pcomp() argument 97 struct crypto_alg *base = &alg->base; in crypto_register_pcomp() 107 int crypto_unregister_pcomp(struct pcomp_alg *alg) in crypto_unregister_pcomp() argument 109 return crypto_unregister_alg(&alg->base); in crypto_unregister_pcomp()
|
D | gcm.c | 682 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in crypto_gcm_create_common() 688 memcpy(inst->alg.base.cra_name, full_name, CRYPTO_MAX_ALG_NAME); in crypto_gcm_create_common() 690 inst->alg.base.cra_flags = (ghash->base.cra_flags | ctr->cra_flags) & in crypto_gcm_create_common() 692 inst->alg.base.cra_priority = (ghash->base.cra_priority + in crypto_gcm_create_common() 694 inst->alg.base.cra_blocksize = 1; in crypto_gcm_create_common() 695 inst->alg.base.cra_alignmask = ghash->base.cra_alignmask | in crypto_gcm_create_common() 697 inst->alg.base.cra_ctxsize = sizeof(struct crypto_gcm_ctx); in crypto_gcm_create_common() 698 inst->alg.ivsize = 12; in crypto_gcm_create_common() 699 inst->alg.maxauthsize = 16; in crypto_gcm_create_common() 700 inst->alg.init = crypto_gcm_init_tfm; in crypto_gcm_create_common() [all …]
|
D | mcryptd.c | 33 static void *mcryptd_alloc_instance(struct crypto_alg *alg, unsigned int head, 228 static void *mcryptd_alloc_instance(struct crypto_alg *alg, unsigned int head, in mcryptd_alloc_instance() argument 242 if (snprintf(inst->alg.cra_driver_name, CRYPTO_MAX_ALG_NAME, in mcryptd_alloc_instance() 243 "mcryptd(%s)", alg->cra_driver_name) >= CRYPTO_MAX_ALG_NAME) in mcryptd_alloc_instance() 246 memcpy(inst->alg.cra_name, alg->cra_name, CRYPTO_MAX_ALG_NAME); in mcryptd_alloc_instance() 248 inst->alg.cra_priority = alg->cra_priority + 50; in mcryptd_alloc_instance() 249 inst->alg.cra_blocksize = alg->cra_blocksize; in mcryptd_alloc_instance() 250 inst->alg.cra_alignmask = alg->cra_alignmask; in mcryptd_alloc_instance() 496 struct crypto_alg *alg; in mcryptd_create_hash() local 507 alg = &salg->base; in mcryptd_create_hash() [all …]
|
D | ccm.c | 565 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in crypto_ccm_create_common() 570 memcpy(inst->alg.base.cra_name, full_name, CRYPTO_MAX_ALG_NAME); in crypto_ccm_create_common() 572 inst->alg.base.cra_flags = ctr->cra_flags & CRYPTO_ALG_ASYNC; in crypto_ccm_create_common() 573 inst->alg.base.cra_priority = (cipher->cra_priority + in crypto_ccm_create_common() 575 inst->alg.base.cra_blocksize = 1; in crypto_ccm_create_common() 576 inst->alg.base.cra_alignmask = cipher->cra_alignmask | in crypto_ccm_create_common() 579 inst->alg.ivsize = 16; in crypto_ccm_create_common() 580 inst->alg.maxauthsize = 16; in crypto_ccm_create_common() 581 inst->alg.base.cra_ctxsize = sizeof(struct crypto_ccm_ctx); in crypto_ccm_create_common() 582 inst->alg.init = crypto_ccm_init_tfm; in crypto_ccm_create_common() [all …]
|
D | seqiv.c | 265 if (inst->alg.cra_ablkcipher.ivsize < sizeof(u64)) in seqiv_ablkcipher_create() 268 inst->alg.cra_init = seqiv_init; in seqiv_ablkcipher_create() 269 inst->alg.cra_exit = skcipher_geniv_exit; in seqiv_ablkcipher_create() 271 inst->alg.cra_ctxsize += inst->alg.cra_ablkcipher.ivsize; in seqiv_ablkcipher_create() 272 inst->alg.cra_ctxsize += sizeof(struct seqiv_ctx); in seqiv_ablkcipher_create() 274 inst->alg.cra_alignmask |= __alignof__(u32) - 1; in seqiv_ablkcipher_create() 292 struct aead_alg *alg; in seqiv_aead_create() local 300 inst->alg.base.cra_alignmask |= __alignof__(u32) - 1; in seqiv_aead_create() 303 alg = crypto_spawn_aead_alg(spawn); in seqiv_aead_create() 306 if (inst->alg.ivsize != sizeof(u64)) in seqiv_aead_create() [all …]
|
D | skcipher.c | 23 static unsigned int crypto_skcipher_extsize(struct crypto_alg *alg) in crypto_skcipher_extsize() argument 25 if (alg->cra_type == &crypto_blkcipher_type) in crypto_skcipher_extsize() 28 BUG_ON(alg->cra_type != &crypto_ablkcipher_type && in crypto_skcipher_extsize() 29 alg->cra_type != &crypto_givcipher_type); in crypto_skcipher_extsize() 73 struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; in skcipher_encrypt_blkcipher() local 75 return skcipher_crypt_blkcipher(req, alg->encrypt); in skcipher_encrypt_blkcipher() 82 struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; in skcipher_decrypt_blkcipher() local 84 return skcipher_crypt_blkcipher(req, alg->decrypt); in skcipher_decrypt_blkcipher() 165 struct ablkcipher_alg *alg = &tfm->__crt_alg->cra_ablkcipher; in skcipher_encrypt_ablkcipher() local 167 return skcipher_crypt_ablkcipher(req, alg->encrypt); in skcipher_encrypt_ablkcipher() [all …]
|
D | echainiv.c | 183 struct aead_alg *alg; in echainiv_aead_create() local 192 alg = crypto_spawn_aead_alg(spawn); in echainiv_aead_create() 195 if (inst->alg.ivsize & (sizeof(u32) - 1) || in echainiv_aead_create() 196 inst->alg.ivsize > MAX_IV_SIZE) in echainiv_aead_create() 199 inst->alg.encrypt = echainiv_encrypt; in echainiv_aead_create() 200 inst->alg.decrypt = echainiv_decrypt; in echainiv_aead_create() 202 inst->alg.init = aead_init_geniv; in echainiv_aead_create() 203 inst->alg.exit = aead_exit_geniv; in echainiv_aead_create() 205 inst->alg.base.cra_alignmask |= __alignof__(u32) - 1; in echainiv_aead_create() 206 inst->alg.base.cra_ctxsize = sizeof(struct aead_geniv_ctx); in echainiv_aead_create() [all …]
|
D | chainiv.c | 275 inst->alg.cra_init = chainiv_init; in chainiv_alloc() 276 inst->alg.cra_exit = skcipher_geniv_exit; in chainiv_alloc() 278 inst->alg.cra_ctxsize = sizeof(struct chainiv_ctx); in chainiv_alloc() 281 inst->alg.cra_flags |= CRYPTO_ALG_ASYNC; in chainiv_alloc() 283 inst->alg.cra_init = async_chainiv_init; in chainiv_alloc() 284 inst->alg.cra_exit = async_chainiv_exit; in chainiv_alloc() 286 inst->alg.cra_ctxsize = sizeof(struct async_chainiv_ctx); in chainiv_alloc() 289 inst->alg.cra_ctxsize += inst->alg.cra_ablkcipher.ivsize; in chainiv_alloc()
|
D | authencesn.c | 449 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in crypto_authenc_esn_create() 454 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in crypto_authenc_esn_create() 459 inst->alg.base.cra_flags = enc->cra_flags & CRYPTO_ALG_ASYNC; in crypto_authenc_esn_create() 460 inst->alg.base.cra_priority = enc->cra_priority * 10 + in crypto_authenc_esn_create() 462 inst->alg.base.cra_blocksize = enc->cra_blocksize; in crypto_authenc_esn_create() 463 inst->alg.base.cra_alignmask = auth_base->cra_alignmask | in crypto_authenc_esn_create() 465 inst->alg.base.cra_ctxsize = sizeof(struct crypto_authenc_esn_ctx); in crypto_authenc_esn_create() 467 inst->alg.ivsize = enc->cra_ablkcipher.ivsize; in crypto_authenc_esn_create() 468 inst->alg.maxauthsize = auth->digestsize; in crypto_authenc_esn_create() 470 inst->alg.init = crypto_authenc_esn_init_tfm; in crypto_authenc_esn_create() [all …]
|
D | authenc.c | 436 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in crypto_authenc_create() 441 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in crypto_authenc_create() 446 inst->alg.base.cra_flags = enc->cra_flags & CRYPTO_ALG_ASYNC; in crypto_authenc_create() 447 inst->alg.base.cra_priority = enc->cra_priority * 10 + in crypto_authenc_create() 449 inst->alg.base.cra_blocksize = enc->cra_blocksize; in crypto_authenc_create() 450 inst->alg.base.cra_alignmask = auth_base->cra_alignmask | in crypto_authenc_create() 452 inst->alg.base.cra_ctxsize = sizeof(struct crypto_authenc_ctx); in crypto_authenc_create() 454 inst->alg.ivsize = enc->cra_ablkcipher.ivsize; in crypto_authenc_create() 455 inst->alg.maxauthsize = auth->digestsize; in crypto_authenc_create() 457 inst->alg.init = crypto_authenc_init_tfm; in crypto_authenc_create() [all …]
|
D | eseqiv.c | 202 if (inst->alg.cra_ablkcipher.ivsize != inst->alg.cra_blocksize) in eseqiv_alloc() 205 inst->alg.cra_init = eseqiv_init; in eseqiv_alloc() 206 inst->alg.cra_exit = skcipher_geniv_exit; in eseqiv_alloc() 208 inst->alg.cra_ctxsize = sizeof(struct eseqiv_ctx); in eseqiv_alloc() 209 inst->alg.cra_ctxsize += inst->alg.cra_ablkcipher.ivsize; in eseqiv_alloc()
|
D | vmac.c | 646 struct crypto_alg *alg; in vmac_create() local 653 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_CIPHER, in vmac_create() 655 if (IS_ERR(alg)) in vmac_create() 656 return PTR_ERR(alg); in vmac_create() 658 inst = shash_alloc_instance("vmac", alg); in vmac_create() 663 err = crypto_init_spawn(shash_instance_ctx(inst), alg, in vmac_create() 669 inst->alg.base.cra_priority = alg->cra_priority; in vmac_create() 670 inst->alg.base.cra_blocksize = alg->cra_blocksize; in vmac_create() 671 inst->alg.base.cra_alignmask = alg->cra_alignmask; in vmac_create() 673 inst->alg.digestsize = sizeof(vmac_t); in vmac_create() [all …]
|
D | 842.c | 55 static struct crypto_alg alg = { variable 69 return crypto_register_alg(&alg); in crypto842_mod_init() 75 crypto_unregister_alg(&alg); in crypto842_mod_exit()
|
D | sha1_generic.c | 62 static struct shash_alg alg = { variable 80 return crypto_register_shash(&alg); in sha1_generic_mod_init() 85 crypto_unregister_shash(&alg); in sha1_generic_mod_fini()
|
D | chacha20poly1305.c | 635 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in chachapoly_create() 639 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in chachapoly_create() 644 inst->alg.base.cra_flags = (chacha->cra_flags | poly->cra_flags) & in chachapoly_create() 646 inst->alg.base.cra_priority = (chacha->cra_priority + in chachapoly_create() 648 inst->alg.base.cra_blocksize = 1; in chachapoly_create() 649 inst->alg.base.cra_alignmask = chacha->cra_alignmask | in chachapoly_create() 651 inst->alg.base.cra_ctxsize = sizeof(struct chachapoly_ctx) + in chachapoly_create() 653 inst->alg.ivsize = ivsize; in chachapoly_create() 654 inst->alg.maxauthsize = POLY1305_DIGEST_SIZE; in chachapoly_create() 655 inst->alg.init = chachapoly_init; in chachapoly_create() [all …]
|
D | lzo.c | 83 static struct crypto_alg alg = { variable 97 return crypto_register_alg(&alg); in lzo_mod_init() 102 crypto_unregister_alg(&alg); in lzo_mod_fini()
|
D | crct10dif_generic.c | 91 static struct shash_alg alg = { variable 112 ret = crypto_register_shash(&alg); in crct10dif_mod_init() 118 crypto_unregister_shash(&alg); in crct10dif_mod_fini()
|
D | crc32.c | 123 static struct shash_alg alg = { variable 145 return crypto_register_shash(&alg); in crc32_mod_init() 150 crypto_unregister_shash(&alg); in crc32_mod_fini()
|
D | crc32c_generic.c | 136 static struct shash_alg alg = { variable 159 return crypto_register_shash(&alg); in crc32c_mod_init() 164 crypto_unregister_shash(&alg); in crc32c_mod_fini()
|
D | michael_mic.c | 153 static struct shash_alg alg = { variable 171 return crypto_register_shash(&alg); in michael_mic_init() 177 crypto_unregister_shash(&alg); in michael_mic_exit()
|
D | md5.c | 139 static struct shash_alg alg = { variable 158 return crypto_register_shash(&alg); in md5_mod_init() 163 crypto_unregister_shash(&alg); in md5_mod_fini()
|
D | blowfish_generic.c | 109 static struct crypto_alg alg = { variable 128 return crypto_register_alg(&alg); in blowfish_mod_init() 133 crypto_unregister_alg(&alg); in blowfish_mod_fini()
|
D | deflate.c | 197 static struct crypto_alg alg = { variable 211 return crypto_register_alg(&alg); in deflate_mod_init() 216 crypto_unregister_alg(&alg); in deflate_mod_fini()
|
D | twofish_generic.c | 182 static struct crypto_alg alg = { variable 201 return crypto_register_alg(&alg); in twofish_mod_init() 206 crypto_unregister_alg(&alg); in twofish_mod_fini()
|
D | drbg.c | 1922 static inline void __init drbg_fill_array(struct rng_alg *alg, in drbg_fill_array() argument 1928 memcpy(alg->base.cra_name, "stdrng", 6); in drbg_fill_array() 1930 memcpy(alg->base.cra_driver_name, "drbg_pr_", 8); in drbg_fill_array() 1933 memcpy(alg->base.cra_driver_name, "drbg_nopr_", 10); in drbg_fill_array() 1936 memcpy(alg->base.cra_driver_name + pos, core->cra_name, in drbg_fill_array() 1939 alg->base.cra_priority = priority; in drbg_fill_array() 1947 alg->base.cra_priority += 200; in drbg_fill_array() 1949 alg->base.cra_ctxsize = sizeof(struct drbg_state); in drbg_fill_array() 1950 alg->base.cra_module = THIS_MODULE; in drbg_fill_array() 1951 alg->base.cra_init = drbg_kcapi_init; in drbg_fill_array() [all …]
|
D | salsa20_generic.c | 214 static struct crypto_alg alg = { variable 238 return crypto_register_alg(&alg); in salsa20_generic_mod_init() 243 crypto_unregister_alg(&alg); in salsa20_generic_mod_fini()
|
D | chacha20_generic.c | 172 static struct crypto_alg alg = { variable 197 return crypto_register_alg(&alg); in chacha20_generic_mod_init() 202 crypto_unregister_alg(&alg); in chacha20_generic_mod_fini()
|
D | tcrypt.c | 63 static char *alg = NULL; variable 1249 static inline int tcrypt_test(const char *alg) in tcrypt_test() argument 1253 ret = alg_test(alg, alg, 0, 0); in tcrypt_test() 1260 static int do_test(const char *alg, u32 type, u32 mask, int m) in do_test() argument 1267 if (alg) { in do_test() 1268 if (!crypto_has_alg(alg, type, in do_test() 1812 if (alg) { in do_test() 1813 test_hash_speed(alg, sec, generic_hash_speed_template); in do_test() 1907 if (alg) { in do_test() 1908 test_ahash_speed(alg, sec, generic_hash_speed_template); in do_test() [all …]
|
D | md4.c | 229 static struct shash_alg alg = { variable 245 return crypto_register_shash(&alg); in md4_mod_init() 250 crypto_unregister_shash(&alg); in md4_mod_fini()
|
D | cast6_generic.c | 260 static struct crypto_alg alg = { variable 281 return crypto_register_alg(&alg); in cast6_mod_init() 286 crypto_unregister_alg(&alg); in cast6_mod_fini()
|
D | cast5_generic.c | 517 static struct crypto_alg alg = { variable 539 return crypto_register_alg(&alg); in cast5_mod_init() 544 crypto_unregister_alg(&alg); in cast5_mod_fini()
|
D | rmd128.c | 300 static struct shash_alg alg = { variable 316 return crypto_register_shash(&alg); in rmd128_mod_init() 321 crypto_unregister_shash(&alg); in rmd128_mod_fini()
|
D | rmd256.c | 319 static struct shash_alg alg = { variable 335 return crypto_register_shash(&alg); in rmd256_mod_init() 340 crypto_unregister_shash(&alg); in rmd256_mod_fini()
|
D | rmd160.c | 344 static struct shash_alg alg = { variable 360 return crypto_register_shash(&alg); in rmd160_mod_init() 365 crypto_unregister_shash(&alg); in rmd160_mod_fini()
|
D | rmd320.c | 368 static struct shash_alg alg = { variable 384 return crypto_register_shash(&alg); in rmd320_mod_init() 389 crypto_unregister_shash(&alg); in rmd320_mod_fini()
|
/linux-4.4.14/arch/x86/crypto/ |
D | fpu.c | 105 struct crypto_alg *alg; in crypto_fpu_alloc() local 112 alg = crypto_get_attr_alg(tb, CRYPTO_ALG_TYPE_BLKCIPHER, in crypto_fpu_alloc() 114 if (IS_ERR(alg)) in crypto_fpu_alloc() 115 return ERR_CAST(alg); in crypto_fpu_alloc() 117 inst = crypto_alloc_instance("fpu", alg); in crypto_fpu_alloc() 121 inst->alg.cra_flags = alg->cra_flags; in crypto_fpu_alloc() 122 inst->alg.cra_priority = alg->cra_priority; in crypto_fpu_alloc() 123 inst->alg.cra_blocksize = alg->cra_blocksize; in crypto_fpu_alloc() 124 inst->alg.cra_alignmask = alg->cra_alignmask; in crypto_fpu_alloc() 125 inst->alg.cra_type = alg->cra_type; in crypto_fpu_alloc() [all …]
|
D | crc32c-intel_glue.c | 229 static struct shash_alg alg = { variable 261 alg.update = crc32c_pcl_intel_update; in crc32c_intel_mod_init() 262 alg.finup = crc32c_pcl_intel_finup; in crc32c_intel_mod_init() 263 alg.digest = crc32c_pcl_intel_digest; in crc32c_intel_mod_init() 267 return crypto_register_shash(&alg); in crc32c_intel_mod_init() 272 crypto_unregister_shash(&alg); in crc32c_intel_mod_fini()
|
D | twofish_glue.c | 64 static struct crypto_alg alg = { variable 86 return crypto_register_alg(&alg); in init() 91 crypto_unregister_alg(&alg); in fini()
|
D | poly1305_glue.c | 162 static struct shash_alg alg = { variable 188 alg.descsize = sizeof(struct poly1305_simd_desc_ctx); in poly1305_simd_mod_init() 190 alg.descsize += 10 * sizeof(u32); in poly1305_simd_mod_init() 192 return crypto_register_shash(&alg); in poly1305_simd_mod_init() 197 crypto_unregister_shash(&alg); in poly1305_simd_mod_exit()
|
D | crct10dif-pclmul_glue.c | 107 static struct shash_alg alg = { variable 135 return crypto_register_shash(&alg); in crct10dif_intel_mod_init() 140 crypto_unregister_shash(&alg); in crct10dif_intel_mod_fini()
|
D | salsa20_glue.c | 85 static struct crypto_alg alg = { variable 109 return crypto_register_alg(&alg); in init() 114 crypto_unregister_alg(&alg); in fini()
|
D | chacha20_glue.c | 103 static struct crypto_alg alg = { variable 135 return crypto_register_alg(&alg); in chacha20_simd_mod_init() 140 crypto_unregister_alg(&alg); in chacha20_simd_mod_fini()
|
D | crc32-pclmul_glue.c | 152 static struct shash_alg alg = { variable 186 return crypto_register_shash(&alg); in crc32_pclmul_mod_init() 191 crypto_unregister_shash(&alg); in crc32_pclmul_mod_fini()
|
/linux-4.4.14/include/crypto/internal/ |
D | hash.h | 38 struct ahash_alg alg; member 42 struct shash_alg alg; member 80 int crypto_register_ahash(struct ahash_alg *alg); 81 int crypto_unregister_ahash(struct ahash_alg *alg); 87 struct hash_alg_common *alg, 97 int crypto_register_shash(struct shash_alg *alg); 98 int crypto_unregister_shash(struct shash_alg *alg); 106 struct shash_alg *alg, 136 static inline struct ahash_alg *__crypto_ahash_alg(struct crypto_alg *alg) in __crypto_ahash_alg() argument 138 return container_of(__crypto_hash_alg_common(alg), struct ahash_alg, in __crypto_ahash_alg() [all …]
|
D | aead.h | 30 struct aead_alg alg; member 50 return container_of(&inst->alg.base, struct crypto_instance, alg); in aead_crypto_instance() 55 return container_of(&inst->alg, struct aead_instance, alg.base); in aead_instance() 100 return container_of(spawn->base.alg, struct aead_alg, base); in crypto_spawn_aead_alg() 115 static inline unsigned int crypto_aead_alg_maxauthsize(struct aead_alg *alg) in crypto_aead_alg_maxauthsize() argument 117 return alg->maxauthsize; in crypto_aead_alg_maxauthsize() 156 int crypto_register_aead(struct aead_alg *alg); 157 void crypto_unregister_aead(struct aead_alg *alg);
|
D | compress.h | 25 extern int crypto_register_pcomp(struct pcomp_alg *alg); 26 extern int crypto_unregister_pcomp(struct pcomp_alg *alg);
|
D | akcipher.h | 50 int crypto_register_akcipher(struct akcipher_alg *alg); 59 void crypto_unregister_akcipher(struct akcipher_alg *alg);
|
D | rng.h | 20 int crypto_register_rng(struct rng_alg *alg); 21 void crypto_unregister_rng(struct rng_alg *alg);
|
D | skcipher.h | 47 return spawn->base.alg; in crypto_skcipher_spawn_alg() 60 const char *crypto_default_geniv(const struct crypto_alg *alg);
|
/linux-4.4.14/include/crypto/ |
D | akcipher.h | 139 static inline struct akcipher_alg *__crypto_akcipher_alg(struct crypto_alg *alg) in __crypto_akcipher_alg() argument 141 return container_of(alg, struct akcipher_alg, base); in __crypto_akcipher_alg() 268 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in crypto_akcipher_maxsize() local 270 return alg->max_size(tfm); in crypto_akcipher_maxsize() 286 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in crypto_akcipher_encrypt() local 288 return alg->encrypt(req); in crypto_akcipher_encrypt() 304 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in crypto_akcipher_decrypt() local 306 return alg->decrypt(req); in crypto_akcipher_decrypt() 322 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in crypto_akcipher_sign() local 324 return alg->sign(req); in crypto_akcipher_sign() [all …]
|
D | algapi.h | 27 unsigned int (*ctxsize)(struct crypto_alg *alg, u32 type, u32 mask); 28 unsigned int (*extsize)(struct crypto_alg *alg); 31 void (*show)(struct seq_file *m, struct crypto_alg *alg); 32 int (*report)(struct sk_buff *skb, struct crypto_alg *alg); 43 struct crypto_alg alg; member 65 struct crypto_alg *alg; member 134 void crypto_mod_put(struct crypto_alg *alg); 144 int crypto_init_spawn(struct crypto_spawn *spawn, struct crypto_alg *alg, 146 int crypto_init_spawn2(struct crypto_spawn *spawn, struct crypto_alg *alg, 177 void *crypto_alloc_instance2(const char *name, struct crypto_alg *alg, [all …]
|
D | compress.h | 89 static inline struct pcomp_alg *__crypto_pcomp_alg(struct crypto_alg *alg) in __crypto_pcomp_alg() argument 91 return container_of(alg, struct pcomp_alg, base); in __crypto_pcomp_alg()
|
D | hash.h | 283 struct crypto_alg *alg) in __crypto_hash_alg_common() argument 285 return container_of(alg, struct hash_alg_common, base); in __crypto_hash_alg_common() 680 static inline struct shash_alg *__crypto_shash_alg(struct crypto_alg *alg) in __crypto_shash_alg() argument 682 return container_of(alg, struct shash_alg, base); in __crypto_shash_alg()
|
D | aead.h | 199 static inline unsigned int crypto_aead_alg_ivsize(struct aead_alg *alg) in crypto_aead_alg_ivsize() argument 201 return alg->ivsize; in crypto_aead_alg_ivsize()
|
/linux-4.4.14/drivers/crypto/ccp/ |
D | ccp-crypto-aes-xts.c | 229 struct crypto_alg *alg; in ccp_register_aes_xts_alg() local 238 alg = &ccp_alg->alg; in ccp_register_aes_xts_alg() 240 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s", def->name); in ccp_register_aes_xts_alg() 241 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", in ccp_register_aes_xts_alg() 243 alg->cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | CRYPTO_ALG_ASYNC | in ccp_register_aes_xts_alg() 246 alg->cra_blocksize = AES_BLOCK_SIZE; in ccp_register_aes_xts_alg() 247 alg->cra_ctxsize = sizeof(struct ccp_ctx); in ccp_register_aes_xts_alg() 248 alg->cra_priority = CCP_CRA_PRIORITY; in ccp_register_aes_xts_alg() 249 alg->cra_type = &crypto_ablkcipher_type; in ccp_register_aes_xts_alg() 250 alg->cra_ablkcipher.setkey = ccp_aes_xts_setkey; in ccp_register_aes_xts_alg() [all …]
|
D | ccp-crypto-sha.c | 165 struct ccp_crypto_ahash_alg *alg = in ccp_sha_init() local 172 rctx->type = alg->type; in ccp_sha_init() 321 struct ccp_crypto_ahash_alg *alg = ccp_crypto_ahash_alg(tfm); in ccp_hmac_sha_cra_init() local 324 hmac_tfm = crypto_alloc_shash(alg->child_alg, 0, 0); in ccp_hmac_sha_cra_init() 327 alg->child_alg); in ccp_hmac_sha_cra_init() 383 struct ahash_alg *alg; in ccp_register_hmac_alg() local 398 alg = &ccp_alg->alg; in ccp_register_hmac_alg() 399 alg->setkey = ccp_sha_setkey; in ccp_register_hmac_alg() 401 halg = &alg->halg; in ccp_register_hmac_alg() 410 ret = crypto_register_ahash(alg); in ccp_register_hmac_alg() [all …]
|
D | ccp-crypto.h | 34 struct crypto_alg alg; member 47 struct ahash_alg alg; member 53 struct crypto_alg *alg = tfm->__crt_alg; in ccp_crypto_ablkcipher_alg() local 55 return container_of(alg, struct ccp_crypto_ablkcipher_alg, alg); in ccp_crypto_ablkcipher_alg() 61 struct crypto_alg *alg = tfm->__crt_alg; in ccp_crypto_ahash_alg() local 64 ahash_alg = container_of(alg, struct ahash_alg, halg.base); in ccp_crypto_ahash_alg() 66 return container_of(ahash_alg, struct ccp_crypto_ahash_alg, alg); in ccp_crypto_ahash_alg()
|
D | ccp-crypto-aes.c | 44 struct ccp_crypto_ablkcipher_alg *alg = in ccp_aes_setkey() local 61 ctx->u.aes.mode = alg->mode; in ccp_aes_setkey() 324 struct crypto_alg *alg; in ccp_register_aes_alg() local 336 alg = &ccp_alg->alg; in ccp_register_aes_alg() 337 *alg = *def->alg_defaults; in ccp_register_aes_alg() 338 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s", def->name); in ccp_register_aes_alg() 339 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", in ccp_register_aes_alg() 341 alg->cra_blocksize = def->blocksize; in ccp_register_aes_alg() 342 alg->cra_ablkcipher.ivsize = def->ivsize; in ccp_register_aes_alg() 344 ret = crypto_register_alg(alg); in ccp_register_aes_alg() [all …]
|
D | ccp-crypto-aes-cmac.c | 263 struct ccp_crypto_ahash_alg *alg = in ccp_aes_cmac_setkey() local 284 ctx->u.aes.mode = alg->mode; in ccp_aes_cmac_setkey() 373 struct ahash_alg *alg; in ccp_register_aes_cmac_algs() local 385 alg = &ccp_alg->alg; in ccp_register_aes_cmac_algs() 386 alg->init = ccp_aes_cmac_init; in ccp_register_aes_cmac_algs() 387 alg->update = ccp_aes_cmac_update; in ccp_register_aes_cmac_algs() 388 alg->final = ccp_aes_cmac_final; in ccp_register_aes_cmac_algs() 389 alg->finup = ccp_aes_cmac_finup; in ccp_register_aes_cmac_algs() 390 alg->digest = ccp_aes_cmac_digest; in ccp_register_aes_cmac_algs() 391 alg->export = ccp_aes_cmac_export; in ccp_register_aes_cmac_algs() [all …]
|
D | ccp-crypto-main.c | 355 crypto_unregister_ahash(&ahash_alg->alg); in ccp_unregister_algs() 361 crypto_unregister_alg(&ablk_alg->alg); in ccp_unregister_algs()
|
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt.c | 105 struct ieee80211_crypto_alg *alg; in ieee80211_register_crypto_ops() local 110 alg = kzalloc(sizeof(*alg), GFP_KERNEL); in ieee80211_register_crypto_ops() 111 if (alg == NULL) in ieee80211_register_crypto_ops() 114 alg->ops = ops; in ieee80211_register_crypto_ops() 117 list_add(&alg->list, &hcrypt->algs); in ieee80211_register_crypto_ops() 137 struct ieee80211_crypto_alg *alg = in ieee80211_unregister_crypto_ops() local 139 if (alg->ops == ops) { in ieee80211_unregister_crypto_ops() 140 list_del(&alg->list); in ieee80211_unregister_crypto_ops() 141 del_alg = alg; in ieee80211_unregister_crypto_ops() 168 struct ieee80211_crypto_alg *alg = in ieee80211_get_crypto_ops() local [all …]
|
D | ieee80211_wx.c | 518 const char *alg, *module; in ieee80211_wx_set_encode_ext() local 540 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) in ieee80211_wx_set_encode_ext() 552 ext->alg == IW_ENCODE_ALG_NONE) { in ieee80211_wx_set_encode_ext() 573 switch (ext->alg) { in ieee80211_wx_set_encode_ext() 575 alg = "WEP"; in ieee80211_wx_set_encode_ext() 579 alg = "TKIP"; in ieee80211_wx_set_encode_ext() 583 alg = "CCMP"; in ieee80211_wx_set_encode_ext() 588 dev->name, ext->alg); in ieee80211_wx_set_encode_ext() 592 printk("alg name:%s\n",alg); in ieee80211_wx_set_encode_ext() 594 ops = ieee80211_get_crypto_ops(alg); in ieee80211_wx_set_encode_ext() [all …]
|
D | ieee80211_softmac.c | 2960 param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; in ieee80211_wpa_set_encryption() 2977 if (strcmp(param->u.crypt.alg, "none") == 0) { in ieee80211_wpa_set_encryption() 2995 strcmp(param->u.crypt.alg, "TKIP")) in ieee80211_wpa_set_encryption() 2998 ops = ieee80211_get_crypto_ops(param->u.crypt.alg); in ieee80211_wpa_set_encryption() 2999 if (ops == NULL && strcmp(param->u.crypt.alg, "WEP") == 0) { in ieee80211_wpa_set_encryption() 3001 ops = ieee80211_get_crypto_ops(param->u.crypt.alg); in ieee80211_wpa_set_encryption() 3003 } else if (ops == NULL && strcmp(param->u.crypt.alg, "TKIP") == 0) { in ieee80211_wpa_set_encryption() 3005 ops = ieee80211_get_crypto_ops(param->u.crypt.alg); in ieee80211_wpa_set_encryption() 3006 } else if (ops == NULL && strcmp(param->u.crypt.alg, "CCMP") == 0) { in ieee80211_wpa_set_encryption() 3008 ops = ieee80211_get_crypto_ops(param->u.crypt.alg); in ieee80211_wpa_set_encryption() [all …]
|
D | ieee80211.h | 319 u8 alg[IEEE_CRYPT_ALG_NAME_LEN]; member
|
/linux-4.4.14/net/wireless/ |
D | lib80211.c | 167 struct lib80211_crypto_alg *alg; in lib80211_register_crypto_ops() local 169 alg = kzalloc(sizeof(*alg), GFP_KERNEL); in lib80211_register_crypto_ops() 170 if (alg == NULL) in lib80211_register_crypto_ops() 173 alg->ops = ops; in lib80211_register_crypto_ops() 176 list_add(&alg->list, &lib80211_crypto_algs); in lib80211_register_crypto_ops() 188 struct lib80211_crypto_alg *alg; in lib80211_unregister_crypto_ops() local 192 list_for_each_entry(alg, &lib80211_crypto_algs, list) { in lib80211_unregister_crypto_ops() 193 if (alg->ops == ops) in lib80211_unregister_crypto_ops() 202 list_del(&alg->list); in lib80211_unregister_crypto_ops() 204 kfree(alg); in lib80211_unregister_crypto_ops() [all …]
|
D | wext-compat.c | 670 switch (ext->alg) { in cfg80211_wext_siwencodeext()
|
/linux-4.4.14/drivers/crypto/qce/ |
D | ablkcipher.c | 340 struct crypto_alg *alg; in qce_ablkcipher_register_one() local 347 alg = &tmpl->alg.crypto; in qce_ablkcipher_register_one() 349 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s", def->name); in qce_ablkcipher_register_one() 350 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", in qce_ablkcipher_register_one() 353 alg->cra_blocksize = def->blocksize; in qce_ablkcipher_register_one() 354 alg->cra_ablkcipher.ivsize = def->ivsize; in qce_ablkcipher_register_one() 355 alg->cra_ablkcipher.min_keysize = def->min_keysize; in qce_ablkcipher_register_one() 356 alg->cra_ablkcipher.max_keysize = def->max_keysize; in qce_ablkcipher_register_one() 357 alg->cra_ablkcipher.setkey = qce_ablkcipher_setkey; in qce_ablkcipher_register_one() 358 alg->cra_ablkcipher.encrypt = qce_ablkcipher_encrypt; in qce_ablkcipher_register_one() [all …]
|
D | cipher.h | 58 struct crypto_alg *alg = tfm->__crt_alg; in to_cipher_tmpl() local 59 return container_of(alg, struct qce_alg_template, alg.crypto); in to_cipher_tmpl()
|
D | sha.c | 499 struct ahash_alg *alg; in qce_ahash_register_one() local 509 alg = &tmpl->alg.ahash; in qce_ahash_register_one() 510 alg->init = qce_ahash_init; in qce_ahash_register_one() 511 alg->update = qce_ahash_update; in qce_ahash_register_one() 512 alg->final = qce_ahash_final; in qce_ahash_register_one() 513 alg->digest = qce_ahash_digest; in qce_ahash_register_one() 514 alg->export = qce_ahash_export; in qce_ahash_register_one() 515 alg->import = qce_ahash_import; in qce_ahash_register_one() 517 alg->setkey = qce_ahash_hmac_setkey; in qce_ahash_register_one() 518 alg->halg.digestsize = def->digestsize; in qce_ahash_register_one() [all …]
|
D | sha.h | 71 struct ahash_alg *alg = container_of(crypto_hash_alg_common(ahash), in to_ahash_tmpl() local 74 return container_of(alg, struct qce_alg_template, alg.ahash); in to_ahash_tmpl()
|
D | common.h | 92 } alg; member
|
/linux-4.4.14/drivers/crypto/ |
D | picoxcell_crypto.c | 107 struct aead_alg alg; member 150 struct crypto_alg alg; member 189 static inline struct spacc_alg *to_spacc_alg(struct crypto_alg *alg) in to_spacc_alg() argument 191 return alg ? container_of(alg, struct spacc_alg, alg) : NULL; in to_spacc_alg() 194 static inline struct spacc_aead *to_spacc_aead(struct aead_alg *alg) in to_spacc_aead() argument 196 return container_of(alg, struct spacc_aead, alg); in to_spacc_aead() 504 struct aead_alg *alg = crypto_aead_alg(aead); in spacc_aead_need_fallback() local 505 struct spacc_aead *spacc_alg = to_spacc_aead(alg); in spacc_aead_need_fallback() 552 struct aead_alg *alg = crypto_aead_alg(aead); in spacc_aead_submit() local 553 struct spacc_aead *spacc_alg = to_spacc_aead(alg); in spacc_aead_submit() [all …]
|
D | talitos.c | 2104 } alg; member 2111 .alg.aead = { 2131 .alg.aead = { 2153 .alg.aead = { 2173 .alg.aead = { 2195 .alg.aead = { 2215 .alg.aead = { 2237 .alg.aead = { 2257 .alg.aead = { 2279 .alg.aead = { [all …]
|
D | n2_core.c | 250 struct ahash_alg alg; member 255 struct crypto_alg *alg = tfm->__crt_alg; in n2_ahash_alg() local 258 ahash_alg = container_of(alg, struct ahash_alg, halg.base); in n2_ahash_alg() 260 return container_of(ahash_alg, struct n2_ahash_alg, alg); in n2_ahash_alg() 270 struct crypto_alg *alg = tfm->__crt_alg; in n2_hmac_alg() local 273 ahash_alg = container_of(alg, struct ahash_alg, halg.base); in n2_hmac_alg() 275 return container_of(ahash_alg, struct n2_hmac_alg, derived.alg); in n2_hmac_alg() 700 struct crypto_alg alg; member 705 struct crypto_alg *alg = tfm->__crt_alg; in n2_cipher_alg() local 707 return container_of(alg, struct n2_cipher_alg, alg); in n2_cipher_alg() [all …]
|
D | hifn_795x.c | 631 struct crypto_alg alg; member 661 #define crypto_alg_to_hifn(a) container_of(a, struct hifn_crypto_alg, alg) 2472 struct crypto_alg *alg = tfm->__crt_alg; in hifn_cra_init() local 2473 struct hifn_crypto_alg *ha = crypto_alg_to_hifn(alg); in hifn_cra_init() 2483 struct hifn_crypto_alg *alg; in hifn_alg_alloc() local 2486 alg = kzalloc(sizeof(struct hifn_crypto_alg), GFP_KERNEL); in hifn_alg_alloc() 2487 if (!alg) in hifn_alg_alloc() 2490 snprintf(alg->alg.cra_name, CRYPTO_MAX_ALG_NAME, "%s", t->name); in hifn_alg_alloc() 2491 snprintf(alg->alg.cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s-%s", in hifn_alg_alloc() 2494 alg->alg.cra_priority = 300; in hifn_alg_alloc() [all …]
|
D | mxs-dcp.c | 83 uint32_t alg; member 532 desc->control1 = actx->alg; in mxs_dcp_run_sha() 690 actx->alg = MXS_DCP_CONTROL1_HASH_SELECT_SHA1; in dcp_sha_init() 692 actx->alg = MXS_DCP_CONTROL1_HASH_SELECT_SHA256; in dcp_sha_init()
|
/linux-4.4.14/drivers/crypto/sunxi-ss/ |
D | sun4i-ss-core.c | 32 .alg.hash = { 60 .alg.hash = { 87 .alg.crypto = { 109 .alg.crypto = { 131 .alg.crypto = { 153 .alg.crypto = { 174 .alg.crypto = { 196 .alg.crypto = { 344 err = crypto_register_alg(&ss_algs[i].alg.crypto); in sun4i_ss_probe() 347 ss_algs[i].alg.crypto.cra_name); in sun4i_ss_probe() [all …]
|
D | sun4i-ss-hash.c | 33 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun4i_hash_init() local 39 algt = container_of(alg, struct sun4i_ss_alg_template, alg.hash); in sun4i_hash_init()
|
D | sun4i-ss.h | 145 } alg; member
|
D | sun4i-ss-cipher.c | 459 struct crypto_alg *alg = tfm->__crt_alg; in sun4i_ss_cipher_init() local 464 algt = container_of(alg, struct sun4i_ss_alg_template, alg.crypto); in sun4i_ss_cipher_init()
|
/linux-4.4.14/Documentation/DocBook/ |
D | crypto-API.xml.db | 2 API-struct-crypto-alg 3 API-struct-ablkcipher-alg 4 API-struct-aead-alg 5 API-struct-blkcipher-alg 6 API-struct-cipher-alg 7 API-struct-rng-alg 69 API-struct-hash-alg-common 70 API-struct-ahash-alg 71 API-struct-shash-alg 103 API-crypto-rng-alg
|
/linux-4.4.14/drivers/net/wireless/ipw2x00/ |
D | libipw_wx.c | 527 const char *alg, *module; in libipw_wx_set_encodeext() local 548 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) in libipw_wx_set_encodeext() 558 ext->alg == IW_ENCODE_ALG_NONE) { in libipw_wx_set_encodeext() 583 switch (ext->alg) { in libipw_wx_set_encodeext() 585 alg = "WEP"; in libipw_wx_set_encodeext() 589 alg = "TKIP"; in libipw_wx_set_encodeext() 593 alg = "CCMP"; in libipw_wx_set_encodeext() 598 dev->name, ext->alg); in libipw_wx_set_encodeext() 603 ops = lib80211_get_crypto_ops(alg); in libipw_wx_set_encodeext() 606 ops = lib80211_get_crypto_ops(alg); in libipw_wx_set_encodeext() [all …]
|
/linux-4.4.14/drivers/crypto/amcc/ |
D | crypto4xx_core.c | 974 struct crypto_alg *alg = tfm->__crt_alg; in crypto4xx_alg_init() local 975 struct crypto4xx_alg *amcc_alg = crypto_alg_to_crypto4xx_alg(alg); in crypto4xx_alg_init() 985 switch (alg->cra_flags & CRYPTO_ALG_TYPE_MASK) { in crypto4xx_alg_init() 1010 struct crypto4xx_alg *alg; in crypto4xx_register_alg() local 1015 alg = kzalloc(sizeof(struct crypto4xx_alg), GFP_KERNEL); in crypto4xx_register_alg() 1016 if (!alg) in crypto4xx_register_alg() 1019 alg->alg = crypto_alg[i]; in crypto4xx_register_alg() 1020 alg->dev = sec_dev; in crypto4xx_register_alg() 1022 switch (alg->alg.type) { in crypto4xx_register_alg() 1024 rc = crypto_register_ahash(&alg->alg.u.hash); in crypto4xx_register_alg() [all …]
|
D | crypto4xx_core.h | 153 struct crypto4xx_alg_common alg; member 163 struct crypto4xx_alg, alg.u.hash); in crypto_alg_to_crypto4xx_alg() 166 return container_of(x, struct crypto4xx_alg, alg.u.cipher); in crypto_alg_to_crypto4xx_alg()
|
D | crypto4xx_alg.c | 185 struct crypto_alg *alg = tfm->__crt_alg; in crypto4xx_hash_alg_init() local 186 struct crypto4xx_alg *my_alg = crypto_alg_to_crypto4xx_alg(alg); in crypto4xx_hash_alg_init()
|
/linux-4.4.14/arch/arm/crypto/ |
D | sha1_glue.c | 59 static struct shash_alg alg = { variable 79 return crypto_register_shash(&alg); in sha1_mod_init() 85 crypto_unregister_shash(&alg); in sha1_mod_fini()
|
D | sha1-ce-glue.c | 66 static struct shash_alg alg = { variable 87 return crypto_register_shash(&alg); in sha1_ce_mod_init() 92 crypto_unregister_shash(&alg); in sha1_ce_mod_fini()
|
D | sha1_neon_glue.c | 75 static struct shash_alg alg = { variable 97 return crypto_register_shash(&alg); in sha1_neon_mod_init() 102 crypto_unregister_shash(&alg); in sha1_neon_mod_fini()
|
/linux-4.4.14/drivers/crypto/vmx/ |
D | aes.c | 40 const char *alg; in p8_aes_init() local 44 if (!(alg = crypto_tfm_alg_name(tfm))) { in p8_aes_init() 49 fallback = crypto_alloc_cipher(alg, 0, CRYPTO_ALG_NEED_FALLBACK); in p8_aes_init() 53 alg, PTR_ERR(fallback)); in p8_aes_init()
|
D | aes_ctr.c | 39 const char *alg; in p8_aes_ctr_init() local 43 if (!(alg = crypto_tfm_alg_name(tfm))) { in p8_aes_ctr_init() 49 crypto_alloc_blkcipher(alg, 0, CRYPTO_ALG_NEED_FALLBACK); in p8_aes_ctr_init() 53 alg, PTR_ERR(fallback)); in p8_aes_ctr_init()
|
D | aes_cbc.c | 41 const char *alg; in p8_aes_cbc_init() local 45 if (!(alg = crypto_tfm_alg_name(tfm))) { in p8_aes_cbc_init() 51 crypto_alloc_blkcipher(alg, 0, CRYPTO_ALG_NEED_FALLBACK); in p8_aes_cbc_init() 55 alg, PTR_ERR(fallback)); in p8_aes_cbc_init()
|
D | ghash.c | 58 const char *alg; in p8_ghash_init_tfm() local 63 if (!(alg = crypto_tfm_alg_name(tfm))) { in p8_ghash_init_tfm() 68 fallback = crypto_alloc_shash(alg, 0, CRYPTO_ALG_NEED_FALLBACK); in p8_ghash_init_tfm() 72 alg, PTR_ERR(fallback)); in p8_ghash_init_tfm()
|
/linux-4.4.14/net/mac80211/ |
D | rate.c | 93 struct rate_control_alg *alg; in ieee80211_rate_control_register() local 99 list_for_each_entry(alg, &rate_ctrl_algs, list) { in ieee80211_rate_control_register() 100 if (!strcmp(alg->ops->name, ops->name)) { in ieee80211_rate_control_register() 108 alg = kzalloc(sizeof(*alg), GFP_KERNEL); in ieee80211_rate_control_register() 109 if (alg == NULL) { in ieee80211_rate_control_register() 113 alg->ops = ops; in ieee80211_rate_control_register() 115 list_add_tail(&alg->list, &rate_ctrl_algs); in ieee80211_rate_control_register() 124 struct rate_control_alg *alg; in ieee80211_rate_control_unregister() local 127 list_for_each_entry(alg, &rate_ctrl_algs, list) { in ieee80211_rate_control_unregister() 128 if (alg->ops == ops) { in ieee80211_rate_control_unregister() [all …]
|
/linux-4.4.14/net/ceph/crush/ |
D | crush.c | 9 const char *crush_bucket_alg_name(int alg) in crush_bucket_alg_name() argument 11 switch (alg) { in crush_bucket_alg_name() 31 switch (b->alg) { in crush_get_bucket_item_weight() 89 switch (b->alg) { in crush_destroy_bucket()
|
D | mapper.c | 348 switch (in->alg) { in crush_bucket_choose() 365 dprintk("unknown bucket %d alg %d\n", in->id, in->alg); in crush_bucket_choose() 657 if (in->alg == CRUSH_BUCKET_UNIFORM && in crush_choose_indep()
|
/linux-4.4.14/drivers/crypto/qat/qat_common/ |
D | qat_algs.c | 65 #define QAT_AES_HW_CONFIG_ENC(alg, mode) \ argument 66 ICP_QAT_HW_CIPHER_CONFIG_BUILD(mode, alg, \ 70 #define QAT_AES_HW_CONFIG_DEC(alg, mode) \ argument 71 ICP_QAT_HW_CIPHER_CONFIG_BUILD(mode, alg, \ 273 int alg, in qat_alg_aead_init_enc_session() argument 292 cipher->aes.cipher_config.val = QAT_AES_HW_CONFIG_ENC(alg, mode); in qat_alg_aead_init_enc_session() 354 int alg, in qat_alg_aead_init_dec_session() argument 378 cipher->aes.cipher_config.val = QAT_AES_HW_CONFIG_DEC(alg, mode); in qat_alg_aead_init_dec_session() 468 int alg, const uint8_t *key, in qat_alg_ablkcipher_init_enc() argument 477 enc_cd->aes.cipher_config.val = QAT_AES_HW_CONFIG_ENC(alg, mode); in qat_alg_ablkcipher_init_enc() [all …]
|
/linux-4.4.14/drivers/staging/rtl8192e/ |
D | rtllib_wx.c | 533 const char *alg, *module; in rtllib_wx_set_encode_ext() local 553 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) in rtllib_wx_set_encode_ext() 563 ext->alg == IW_ENCODE_ALG_NONE) { in rtllib_wx_set_encode_ext() 580 switch (ext->alg) { in rtllib_wx_set_encode_ext() 582 alg = "R-WEP"; in rtllib_wx_set_encode_ext() 586 alg = "R-TKIP"; in rtllib_wx_set_encode_ext() 590 alg = "R-CCMP"; in rtllib_wx_set_encode_ext() 594 netdev_dbg(ieee->dev, "Unknown crypto alg %d\n", ext->alg); in rtllib_wx_set_encode_ext() 598 netdev_info(dev, "alg name:%s\n", alg); in rtllib_wx_set_encode_ext() 600 ops = lib80211_get_crypto_ops(alg); in rtllib_wx_set_encode_ext() [all …]
|
D | rtllib_softmac.c | 3268 param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; in rtllib_wpa_set_encryption() 3285 if (strcmp(param->u.crypt.alg, "none") == 0) { in rtllib_wpa_set_encryption() 3299 strcmp(param->u.crypt.alg, "R-TKIP")) in rtllib_wpa_set_encryption() 3302 ops = lib80211_get_crypto_ops(param->u.crypt.alg); in rtllib_wpa_set_encryption() 3303 if (ops == NULL && strcmp(param->u.crypt.alg, "R-WEP") == 0) { in rtllib_wpa_set_encryption() 3305 ops = lib80211_get_crypto_ops(param->u.crypt.alg); in rtllib_wpa_set_encryption() 3306 } else if (ops == NULL && strcmp(param->u.crypt.alg, "R-TKIP") == 0) { in rtllib_wpa_set_encryption() 3308 ops = lib80211_get_crypto_ops(param->u.crypt.alg); in rtllib_wpa_set_encryption() 3309 } else if (ops == NULL && strcmp(param->u.crypt.alg, "R-CCMP") == 0) { in rtllib_wpa_set_encryption() 3311 ops = lib80211_get_crypto_ops(param->u.crypt.alg); in rtllib_wpa_set_encryption() [all …]
|
D | rtllib.h | 381 u8 alg[IEEE_CRYPT_ALG_NAME_LEN]; member
|
/linux-4.4.14/arch/s390/crypto/ |
D | sha1_s390.c | 73 static struct shash_alg alg = { variable 96 return crypto_register_shash(&alg); in sha1_s390_init() 101 crypto_unregister_shash(&alg); in sha1_s390_fini()
|
/linux-4.4.14/tools/testing/selftests/zram/ |
D | zram_lib.sh | 120 for alg in $zram_algs; do 122 echo "$alg" > $sys_path || \ 123 echo "FAIL can't set '$alg' to $sys_path" 125 echo "$sys_path = '$alg' ($i/$dev_num)"
|
/linux-4.4.14/arch/arm64/crypto/ |
D | sha1-ce-glue.c | 86 static struct shash_alg alg = { variable 105 return crypto_register_shash(&alg); in sha1_ce_mod_init() 110 crypto_unregister_shash(&alg); in sha1_ce_mod_fini()
|
/linux-4.4.14/sound/soc/codecs/ |
D | wm_adsp.c | 789 dsp->num, region_name, alg_region->alg); in wm_adsp_create_control() 794 wm_adsp_fw_text[dsp->fw], alg_region->alg); in wm_adsp_create_control() 1034 alg_region.alg = alg_blk.id; in wm_adsp_parse_coeff() 1285 alg_region->alg == ctl->alg_region.alg && in wm_adsp_ctl_fixup_base() 1295 void *alg; in wm_adsp_read_algs() local 1321 alg = kzalloc(len * 2, GFP_KERNEL | GFP_DMA); in wm_adsp_read_algs() 1322 if (!alg) in wm_adsp_read_algs() 1325 ret = regmap_raw_read(dsp->regmap, pos, alg, len * 2); in wm_adsp_read_algs() 1329 kfree(alg); in wm_adsp_read_algs() 1333 return alg; in wm_adsp_read_algs() [all …]
|
D | wmfw.h | 92 struct wmfw_alg_hdr alg; member 98 struct wmfw_alg_hdr alg; member
|
D | wm_adsp.h | 28 unsigned int alg; member
|
/linux-4.4.14/drivers/crypto/nx/ |
D | nx.c | 527 static int nx_register_alg(struct crypto_alg *alg, u32 fc, u32 mode) in nx_register_alg() argument 530 crypto_register_alg(alg) : 0; in nx_register_alg() 533 static int nx_register_aead(struct aead_alg *alg, u32 fc, u32 mode) in nx_register_aead() argument 536 crypto_register_aead(alg) : 0; in nx_register_aead() 539 static int nx_register_shash(struct shash_alg *alg, u32 fc, u32 mode, int slot) in nx_register_shash() argument 544 crypto_register_shash(alg) : 0; in nx_register_shash() 547 static void nx_unregister_alg(struct crypto_alg *alg, u32 fc, u32 mode) in nx_unregister_alg() argument 550 crypto_unregister_alg(alg); in nx_unregister_alg() 553 static void nx_unregister_aead(struct aead_alg *alg, u32 fc, u32 mode) in nx_unregister_aead() argument 556 crypto_unregister_aead(alg); in nx_unregister_aead() [all …]
|
/linux-4.4.14/drivers/staging/rtl8192u/ |
D | r8192U_wx.c | 756 u8 idx = 0, alg = 0, group = 0; in r8192_wx_set_enc_ext() local 758 if ((encoding->flags & IW_ENCODE_DISABLED) || ext->alg == IW_ENCODE_ALG_NONE) in r8192_wx_set_enc_ext() 763 alg = (ext->alg == IW_ENCODE_ALG_CCMP)?KEY_TYPE_CCMP:ext->alg; in r8192_wx_set_enc_ext() 769 if ((!group) || (IW_MODE_ADHOC == ieee->iw_mode) || (alg == KEY_TYPE_WEP40)) { in r8192_wx_set_enc_ext() 770 if ((ext->key_len == 13) && (alg == KEY_TYPE_WEP40)) in r8192_wx_set_enc_ext() 771 alg = KEY_TYPE_WEP104; in r8192_wx_set_enc_ext() 772 ieee->pairwise_key_type = alg; in r8192_wx_set_enc_ext() 777 if ((alg & KEY_TYPE_WEP40) && (ieee->auth_mode != 2)) { in r8192_wx_set_enc_ext() 782 alg, /* KeyType */ in r8192_wx_set_enc_ext() 787 ieee->group_key_type = alg; in r8192_wx_set_enc_ext() [all …]
|
D | r8192U_core.c | 3726 if (strcmp(ipw->u.crypt.alg, "CCMP") == 0) { in rtl8192_ioctl() 3728 } else if (strcmp(ipw->u.crypt.alg, "TKIP") == 0) { in rtl8192_ioctl() 3730 } else if (strcmp(ipw->u.crypt.alg, "WEP") == 0) { in rtl8192_ioctl() 3761 if (strcmp(ipw->u.crypt.alg, "CCMP") == 0) { in rtl8192_ioctl() 3763 } else if (strcmp(ipw->u.crypt.alg, "TKIP") == 0) { in rtl8192_ioctl() 3765 } else if (strcmp(ipw->u.crypt.alg, "WEP") == 0) { in rtl8192_ioctl()
|
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/ |
D | linux-crypto-adler.c | 114 static struct shash_alg alg = { variable 136 return crypto_register_shash(&alg); in cfs_crypto_adler32_register() 141 crypto_unregister_shash(&alg); in cfs_crypto_adler32_unregister()
|
/linux-4.4.14/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_wx.c | 919 u8 idx = 0, alg = 0, group = 0; in _rtl92e_wx_set_encode_ext() local 922 ext->alg == IW_ENCODE_ALG_NONE) { in _rtl92e_wx_set_encode_ext() 930 alg = (ext->alg == IW_ENCODE_ALG_CCMP) ? KEY_TYPE_CCMP : in _rtl92e_wx_set_encode_ext() 931 ext->alg; in _rtl92e_wx_set_encode_ext() 938 (alg == KEY_TYPE_WEP40)) { in _rtl92e_wx_set_encode_ext() 939 if ((ext->key_len == 13) && (alg == KEY_TYPE_WEP40)) in _rtl92e_wx_set_encode_ext() 940 alg = KEY_TYPE_WEP104; in _rtl92e_wx_set_encode_ext() 941 ieee->pairwise_key_type = alg; in _rtl92e_wx_set_encode_ext() 946 if ((alg & KEY_TYPE_WEP40) && (ieee->auth_mode != 2)) { in _rtl92e_wx_set_encode_ext() 948 ieee->pairwise_key_type = alg = KEY_TYPE_WEP104; in _rtl92e_wx_set_encode_ext() [all …]
|
D | rtl_core.c | 2308 if (strcmp(ipw->u.crypt.alg, "CCMP") == 0) in _rtl92e_ioctl() 2310 else if (strcmp(ipw->u.crypt.alg, "TKIP") == 0) in _rtl92e_ioctl() 2312 else if (strcmp(ipw->u.crypt.alg, "WEP") == 0) { in _rtl92e_ioctl() 2359 if (strcmp(ipw->u.crypt.alg, "CCMP") == 0) in _rtl92e_ioctl() 2361 else if (strcmp(ipw->u.crypt.alg, "TKIP") == 0) in _rtl92e_ioctl() 2363 else if (strcmp(ipw->u.crypt.alg, "WEP") == 0) { in _rtl92e_ioctl()
|
/linux-4.4.14/arch/powerpc/crypto/ |
D | sha1.c | 123 static struct shash_alg alg = { variable 143 return crypto_register_shash(&alg); in sha1_powerpc_mod_init() 148 crypto_unregister_shash(&alg); in sha1_powerpc_mod_fini()
|
D | md5-glue.c | 129 static struct shash_alg alg = { variable 150 return crypto_register_shash(&alg); in ppc_md5_mod_init() 155 crypto_unregister_shash(&alg); in ppc_md5_mod_fini()
|
D | sha1-spe-glue.c | 174 static struct shash_alg alg = { variable 195 return crypto_register_shash(&alg); in ppc_spe_sha1_mod_init() 200 crypto_unregister_shash(&alg); in ppc_spe_sha1_mod_fini()
|
/linux-4.4.14/Documentation/ |
D | coccinelle.txt | 204 /home/user/linux/crypto/ctr.c:188:9-16: ERR_CAST can be used with alg 206 /home/user/linux/crypto/xts.c:227:9-16: ERR_CAST can be used with alg 238 alg = crypto_attr_alg(tb[1], CRYPTO_ALG_TYPE_CIPHER, 240 if (IS_ERR(alg)) 241 - return ERR_PTR(PTR_ERR(alg)); 242 + return ERR_CAST(alg); 281 alg = crypto_attr_alg(tb[1], CRYPTO_ALG_TYPE_CIPHER, 283 if (IS_ERR(alg)) 284 - return ERR_PTR(PTR_ERR(alg)); 322 …user/linux/crypto/ctr.c::face=ovl-face1::linb=188::colb=9::cole=16][ERR_CAST can be used with alg]] [all …]
|
/linux-4.4.14/arch/sparc/crypto/ |
D | crc32c_glue.c | 123 static struct shash_alg alg = { variable 162 return crypto_register_shash(&alg); in crc32c_sparc64_mod_init() 170 crypto_unregister_shash(&alg); in crc32c_sparc64_mod_fini()
|
D | sha1_glue.c | 129 static struct shash_alg alg = { variable 166 return crypto_register_shash(&alg); in sha1_sparc64_mod_init() 174 crypto_unregister_shash(&alg); in sha1_sparc64_mod_fini()
|
D | md5_glue.c | 134 static struct shash_alg alg = { variable 171 return crypto_register_shash(&alg); in md5_sparc64_mod_init() 179 crypto_unregister_shash(&alg); in md5_sparc64_mod_fini()
|
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/ |
D | sec_bulk.c | 510 int sptlrpc_get_bulk_checksum(struct ptlrpc_bulk_desc *desc, __u8 alg, in sptlrpc_get_bulk_checksum() argument 519 LASSERT(alg > BULK_HASH_ALG_NULL && alg < BULK_HASH_ALG_MAX); in sptlrpc_get_bulk_checksum() 522 hdesc = cfs_crypto_hash_init(cfs_hash_alg_id[alg], NULL, 0); in sptlrpc_get_bulk_checksum() 525 cfs_crypto_hash_name(cfs_hash_alg_id[alg])); in sptlrpc_get_bulk_checksum() 529 hashsize = cfs_crypto_hash_digestsize(cfs_hash_alg_id[alg]); in sptlrpc_get_bulk_checksum()
|
D | sec_config.c | 77 char *bulk, *alg; in sptlrpc_parse_flavor() local 106 alg = strchr(bulk, ':'); in sptlrpc_parse_flavor() 107 if (alg == NULL) in sptlrpc_parse_flavor() 109 *alg++ = '\0'; in sptlrpc_parse_flavor() 114 flvr->u_bulk.hash.hash_alg = sptlrpc_get_hash_alg(alg); in sptlrpc_parse_flavor()
|
/linux-4.4.14/drivers/staging/lustre/include/linux/libcfs/ |
D | libcfs_crypto.h | 129 int cfs_crypto_hash_digest(unsigned char alg, 146 cfs_crypto_hash_init(unsigned char alg,
|
/linux-4.4.14/arch/mips/cavium-octeon/crypto/ |
D | octeon-md5.c | 172 static struct shash_alg alg = { variable 195 return crypto_register_shash(&alg); in md5_mod_init() 200 crypto_unregister_shash(&alg); in md5_mod_fini()
|
/linux-4.4.14/drivers/crypto/caam/ |
D | caamhash.c | 1765 struct ahash_alg *alg = in caam_hash_cra_init() local 1768 container_of(alg, struct caam_hash_alg, ahash_alg); in caam_hash_cra_init() 1854 struct crypto_alg *alg; in caam_hash_alloc() local 1864 alg = &halg->halg.base; in caam_hash_alloc() 1867 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s", in caam_hash_alloc() 1869 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", in caam_hash_alloc() 1872 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s", in caam_hash_alloc() 1874 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", in caam_hash_alloc() 1877 alg->cra_module = THIS_MODULE; in caam_hash_alloc() 1878 alg->cra_init = caam_hash_cra_init; in caam_hash_alloc() [all …]
|
D | caamalg.c | 431 struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead), in aead_set_sh_desc() local 442 const bool is_rfc3686 = alg->caam.rfc3686; in aead_set_sh_desc() 463 if (alg->caam.geniv) in aead_set_sh_desc() 602 if (!alg->caam.geniv) in aead_set_sh_desc() 2123 struct caam_aead_alg *alg = container_of(crypto_aead_alg(aead), in init_authenc_job() local 2129 const bool is_rfc3686 = alg->caam.rfc3686; in init_authenc_job() 2150 if (ivsize && (is_rfc3686 || !(alg->caam.geniv && encrypt))) in init_authenc_job() 4346 struct crypto_alg *alg = tfm->__crt_alg; in caam_cra_init() local 4348 container_of(alg, struct caam_crypto_alg, crypto_alg); in caam_cra_init() 4356 struct aead_alg *alg = crypto_aead_alg(tfm); in caam_aead_init() local [all …]
|
/linux-4.4.14/include/linux/crush/ |
D | crush.h | 117 extern const char *crush_bucket_alg_name(int alg); 131 __u8 alg; /* one of CRUSH_BUCKET_* */ member
|
/linux-4.4.14/drivers/staging/media/davinci_vpfe/ |
D | dm365_ipipe.h | 49 enum vpfe_ipipe_otfdpc_alg alg; member 61 enum vpfe_ipipe_otfdpc_alg alg; member
|
D | davinci_vpfe_user.h | 703 enum vpfe_ipipe_otfdpc_alg alg; member 832 enum vpfe_ipipe_cfa_alg alg; member
|
D | dm365_ipipe_hw.c | 484 val = (otfdpc->det_method << OTF_DET_METHOD_SHIFT) | otfdpc->alg; in ipipe_set_otfdpc_regs() 498 if (otfdpc->alg == VPFE_IPIPE_OTFDPC_2_0) { in ipipe_set_otfdpc_regs() 642 regw_ip(base_addr, cfa->alg, CFA_MODE); in ipipe_set_cfa_regs()
|
D | dm365_ipipe.c | 142 if (dpc_param->alg == VPFE_IPIPE_OTFDPC_2_0) { in ipipe_validate_otfdpc_params() 415 cfa->alg = VPFE_IPIPE_CFA_ALG_2DIRAC; in ipipe_set_cfa_params()
|
/linux-4.4.14/net/sunrpc/auth_gss/ |
D | gss_krb5_mech.c | 223 int alg; in get_key() local 225 p = simple_get_bytes(p, end, &alg, sizeof(alg)); in get_key() 229 switch (alg) { in get_key() 234 alg = ENCTYPE_DES_CBC_RAW; in get_key() 238 if (!supported_gss_krb5_enctype(alg)) { in get_key() 240 "encryption key algorithm %d\n", alg); in get_key()
|
/linux-4.4.14/drivers/net/wireless/orinoco/ |
D | wext.c | 31 enum orinoco_alg alg, const u8 *key, int key_len, in orinoco_set_key() argument 59 switch (alg) { in orinoco_set_key() 727 int idx, alg = ext->alg, set_key = 1; in orinoco_ioctl_set_encodeext() local 744 alg = IW_ENCODE_ALG_NONE; in orinoco_ioctl_set_encodeext() 746 if (priv->has_wpa && (alg != IW_ENCODE_ALG_TKIP)) { in orinoco_ioctl_set_encodeext() 753 set_key = ((alg == IW_ENCODE_ALG_TKIP) || in orinoco_ioctl_set_encodeext() 759 switch (alg) { in orinoco_ioctl_set_encodeext() 846 ext->alg = IW_ENCODE_ALG_NONE; in orinoco_ioctl_get_encodeext() 851 ext->alg = IW_ENCODE_ALG_WEP; in orinoco_ioctl_get_encodeext() 857 ext->alg = IW_ENCODE_ALG_TKIP; in orinoco_ioctl_get_encodeext()
|
/linux-4.4.14/drivers/staging/rtl8188eu/os_dep/ |
D | ioctl_linux.c | 366 param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; in wpa_set_encryption() 385 if (strcmp(param->u.crypt.alg, "WEP") == 0) { in wpa_set_encryption() 452 if (strcmp(param->u.crypt.alg, "none") != 0) in wpa_set_encryption() 462 if (strcmp(param->u.crypt.alg, "TKIP") == 0) { /* set mic key */ in wpa_set_encryption() 488 if (strcmp(param->u.crypt.alg, "none") != 0) in wpa_set_encryption() 1912 switch (pext->alg) { in rtw_wx_set_enc_ext() 1932 strncpy((char *)param->u.crypt.alg, alg_name, IEEE_CRYPT_ALG_NAME_LEN); in rtw_wx_set_enc_ext() 1940 if ((pext->alg != IW_ENCODE_ALG_WEP) && in rtw_wx_set_enc_ext() 2150 static int set_group_key(struct adapter *padapter, u8 *key, u8 alg, int keyid) in set_group_key() argument 2176 psetkeyparm->algorithm = alg; in set_group_key() [all …]
|
/linux-4.4.14/drivers/net/wireless/hostap/ |
D | hostap_ioctl.c | 3212 const char *alg, *module; in prism2_ioctl_siwencodeext() local 3247 ext->alg == IW_ENCODE_ALG_NONE) { in prism2_ioctl_siwencodeext() 3253 switch (ext->alg) { in prism2_ioctl_siwencodeext() 3255 alg = "WEP"; in prism2_ioctl_siwencodeext() 3259 alg = "TKIP"; in prism2_ioctl_siwencodeext() 3263 alg = "CCMP"; in prism2_ioctl_siwencodeext() 3268 local->dev->name, ext->alg); in prism2_ioctl_siwencodeext() 3273 ops = lib80211_get_crypto_ops(alg); in prism2_ioctl_siwencodeext() 3276 ops = lib80211_get_crypto_ops(alg); in prism2_ioctl_siwencodeext() 3280 local->dev->name, alg); in prism2_ioctl_siwencodeext() [all …]
|
D | hostap_common.h | 374 u8 alg[HOSTAP_CRYPT_ALG_NAME_LEN]; member
|
/linux-4.4.14/drivers/media/platform/davinci/ |
D | isif.c | 79 .alg = ISIF_ALAW, 601 if (module_params->compress.alg == ISIF_ALAW) in isif_config_raw() 608 if (module_params->compress.alg == ISIF_DPCM) { in isif_config_raw() 747 if ((isif_cfg.bayer.config_params.compress.alg != in isif_set_pixel_format() 749 (isif_cfg.bayer.config_params.compress.alg != in isif_set_pixel_format() 757 isif_cfg.bayer.config_params.compress.alg = in isif_set_pixel_format() 780 if (isif_cfg.bayer.config_params.compress.alg == ISIF_ALAW || in isif_get_pixel_format() 781 isif_cfg.bayer.config_params.compress.alg == ISIF_DPCM) in isif_get_pixel_format()
|
/linux-4.4.14/drivers/staging/rtl8723au/include/ |
D | rtw_security.h | 23 #define is_wep_enc(alg) (alg == WLAN_CIPHER_SUITE_WEP40 || \ argument 24 alg == WLAN_CIPHER_SUITE_WEP104)
|
/linux-4.4.14/drivers/staging/rtl8188eu/include/ |
D | rtw_security.h | 35 #define is_wep_enc(alg) (((alg) == _WEP40_) || ((alg) == _WEP104_)) argument
|
D | ieee80211.h | 233 u8 alg[IEEE_CRYPT_ALG_NAME_LEN]; member
|
/linux-4.4.14/arch/s390/kernel/vdso64/ |
D | clock_gettime.S | 45 alg %r1,__VDSO_WTOM_NSEC(%r5) 90 alg %r1,__VDSO_XTIME_NSEC(%r5) /* + tk->xtime_nsec */
|
D | gettimeofday.S | 36 alg %r1,__VDSO_XTIME_NSEC(%r5) /* + tk->xtime_nsec */
|
/linux-4.4.14/arch/cris/include/arch-v32/arch/ |
D | cryptocop.h | 34 cryptocop_algorithm alg; member
|
/linux-4.4.14/arch/cris/arch-v32/drivers/ |
D | cryptocop.c | 452 if ((tc->tctx->init.alg == cryptocop_alg_aes) && (tc->tcfg->flags & CRYPTOCOP_DECRYPT)) { in setup_key_dl_desc() 843 switch (tctx->init.alg){ in cryptocop_setup_dma_list() 886 switch (tctx->init.alg){ in cryptocop_setup_dma_list() 903 panic("cryptocop_setup_dma_list: impossible algorithm %d\n", tctx->init.alg); in cryptocop_setup_dma_list() 918 switch (tctx->init.alg){ in cryptocop_setup_dma_list() 946 …yptocop_setup_dma_list: invalid algorithm %d specified in tfrm %d.\n", tctx->init.alg, tcfg->tid)); in cryptocop_setup_dma_list() 953 if (cipher_ctx.tcfg && (cipher_ctx.tctx->init.alg != cryptocop_alg_mem2mem)){ in cryptocop_setup_dma_list() 1450 switch (tinit->alg){ in transform_ok() 1488 DEBUG_API(printk("transform_ok: no such algorithm %d\n", tinit->alg)); in transform_ok() 1492 switch (tinit->alg){ in transform_ok() [all …]
|
/linux-4.4.14/arch/s390/kernel/ |
D | swsusp.S | 64 alg %r0,__LC_SYSTEM_TIMER 69 alg %r0,__LC_STEAL_TIMER
|
D | entry.S | 116 alg \w1,__LC_USER_TIMER 117 alg \w2,__LC_SYSTEM_TIMER 1077 alg %r15,__LC_USER_TIMER 1084 alg %r15,__LC_SYSTEM_TIMER 1175 alg %r0,64(%r4) 1183 alg %r9,__CLOCK_IDLE_ENTER(%r2) 1188 alg %r9,__LC_LAST_UPDATE_TIMER
|
/linux-4.4.14/include/net/ |
D | xfrm.h | 1700 static inline int aead_len(struct xfrm_algo_aead *alg) in aead_len() argument 1702 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); in aead_len() 1705 static inline int xfrm_alg_len(const struct xfrm_algo *alg) in xfrm_alg_len() argument 1707 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); in xfrm_alg_len() 1710 static inline int xfrm_alg_auth_len(const struct xfrm_algo_auth *alg) in xfrm_alg_auth_len() argument 1712 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); in xfrm_alg_auth_len()
|
/linux-4.4.14/include/linux/ |
D | crypto.h | 467 void (*cra_destroy)(struct crypto_alg *alg); 475 int crypto_register_alg(struct crypto_alg *alg); 476 int crypto_unregister_alg(struct crypto_alg *alg); 626 int alg_test(const char *driver, const char *alg, u32 type, u32 mask);
|
/linux-4.4.14/drivers/net/ethernet/toshiba/ |
D | ps3_gelic_wireless.c | 1208 __u16 alg; in gelic_wl_set_encodeext() local 1216 alg = ext->alg; in gelic_wl_set_encodeext() 1242 if (alg == IW_ENCODE_ALG_NONE || (flags & IW_ENCODE_DISABLED)) { in gelic_wl_set_encodeext() 1248 } else if (alg == IW_ENCODE_ALG_WEP) { in gelic_wl_set_encodeext() 1271 } else if (alg == IW_ENCODE_ALG_PMK) { in gelic_wl_set_encodeext() 1326 ext->alg = IW_ENCODE_ALG_WEP; in gelic_wl_get_encodeext() 1330 ext->alg = IW_ENCODE_ALG_TKIP; in gelic_wl_get_encodeext() 1334 ext->alg = IW_ENCODE_ALG_CCMP; in gelic_wl_get_encodeext() 1339 ext->alg = IW_ENCODE_ALG_NONE; in gelic_wl_get_encodeext()
|
/linux-4.4.14/net/ceph/ |
D | osdmap.c | 199 u32 alg; in crush_decode() local 202 ceph_decode_32_safe(p, end, alg, bad); in crush_decode() 203 if (alg == 0) { in crush_decode() 210 switch (alg) { in crush_decode() 238 b->alg = ceph_decode_8(p); in crush_decode() 258 switch (b->alg) { in crush_decode()
|
/linux-4.4.14/include/media/davinci/ |
D | isif.h | 407 __u8 alg; member
|
/linux-4.4.14/security/keys/encrypted-keys/ |
D | encrypted.c | 324 static struct sdesc *alloc_sdesc(struct crypto_shash *alg) in alloc_sdesc() argument 329 size = sizeof(struct shash_desc) + crypto_shash_descsize(alg); in alloc_sdesc() 333 sdesc->shash.tfm = alg; in alloc_sdesc()
|
/linux-4.4.14/Documentation/devicetree/bindings/crypto/ |
D | fsl-sec2.txt | 29 bit 11 = set if SEC has the message digest EU extended alg set (MDEU-B)
|
/linux-4.4.14/net/sctp/ |
D | Kconfig | 82 bool "Use no hmac alg in SCTP cookie generation"
|
D | socket.c | 6312 char alg[32]; in sctp_listen_start() local 6316 sprintf(alg, "hmac(%s)", sp->sctp_hmac_alg); in sctp_listen_start() 6317 tfm = crypto_alloc_hash(alg, 0, CRYPTO_ALG_ASYNC); in sctp_listen_start()
|
/linux-4.4.14/drivers/net/wireless/prism54/ |
D | isl_ioctl.c | 1545 int idx, alg = ext->alg, set_key = 1; in prism54_set_encodeext() local 1566 alg = IW_ENCODE_ALG_NONE; in prism54_set_encodeext() 1578 switch (alg) { in prism54_set_encodeext() 1706 ext->alg = IW_ENCODE_ALG_NONE; in prism54_get_encodeext() 1725 ext->alg = IW_ENCODE_ALG_TKIP; in prism54_get_encodeext() 1729 ext->alg = IW_ENCODE_ALG_WEP; in prism54_get_encodeext()
|
/linux-4.4.14/drivers/crypto/ux500/hash/ |
D | hash_core.c | 1347 const u8 *key, unsigned int keylen, int alg) in hash_setkey() argument 1358 __func__, alg); in hash_setkey() 1498 struct crypto_alg *alg = tfm->__crt_alg; in hash_cra_init() local 1501 hash_alg = container_of(__crypto_ahash_alg(alg), in hash_cra_init()
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
D | file_ops.c | 852 unsigned swmajor, swminor, alg = HFI1_ALG_ACROSS; in assign_ctxt() local 863 alg = uinfo->hfi1_alg; in assign_ctxt() 876 ret = get_user_context(fp, uinfo, i_minor - 1, alg); in assign_ctxt() 884 int devno, unsigned alg) in get_user_context() argument 907 if (alg == HFI1_ALG_ACROSS) { in get_user_context()
|
/linux-4.4.14/security/keys/ |
D | trusted.c | 45 static struct sdesc *init_sdesc(struct crypto_shash *alg) in init_sdesc() argument 50 size = sizeof(struct shash_desc) + crypto_shash_descsize(alg); in init_sdesc() 54 sdesc->shash.tfm = alg; in init_sdesc()
|
/linux-4.4.14/drivers/infiniband/hw/qib/ |
D | qib_file_ops.c | 1430 unsigned alg) in get_a_ctxt() argument 1446 if (alg == QIB_PORT_ALG_ACROSS) { in get_a_ctxt() 1612 unsigned swmajor, swminor, alg = QIB_PORT_ALG_ACROSS; in qib_assign_ctxt() local 1630 alg = uinfo->spu_port_alg; in qib_assign_ctxt() 1660 ret = get_a_ctxt(fp, uinfo, alg); in qib_assign_ctxt()
|
/linux-4.4.14/include/uapi/linux/ |
D | wireless.h | 838 __u16 alg; /* IW_ENCODE_ALG_* */ member
|
/linux-4.4.14/drivers/staging/rtl8712/ |
D | rtl871x_ioctl_linux.c | 102 if (strcmp(param->u.crypt.alg, "TKIP") == 0) { /* set mic key */ in handle_pairwise_key() 377 param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0'; in wpa_set_encryption() 389 if (strcmp(param->u.crypt.alg, "WEP") == 0) { in wpa_set_encryption() 1780 switch (pext->alg) { in r871x_wx_set_enc_ext() 1803 strncpy((char *)param->u.crypt.alg, alg_name, IEEE_CRYPT_ALG_NAME_LEN); in r871x_wx_set_enc_ext()
|
D | ieee80211.h | 110 u8 alg[IEEE_CRYPT_ALG_NAME_LEN]; member
|
/linux-4.4.14/drivers/net/wireless/ |
D | atmel.c | 1854 int idx, key_len, alg = ext->alg, set_key = 1; in atmel_set_encodeext() local 1866 alg = IW_ENCODE_ALG_NONE; in atmel_set_encodeext() 1875 switch (alg) { in atmel_set_encodeext() 1932 ext->alg = IW_ENCODE_ALG_NONE; in atmel_get_encodeext() 1937 ext->alg = IW_ENCODE_ALG_WEP; in atmel_get_encodeext() 2719 __le16 alg; member 2883 auth.alg = cpu_to_le16(system); in send_authentication_request() 3053 u16 system = le16_to_cpu(auth->alg); in authenticate()
|
D | rndis_wlan.c | 2296 int ret, alg, length, chan = -1; in rndis_join_ibss() local 2308 alg = RNDIS_WLAN_ALG_WEP; in rndis_join_ibss() 2311 alg = RNDIS_WLAN_ALG_NONE; in rndis_join_ibss() 2336 ret = set_encr_mode(usbdev, alg, RNDIS_WLAN_ALG_NONE); in rndis_join_ibss()
|
/linux-4.4.14/Documentation/device-mapper/ |
D | verity.txt | 116 alg = sha256, num_blocks = 32768, block_size = 4096
|
/linux-4.4.14/drivers/staging/lustre/lustre/include/ |
D | lustre_sec.h | 1068 int sptlrpc_get_bulk_checksum(struct ptlrpc_bulk_desc *desc, __u8 alg,
|
/linux-4.4.14/drivers/media/i2c/ |
D | s5k5baf.c | 652 static void s5k5baf_hw_set_alg(struct s5k5baf *state, u16 alg, bool enable) in s5k5baf_hw_set_alg() argument 661 new_alg = enable ? (cur_alg | alg) : (cur_alg & ~alg); in s5k5baf_hw_set_alg()
|
/linux-4.4.14/fs/ecryptfs/ |
D | keystore.c | 2212 struct blkcipher_alg *alg = crypto_blkcipher_alg(desc.tfm); in write_tag_3_packet() local 2215 "defaulting to [%d]\n", alg->max_keysize); in write_tag_3_packet() 2217 alg->max_keysize; in write_tag_3_packet()
|
D | crypto.c | 1621 struct blkcipher_alg *alg = crypto_blkcipher_alg(*key_tfm); in ecryptfs_process_key_cipher() local 1623 *key_size = alg->max_keysize; in ecryptfs_process_key_cipher()
|
/linux-4.4.14/drivers/scsi/aic7xxx/ |
D | aic7xxx_osm.c | 1274 struct ahc_devinfo *devinfo, ahc_queue_alg alg) in ahc_platform_set_tags() argument 1285 switch (alg) { in ahc_platform_set_tags() 1323 } else if (alg == AHC_QUEUE_TAGGED) { in ahc_platform_set_tags()
|
D | aic79xx_osm.c | 1404 struct ahd_devinfo *devinfo, ahd_queue_alg alg) in ahd_platform_set_tags() argument 1418 switch (alg) { in ahd_platform_set_tags() 1456 } else if (alg == AHD_QUEUE_TAGGED) { in ahd_platform_set_tags()
|
/linux-4.4.14/drivers/crypto/ux500/cryp/ |
D | cryp_core.c | 1096 struct crypto_alg *alg = tfm->__crt_alg; in cryp_cra_init() local 1097 struct cryp_algo_template *cryp_alg = container_of(alg, in cryp_cra_init()
|
/linux-4.4.14/drivers/staging/rtl8723au/os_dep/ |
D | ioctl_cfg80211.c | 423 u32 alg, u8 keyid) in set_group_key() argument 450 if (is_wep_enc(alg)) in set_group_key() 453 psetkeyparm->algorithm = alg; in set_group_key()
|
/linux-4.4.14/drivers/block/drbd/ |
D | drbd_receiver.c | 3447 const char *alg, const char *name) in drbd_crypto_alloc_digest_safe() argument 3451 if (!alg[0]) in drbd_crypto_alloc_digest_safe() 3454 tfm = crypto_alloc_hash(alg, 0, CRYPTO_ALG_ASYNC); in drbd_crypto_alloc_digest_safe() 3457 alg, name, PTR_ERR(tfm)); in drbd_crypto_alloc_digest_safe()
|