Lines Matching refs:crypto_lskcipher
20 static inline struct crypto_lskcipher *__crypto_lskcipher_cast( in __crypto_lskcipher_cast()
23 return container_of(tfm, struct crypto_lskcipher, base); in __crypto_lskcipher_cast()
32 static int lskcipher_setkey_unaligned(struct crypto_lskcipher *tfm, in lskcipher_setkey_unaligned()
53 int crypto_lskcipher_setkey(struct crypto_lskcipher *tfm, const u8 *key, in crypto_lskcipher_setkey()
70 struct crypto_lskcipher *tfm, const u8 *src, u8 *dst, unsigned len, in crypto_lskcipher_crypt_unaligned()
71 u8 *iv, int (*crypt)(struct crypto_lskcipher *tfm, const u8 *src, in crypto_lskcipher_crypt_unaligned()
123 static int crypto_lskcipher_crypt(struct crypto_lskcipher *tfm, const u8 *src, in crypto_lskcipher_crypt()
125 int (*crypt)(struct crypto_lskcipher *tfm, in crypto_lskcipher_crypt()
140 int crypto_lskcipher_encrypt(struct crypto_lskcipher *tfm, const u8 *src, in crypto_lskcipher_encrypt()
149 int crypto_lskcipher_decrypt(struct crypto_lskcipher *tfm, const u8 *src, in crypto_lskcipher_decrypt()
159 int (*crypt)(struct crypto_lskcipher *tfm, in crypto_lskcipher_crypt_sg()
165 struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher); in crypto_lskcipher_crypt_sg()
167 struct crypto_lskcipher *tfm = *ctx; in crypto_lskcipher_crypt_sg()
204 struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher); in crypto_lskcipher_encrypt_sg()
213 struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher); in crypto_lskcipher_decrypt_sg()
221 struct crypto_lskcipher *skcipher = __crypto_lskcipher_cast(tfm); in crypto_lskcipher_exit_tfm()
229 struct crypto_lskcipher *skcipher = __crypto_lskcipher_cast(tfm); in crypto_lskcipher_init_tfm()
296 .tfmsize = offsetof(struct crypto_lskcipher, base),
302 struct crypto_lskcipher **ctx = crypto_tfm_ctx(tfm); in crypto_lskcipher_exit_tfm_sg()
309 struct crypto_lskcipher **ctx = crypto_tfm_ctx(tfm); in crypto_init_lskcipher_ops_sg()
311 struct crypto_lskcipher *skcipher; in crypto_init_lskcipher_ops_sg()
337 struct crypto_lskcipher *crypto_alloc_lskcipher(const char *alg_name, in crypto_alloc_lskcipher()
422 static int lskcipher_setkey_simple(struct crypto_lskcipher *tfm, const u8 *key, in lskcipher_setkey_simple()
425 struct crypto_lskcipher *cipher = lskcipher_cipher_simple(tfm); in lskcipher_setkey_simple()
433 static int lskcipher_init_tfm_simple(struct crypto_lskcipher *tfm) in lskcipher_init_tfm_simple()
436 struct crypto_lskcipher **ctx = crypto_lskcipher_ctx(tfm); in lskcipher_init_tfm_simple()
438 struct crypto_lskcipher *cipher; in lskcipher_init_tfm_simple()
449 static void lskcipher_exit_tfm_simple(struct crypto_lskcipher *tfm) in lskcipher_exit_tfm_simple()
451 struct crypto_lskcipher **ctx = crypto_lskcipher_ctx(tfm); in lskcipher_exit_tfm_simple()
578 inst->alg.co.base.cra_ctxsize = sizeof(struct crypto_lskcipher *); in lskcipher_alloc_instance_simple()