/linux/crypto/ |
H A D | ecb.c | 102 struct crypto_alg *cipher_alg; in lskcipher_alloc_instance_simple2() local 119 cipher_alg = crypto_spawn_cipher_alg(spawn); in lskcipher_alloc_instance_simple2() 122 cipher_alg); in lskcipher_alloc_instance_simple2() 129 inst->alg.co.base.cra_blocksize = cipher_alg->cra_blocksize; in lskcipher_alloc_instance_simple2() 130 inst->alg.co.base.cra_alignmask = cipher_alg->cra_alignmask; in lskcipher_alloc_instance_simple2() 131 inst->alg.co.base.cra_priority = cipher_alg->cra_priority; in lskcipher_alloc_instance_simple2() 132 inst->alg.co.min_keysize = cipher_alg->cra_cipher.cia_min_keysize; in lskcipher_alloc_instance_simple2() 133 inst->alg.co.max_keysize = cipher_alg->cra_cipher.cia_max_keysize; in lskcipher_alloc_instance_simple2() 134 inst->alg.co.ivsize = cipher_alg->cra_blocksize; in lskcipher_alloc_instance_simple2() 174 struct lskcipher_alg *cipher_alg; in crypto_ecb_create() local [all...] |
H A D | lskcipher.c | 490 struct lskcipher_alg *cipher_alg; in lskcipher_alloc_instance_simple() local 526 cipher_alg = crypto_lskcipher_spawn_alg(spawn); in lskcipher_alloc_instance_simple() 529 &cipher_alg->co.base); in lskcipher_alloc_instance_simple() 537 len = strscpy(ecb_name, &cipher_alg->co.base.cra_name[4], in lskcipher_alloc_instance_simple() 562 if ((cipher_alg->co.base.cra_flags & CRYPTO_ALG_INSTANCE)) in lskcipher_alloc_instance_simple() 567 if (cipher_alg->co.ivsize) in lskcipher_alloc_instance_simple() 573 inst->alg.co.base.cra_blocksize = cipher_alg->co.base.cra_blocksize; in lskcipher_alloc_instance_simple() 574 inst->alg.co.base.cra_alignmask = cipher_alg->co.base.cra_alignmask; in lskcipher_alloc_instance_simple() 575 inst->alg.co.base.cra_priority = cipher_alg->co.base.cra_priority; in lskcipher_alloc_instance_simple() 576 inst->alg.co.min_keysize = cipher_alg in lskcipher_alloc_instance_simple() [all...] |
H A D | skcipher.c | 593 struct crypto_alg *cipher_alg; in skcipher_alloc_instance_simple() local 609 cipher_alg = crypto_spawn_cipher_alg(spawn); in skcipher_alloc_instance_simple() 612 cipher_alg); in skcipher_alloc_instance_simple() 619 inst->alg.base.cra_blocksize = cipher_alg->cra_blocksize; in skcipher_alloc_instance_simple() 620 inst->alg.base.cra_alignmask = cipher_alg->cra_alignmask; in skcipher_alloc_instance_simple() 621 inst->alg.base.cra_priority = cipher_alg->cra_priority; in skcipher_alloc_instance_simple() 622 inst->alg.min_keysize = cipher_alg->cra_cipher.cia_min_keysize; in skcipher_alloc_instance_simple() 623 inst->alg.max_keysize = cipher_alg->cra_cipher.cia_max_keysize; in skcipher_alloc_instance_simple() 624 inst->alg.ivsize = cipher_alg->cra_blocksize; in skcipher_alloc_instance_simple()
|
H A D | cipher.c | 23 struct cipher_alg *cia = crypto_cipher_alg(tfm); in setkey_unaligned() 45 struct cipher_alg *cia = crypto_cipher_alg(tfm); in crypto_cipher_setkey() 62 struct cipher_alg *cia = crypto_cipher_alg(tfm); in cipher_crypt_one()
|
/linux/arch/sparc/crypto/ |
H A D | camellia_glue.c | 195 static struct crypto_alg cipher_alg = { variable 269 err = crypto_register_alg(&cipher_alg); in camellia_sparc64_mod_init() 275 crypto_unregister_alg(&cipher_alg); in camellia_sparc64_mod_init() 281 crypto_unregister_alg(&cipher_alg); in camellia_sparc64_mod_fini()
|
H A D | aes_glue.c | 361 static struct crypto_alg cipher_alg = { variable 450 err = crypto_register_alg(&cipher_alg); in aes_sparc64_mod_init() 456 crypto_unregister_alg(&cipher_alg); in aes_sparc64_mod_init() 462 crypto_unregister_alg(&cipher_alg); in aes_sparc64_mod_fini()
|
/linux/drivers/crypto/bcm/ |
H A D | spu.c | 31 u32 cipher_alg; in spum_dump_msg_hdr() local 76 cipher_alg = (cflags & CIPHER_ALG) >> CIPHER_ALG_SHIFT; in spum_dump_msg_hdr() 80 cipher_alg, cipher_mode, cipher_type); in spum_dump_msg_hdr() 213 if (cipher_alg) { in spum_dump_msg_hdr() 216 switch (cipher_alg) { in spum_dump_msg_hdr() 320 * @cipher_alg: The cipher algorithm 330 u32 spum_ns2_ctx_max_payload(enum spu_cipher_alg cipher_alg, in spum_ns2_ctx_max_payload() argument 349 * @cipher_alg: The cipher algorithm 359 u32 spum_nsp_ctx_max_payload(enum spu_cipher_alg cipher_alg, in spum_nsp_ctx_max_payload() argument
|
H A D | spu.h | 221 u32 spum_ns2_ctx_max_payload(enum spu_cipher_alg cipher_alg, 224 u32 spum_nsp_ctx_max_payload(enum spu_cipher_alg cipher_alg,
|
H A D | spu2.c | 129 * @cipher_alg: [in] cipher algorithm value from software enumeration 137 static int spu2_cipher_xlate(enum spu_cipher_alg cipher_alg, in spu2_cipher_xlate() argument 151 switch (cipher_alg) { in spu2_cipher_xlate() 189 cipher_alg, cipher_type); in spu2_cipher_xlate() 773 * @cipher_alg: The cipher algorithm 784 u32 spu2_ctx_max_payload(enum spu_cipher_alg cipher_alg, in spu2_ctx_max_payload() argument 788 if ((cipher_alg == CIPHER_ALG_AES) && in spu2_ctx_max_payload()
|
H A D | spu2.h | 175 u32 spu2_ctx_max_payload(enum spu_cipher_alg cipher_alg,
|
H A D | cipher.c | 4092 struct iproc_alg_s *cipher_alg) in generic_cra_init() argument 4100 ctx->alg = cipher_alg; in generic_cra_init() 4101 ctx->cipher = cipher_alg->cipher_info; in generic_cra_init() 4102 ctx->auth = cipher_alg->auth_info; in generic_cra_init() 4103 ctx->auth_first = cipher_alg->auth_first; in generic_cra_init() 4122 struct iproc_alg_s *cipher_alg; in skcipher_init_tfm() local 4128 cipher_alg = container_of(alg, struct iproc_alg_s, alg.skcipher); in skcipher_init_tfm() 4129 return generic_cra_init(tfm, cipher_alg); in skcipher_init_tfm() 4136 struct iproc_alg_s *cipher_alg; in ahash_cra_init() local 4138 cipher_alg in ahash_cra_init() 4161 struct iproc_alg_s *cipher_alg = container_of(aalg, struct iproc_alg_s, aead_cra_init() local [all...] |
H A D | cipher.h | 358 u32 (*spu_ctx_max_payload)(enum spu_cipher_alg cipher_alg,
|
/linux/include/linux/ |
H A D | crypto.h | 205 * struct cipher_alg - single-block symmetric ciphers definition 251 struct cipher_alg { struct 321 * definition. See @struct @cipher_alg. 351 struct cipher_alg cipher; 252 cia_min_keysizecipher_alg global() argument 253 cia_max_keysizecipher_alg global() argument 254 cia_setkeycipher_alg global() argument 256 cia_encryptcipher_alg global() argument 257 cia_decryptcipher_alg global() argument
|
/linux/Documentation/crypto/ |
H A D | api-skcipher.rst | 8 :functions: crypto_alg cipher_alg compress_alg
|
H A D | devel-algos.rst | 64 See struct cipher_alg below. 66 Cipher Definition With struct cipher_alg 69 Struct cipher_alg defines a single block cipher.
|
/linux/include/crypto/internal/ |
H A D | cipher.h | 215 static inline struct cipher_alg *crypto_cipher_alg(struct crypto_cipher *tfm) in crypto_cipher_alg()
|
/linux/drivers/net/ovpn/ |
H A D | crypto.h | 26 enum ovpn_cipher_alg cipher_alg; member
|
H A D | crypto.c | 205 keyconf->cipher_alg = ovpn_aead_crypto_alg(ks); in ovpn_crypto_config_get()
|
H A D | netlink.c | 911 pkr.key.cipher_alg = nla_get_u32(attrs[OVPN_A_KEYCONF_CIPHER_ALG]); in ovpn_nl_key_new_doit() 914 pkr.key.cipher_alg, &pkr.key.encrypt); in ovpn_nl_key_new_doit() 919 pkr.key.cipher_alg, &pkr.key.decrypt); in ovpn_nl_key_new_doit() 968 nla_put_u32(skb, OVPN_A_KEYCONF_CIPHER_ALG, keyconf->cipher_alg)) in ovpn_nl_send_key()
|
H A D | crypto_aead.c | 315 switch (kc->cipher_alg) { in ovpn_aead_crypto_key_slot_new()
|
/linux/drivers/crypto/hisilicon/sec/ |
H A D | sec_drv.h | 232 * @cipher_alg: Cipher algorithm enabled include encryption mode. 243 enum sec_cipher_alg cipher_alg; member
|
H A D | sec_algs.c | 150 ctx->cipher_alg = alg; in sec_alg_skcipher_init_context() 153 ctx->cipher_alg); in sec_alg_skcipher_init_context() 454 switch (ctx->cipher_alg) { in sec_skcipher_alg_callback()
|
/linux/drivers/crypto/amcc/ |
H A D | crypto4xx_sa.h | 99 u32 cipher_alg:4; member
|
H A D | crypto4xx_alg.c | 39 sa->sa_command_0.bf.cipher_alg = c; in set_dynamic_sa_command_0()
|