Lines Matching refs:crypto_lskcipher

20 static inline struct crypto_lskcipher *__crypto_lskcipher_cast(
23 return container_of(tfm, struct crypto_lskcipher, base);
32 static int lskcipher_setkey_unaligned(struct crypto_lskcipher *tfm,
53 int crypto_lskcipher_setkey(struct crypto_lskcipher *tfm, const u8 *key,
70 struct crypto_lskcipher *tfm, const u8 *src, u8 *dst, unsigned len,
71 u8 *iv, int (*crypt)(struct crypto_lskcipher *tfm, const u8 *src,
123 static int crypto_lskcipher_crypt(struct crypto_lskcipher *tfm, const u8 *src,
125 int (*crypt)(struct crypto_lskcipher *tfm,
140 int crypto_lskcipher_encrypt(struct crypto_lskcipher *tfm, const u8 *src,
149 int crypto_lskcipher_decrypt(struct crypto_lskcipher *tfm, const u8 *src,
159 int (*crypt)(struct crypto_lskcipher *tfm,
165 struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher);
167 struct crypto_lskcipher *tfm = *ctx;
204 struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher);
213 struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher);
221 struct crypto_lskcipher *skcipher = __crypto_lskcipher_cast(tfm);
229 struct crypto_lskcipher *skcipher = __crypto_lskcipher_cast(tfm);
296 .tfmsize = offsetof(struct crypto_lskcipher, base),
301 struct crypto_lskcipher **ctx = crypto_tfm_ctx(tfm);
308 struct crypto_lskcipher **ctx = crypto_tfm_ctx(tfm);
310 struct crypto_lskcipher *skcipher;
336 struct crypto_lskcipher *crypto_alloc_lskcipher(const char *alg_name,
425 static int lskcipher_setkey_simple(struct crypto_lskcipher *tfm, const u8 *key,
428 struct crypto_lskcipher *cipher = lskcipher_cipher_simple(tfm);
436 static int lskcipher_init_tfm_simple(struct crypto_lskcipher *tfm)
439 struct crypto_lskcipher **ctx = crypto_lskcipher_ctx(tfm);
441 struct crypto_lskcipher *cipher;
452 static void lskcipher_exit_tfm_simple(struct crypto_lskcipher *tfm)
454 struct crypto_lskcipher **ctx = crypto_lskcipher_ctx(tfm);
473 * struct crypto_lskcipher *, and default ->setkey(), ->init(), and
580 /* Use struct crypto_lskcipher * by default, can be overridden */
581 inst->alg.co.base.cra_ctxsize = sizeof(struct crypto_lskcipher *);