1#ifndef __VSF_LINUX_CRYPTO_AKCIPHER_H__
2#define __VSF_LINUX_CRYPTO_AKCIPHER_H__
37static inline unsigned int crypto_akcipher_reqsize(
struct crypto_akcipher *tfm)
44 req->
base.
tfm = crypto_akcipher_tfm(tfm);
52static inline int crypto_akcipher_set_pub_key(
struct crypto_akcipher *tfm,
const void *key,
unsigned int keylen)
58static inline int crypto_akcipher_set_priv_key(
struct crypto_akcipher *tfm,
const void *key,
unsigned int keylen)
66 struct akcipher_request *req = kmalloc(
sizeof(*req) + crypto_akcipher_reqsize(tfm), gfp);
67 if (req) { akcipher_request_set_tfm(req, tfm); }
#define vsf_container_of(__ptr, __type, __member)
Definition __type.h:164
int crypto_akcipher_encrypt(struct akcipher_request *req)
Definition vsf_linux_core_crypto.c:569
void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm)
Definition vsf_linux_core_crypto.c:348
void(* crypto_completion_t)(void *req, int err)
Definition crypto.h:27
unsigned int gfp_t
Definition gfp.h:10
struct ieee80211_ext_chansw_ie data
Definition ieee80211.h:80
void * crypto_alloc_tfm(const char *alg_name, const struct crypto_type *frontend, u32 type, u32 mask)
Definition vsf_linux_core_crypto.c:327
uint32_t u32
Definition lvgl.h:43
struct crypto_alg base
Definition akcipher.h:23
int(* set_priv_key)(struct crypto_akcipher *tfm, const void *key, unsigned int keylen)
Definition akcipher.h:22
int(* set_pub_key)(struct crypto_akcipher *tfm, const void *key, unsigned int keylen)
Definition akcipher.h:21
struct crypto_async_request base
Definition akcipher.h:8
unsigned int src_len
Definition akcipher.h:11
struct scatterlist * src
Definition akcipher.h:9
struct scatterlist * dst
Definition akcipher.h:10
unsigned int dst_len
Definition akcipher.h:12
struct crypto_tfm base
Definition akcipher.h:17
unsigned int reqsize
Definition akcipher.h:16
psa_algorithm_t alg
Definition crypto.h:47
crypto_completion_t complete
Definition crypto.h:31
u32 flags
Definition crypto.h:34
void * data
Definition crypto.h:32
struct crypto_tfm * tfm
Definition crypto.h:33
struct crypto_alg * __crt_alg
Definition crypto.h:63
Definition scatterlist.h:4
vk_av_control_type_t type
Definition vsf_audio.h:170
const struct crypto_type crypto_akcipher_type
Definition vsf_linux_core_crypto.c:71