crypto_lskcipher
static int crypto_arc4_setkey(struct crypto_lskcipher *tfm, const u8 *in_key,
static int crypto_arc4_crypt(struct crypto_lskcipher *tfm, const u8 *src,
static int crypto_arc4_init(struct crypto_lskcipher *tfm)
static int crypto_cbc_decrypt(struct crypto_lskcipher *tfm, const u8 *src,
struct crypto_lskcipher **ctx = crypto_lskcipher_ctx(tfm);
struct crypto_lskcipher *cipher = *ctx;
static int crypto_cbc_encrypt_segment(struct crypto_lskcipher *tfm,
static int crypto_cbc_encrypt_inplace(struct crypto_lskcipher *tfm,
static int crypto_cbc_encrypt(struct crypto_lskcipher *tfm, const u8 *src,
struct crypto_lskcipher **ctx = crypto_lskcipher_ctx(tfm);
struct crypto_lskcipher *cipher = *ctx;
static int crypto_cbc_decrypt_segment(struct crypto_lskcipher *tfm,
static int crypto_cbc_decrypt_inplace(struct crypto_lskcipher *tfm,
static int crypto_ecb_encrypt2(struct crypto_lskcipher *tfm, const u8 *src,
static int crypto_ecb_decrypt2(struct crypto_lskcipher *tfm, const u8 *src,
static int lskcipher_setkey_simple2(struct crypto_lskcipher *tfm,
static int lskcipher_init_tfm_simple2(struct crypto_lskcipher *tfm)
static void lskcipher_exit_tfm_simple2(struct crypto_lskcipher *tfm)
static int crypto_lskcipher_crypt(struct crypto_lskcipher *tfm, const u8 *src,
int (*crypt)(struct crypto_lskcipher *tfm,
int crypto_lskcipher_encrypt(struct crypto_lskcipher *tfm, const u8 *src,
int crypto_lskcipher_decrypt(struct crypto_lskcipher *tfm, const u8 *src,
int (*crypt)(struct crypto_lskcipher *tfm,
struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher);
struct crypto_lskcipher *tfm = *ctx;
static inline struct crypto_lskcipher *__crypto_lskcipher_cast(
struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher);
struct crypto_lskcipher **ctx = crypto_skcipher_ctx(skcipher);
struct crypto_lskcipher *skcipher = __crypto_lskcipher_cast(tfm);
struct crypto_lskcipher *skcipher = __crypto_lskcipher_cast(tfm);
return container_of(tfm, struct crypto_lskcipher, base);
.tfmsize = offsetof(struct crypto_lskcipher, base),
struct crypto_lskcipher **ctx = crypto_tfm_ctx(tfm);
struct crypto_lskcipher **ctx = crypto_tfm_ctx(tfm);
struct crypto_lskcipher *skcipher;
static int lskcipher_setkey_unaligned(struct crypto_lskcipher *tfm,
struct crypto_lskcipher *crypto_alloc_lskcipher(const char *alg_name,
static int lskcipher_setkey_simple(struct crypto_lskcipher *tfm, const u8 *key,
struct crypto_lskcipher *cipher = lskcipher_cipher_simple(tfm);
static int lskcipher_init_tfm_simple(struct crypto_lskcipher *tfm)
struct crypto_lskcipher **ctx = crypto_lskcipher_ctx(tfm);
struct crypto_lskcipher *cipher;
static void lskcipher_exit_tfm_simple(struct crypto_lskcipher *tfm)
struct crypto_lskcipher **ctx = crypto_lskcipher_ctx(tfm);
int crypto_lskcipher_setkey(struct crypto_lskcipher *tfm, const u8 *key,
inst->alg.co.base.cra_ctxsize = sizeof(struct crypto_lskcipher *);
struct crypto_lskcipher *tfm, const u8 *src, u8 *dst, unsigned len,
u8 *iv, int (*crypt)(struct crypto_lskcipher *tfm, const u8 *src,
struct crypto_lskcipher **ctx = crypto_skcipher_ctx(tfm);
return sizeof(struct crypto_lskcipher *);
struct crypto_lskcipher *lskcipher)
static inline struct crypto_lskcipher *crypto_spawn_lskcipher(
static inline void *crypto_lskcipher_ctx(struct crypto_lskcipher *tfm)
static inline struct crypto_lskcipher *lskcipher_cipher_simple(
struct crypto_lskcipher *tfm)
struct crypto_lskcipher **ctx = crypto_lskcipher_ctx(tfm);
int (*setkey)(struct crypto_lskcipher *tfm, const u8 *key,
int (*encrypt)(struct crypto_lskcipher *tfm, const u8 *src,
int (*decrypt)(struct crypto_lskcipher *tfm, const u8 *src,
int (*init)(struct crypto_lskcipher *tfm);
void (*exit)(struct crypto_lskcipher *tfm);
struct crypto_lskcipher *crypto_alloc_lskcipher(const char *alg_name,
struct crypto_lskcipher *tfm)
static inline void crypto_free_lskcipher(struct crypto_lskcipher *tfm)
struct crypto_lskcipher *tfm)
struct crypto_lskcipher *tfm)
struct crypto_lskcipher *tfm)
struct crypto_lskcipher *tfm)
struct crypto_lskcipher *tfm)
struct crypto_lskcipher *tfm)
struct crypto_lskcipher *tfm)
static inline u32 crypto_lskcipher_get_flags(struct crypto_lskcipher *tfm)
static inline void crypto_lskcipher_set_flags(struct crypto_lskcipher *tfm,
static inline void crypto_lskcipher_clear_flags(struct crypto_lskcipher *tfm,
int crypto_lskcipher_setkey(struct crypto_lskcipher *tfm,
struct crypto_lskcipher *tfm)
struct crypto_lskcipher *tfm)
int crypto_lskcipher_encrypt(struct crypto_lskcipher *tfm, const u8 *src,
int crypto_lskcipher_decrypt(struct crypto_lskcipher *tfm, const u8 *src,