cipher_alg
static struct crypto_alg cipher_alg = {
err = crypto_register_alg(&cipher_alg);
crypto_unregister_alg(&cipher_alg);
crypto_unregister_alg(&cipher_alg);
struct cipher_alg *cia = crypto_cipher_alg(tfm);
struct cipher_alg *cia = crypto_cipher_alg(tfm);
struct cipher_alg *cia = crypto_cipher_alg(tfm);
struct crypto_alg *cipher_alg;
cipher_alg = crypto_spawn_cipher_alg(spawn);
cipher_alg);
inst->alg.co.base.cra_blocksize = cipher_alg->cra_blocksize;
inst->alg.co.base.cra_alignmask = cipher_alg->cra_alignmask;
inst->alg.co.base.cra_priority = cipher_alg->cra_priority;
inst->alg.co.min_keysize = cipher_alg->cra_cipher.cia_min_keysize;
inst->alg.co.max_keysize = cipher_alg->cra_cipher.cia_max_keysize;
inst->alg.co.ivsize = cipher_alg->cra_blocksize;
struct lskcipher_alg *cipher_alg;
cipher_alg = crypto_lskcipher_spawn_alg(spawn);
if (cipher_alg->co.ivsize)
inst->alg.co.base.cra_ctxsize = cipher_alg->co.base.cra_ctxsize;
inst->alg.setkey = cipher_alg->setkey;
inst->alg.encrypt = cipher_alg->encrypt;
inst->alg.decrypt = cipher_alg->decrypt;
inst->alg.init = cipher_alg->init;
inst->alg.exit = cipher_alg->exit;
struct lskcipher_alg *cipher_alg;
cipher_alg = crypto_lskcipher_spawn_alg(spawn);
&cipher_alg->co.base);
len = strscpy(ecb_name, &cipher_alg->co.base.cra_name[4],
if ((cipher_alg->co.base.cra_flags & CRYPTO_ALG_INSTANCE))
if (cipher_alg->co.ivsize)
inst->alg.co.base.cra_blocksize = cipher_alg->co.base.cra_blocksize;
inst->alg.co.base.cra_alignmask = cipher_alg->co.base.cra_alignmask;
inst->alg.co.base.cra_priority = cipher_alg->co.base.cra_priority;
inst->alg.co.min_keysize = cipher_alg->co.min_keysize;
inst->alg.co.max_keysize = cipher_alg->co.max_keysize;
inst->alg.co.ivsize = cipher_alg->co.base.cra_blocksize;
inst->alg.co.statesize = cipher_alg->co.statesize;
struct crypto_alg *cipher_alg;
cipher_alg = crypto_spawn_cipher_alg(spawn);
cipher_alg);
inst->alg.base.cra_blocksize = cipher_alg->cra_blocksize;
inst->alg.base.cra_alignmask = cipher_alg->cra_alignmask;
inst->alg.base.cra_priority = cipher_alg->cra_priority;
inst->alg.min_keysize = cipher_alg->cra_cipher.cia_min_keysize;
inst->alg.max_keysize = cipher_alg->cra_cipher.cia_max_keysize;
inst->alg.ivsize = cipher_alg->cra_blocksize;
sa->sa_command_0.bf.cipher_alg = c;
u32 cipher_alg:4;
struct iproc_alg_s *cipher_alg)
ctx->alg = cipher_alg;
ctx->cipher = cipher_alg->cipher_info;
ctx->auth = cipher_alg->auth_info;
ctx->auth_first = cipher_alg->auth_first;
struct iproc_alg_s *cipher_alg;
cipher_alg = container_of(alg, struct iproc_alg_s, alg.skcipher);
return generic_cra_init(tfm, cipher_alg);
struct iproc_alg_s *cipher_alg;
cipher_alg = container_of(__crypto_ahash_alg(alg), struct iproc_alg_s,
err = generic_cra_init(tfm, cipher_alg);
struct iproc_alg_s *cipher_alg = container_of(aalg, struct iproc_alg_s,
int err = generic_cra_init(tfm, cipher_alg);
u32 (*spu_ctx_max_payload)(enum spu_cipher_alg cipher_alg,
if (cipher_alg) {
switch (cipher_alg) {
u32 cipher_alg;
u32 spum_ns2_ctx_max_payload(enum spu_cipher_alg cipher_alg,
u32 spum_nsp_ctx_max_payload(enum spu_cipher_alg cipher_alg,
cipher_alg = (cflags & CIPHER_ALG) >> CIPHER_ALG_SHIFT;
cipher_alg, cipher_mode, cipher_type);
u32 spum_ns2_ctx_max_payload(enum spu_cipher_alg cipher_alg,
u32 spum_nsp_ctx_max_payload(enum spu_cipher_alg cipher_alg,
static int spu2_cipher_xlate(enum spu_cipher_alg cipher_alg,
switch (cipher_alg) {
cipher_alg, cipher_type);
u32 spu2_ctx_max_payload(enum spu_cipher_alg cipher_alg,
if ((cipher_alg == CIPHER_ALG_AES) &&
u32 spu2_ctx_max_payload(enum spu_cipher_alg cipher_alg,
ctx->cipher_alg = alg;
ctx->cipher_alg);
switch (ctx->cipher_alg) {
enum sec_cipher_alg cipher_alg;
keyconf->cipher_alg = ovpn_aead_crypto_alg(ks);
enum ovpn_cipher_alg cipher_alg;
switch (kc->cipher_alg) {
pkr.key.cipher_alg = nla_get_u32(attrs[OVPN_A_KEYCONF_CIPHER_ALG]);
pkr.key.cipher_alg, &pkr.key.encrypt);
pkr.key.cipher_alg, &pkr.key.decrypt);
nla_put_u32(skb, OVPN_A_KEYCONF_CIPHER_ALG, keyconf->cipher_alg))
static inline struct cipher_alg *crypto_cipher_alg(struct crypto_cipher *tfm)
struct cipher_alg cipher;