• Home
  • Raw
  • Download

Lines Matching refs:alg

24 static int crypto_akcipher_report(struct sk_buff *skb, struct crypto_alg *alg)  in crypto_akcipher_report()  argument
36 static int crypto_akcipher_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_akcipher_report() argument
42 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg)
45 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg) in crypto_akcipher_show() argument
53 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_exit_tfm() local
55 alg->exit(akcipher); in crypto_akcipher_exit_tfm()
61 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_init_tfm() local
63 if (alg->exit) in crypto_akcipher_init_tfm()
66 if (alg->init) in crypto_akcipher_init_tfm()
67 return alg->init(akcipher); in crypto_akcipher_init_tfm()
109 static void akcipher_prepare_alg(struct akcipher_alg *alg) in akcipher_prepare_alg() argument
111 struct crypto_alg *base = &alg->base; in akcipher_prepare_alg()
129 int crypto_register_akcipher(struct akcipher_alg *alg) in crypto_register_akcipher() argument
131 struct crypto_alg *base = &alg->base; in crypto_register_akcipher()
133 if (!alg->sign) in crypto_register_akcipher()
134 alg->sign = akcipher_default_op; in crypto_register_akcipher()
135 if (!alg->verify) in crypto_register_akcipher()
136 alg->verify = akcipher_default_op; in crypto_register_akcipher()
137 if (!alg->encrypt) in crypto_register_akcipher()
138 alg->encrypt = akcipher_default_op; in crypto_register_akcipher()
139 if (!alg->decrypt) in crypto_register_akcipher()
140 alg->decrypt = akcipher_default_op; in crypto_register_akcipher()
141 if (!alg->set_priv_key) in crypto_register_akcipher()
142 alg->set_priv_key = akcipher_default_set_key; in crypto_register_akcipher()
144 akcipher_prepare_alg(alg); in crypto_register_akcipher()
149 void crypto_unregister_akcipher(struct akcipher_alg *alg) in crypto_unregister_akcipher() argument
151 crypto_unregister_alg(&alg->base); in crypto_unregister_akcipher()
160 akcipher_prepare_alg(&inst->alg); in akcipher_register_instance()