Searched refs:rt_hwcrypto_ctx (Results 1 – 14 of 14) sorted by relevance
| /components/drivers/hwcrypto/ |
| A D | hw_gcm.h | 48 struct rt_hwcrypto_ctx *rt_hwcrypto_gcm_create(struct rt_hwcrypto_device *device, 56 void rt_hwcrypto_gcm_destroy(struct rt_hwcrypto_ctx *ctx); 93 rt_err_t rt_hwcrypto_gcm_crypt(struct rt_hwcrypto_ctx *ctx, hwcrypto_mode mode, 105 rt_err_t rt_hwcrypto_gcm_setkey(struct rt_hwcrypto_ctx *ctx, 117 rt_err_t rt_hwcrypto_gcm_getkey(struct rt_hwcrypto_ctx *ctx, 129 rt_err_t rt_hwcrypto_gcm_setiv(struct rt_hwcrypto_ctx *ctx, 141 rt_err_t rt_hwcrypto_gcm_getiv(struct rt_hwcrypto_ctx *ctx, 150 void rt_hwcrypto_gcm_set_ivoff(struct rt_hwcrypto_ctx *ctx, rt_int32_t iv_off); 168 rt_err_t rt_hwcrypto_gcm_cpy(struct rt_hwcrypto_ctx *des, 169 const struct rt_hwcrypto_ctx *src); [all …]
|
| A D | hw_symmetric.h | 56 …struct rt_hwcrypto_ctx parent; /**< Inheritance from hardware crypto context … 74 struct rt_hwcrypto_ctx *rt_hwcrypto_symmetric_create(struct rt_hwcrypto_device *device, 82 void rt_hwcrypto_symmetric_destroy(struct rt_hwcrypto_ctx *ctx); 95 rt_err_t rt_hwcrypto_symmetric_crypt(struct rt_hwcrypto_ctx *ctx, hwcrypto_mode mode, 118 int rt_hwcrypto_symmetric_getkey(struct rt_hwcrypto_ctx *ctx, rt_uint8_t *key, rt_uint32_t bitlen); 140 int rt_hwcrypto_symmetric_getiv(struct rt_hwcrypto_ctx *ctx, rt_uint8_t *iv, rt_size_t len); 148 void rt_hwcrypto_symmetric_set_ivoff(struct rt_hwcrypto_ctx *ctx, rt_int32_t iv_off); 156 void rt_hwcrypto_symmetric_get_ivoff(struct rt_hwcrypto_ctx *ctx, rt_int32_t *iv_off); 166 rt_err_t rt_hwcrypto_symmetric_cpy(struct rt_hwcrypto_ctx *des, const struct rt_hwcrypto_ctx *src); 173 void rt_hwcrypto_symmetric_reset(struct rt_hwcrypto_ctx *ctx); [all …]
|
| A D | hw_gcm.c | 23 struct rt_hwcrypto_ctx *rt_hwcrypto_gcm_create(struct rt_hwcrypto_device *device, in rt_hwcrypto_gcm_create() 26 struct rt_hwcrypto_ctx *ctx; in rt_hwcrypto_gcm_create() 41 void rt_hwcrypto_gcm_destroy(struct rt_hwcrypto_ctx *ctx) in rt_hwcrypto_gcm_destroy() 99 rt_err_t rt_hwcrypto_gcm_crypt(struct rt_hwcrypto_ctx *ctx, hwcrypto_mode mode, in rt_hwcrypto_gcm_crypt() 114 rt_err_t rt_hwcrypto_gcm_setkey(struct rt_hwcrypto_ctx *ctx, in rt_hwcrypto_gcm_setkey() 129 rt_err_t rt_hwcrypto_gcm_getkey(struct rt_hwcrypto_ctx *ctx, in rt_hwcrypto_gcm_getkey() 144 rt_err_t rt_hwcrypto_gcm_setiv(struct rt_hwcrypto_ctx *ctx, in rt_hwcrypto_gcm_setiv() 159 rt_err_t rt_hwcrypto_gcm_getiv(struct rt_hwcrypto_ctx *ctx, in rt_hwcrypto_gcm_getiv() 195 rt_err_t rt_hwcrypto_gcm_cpy(struct rt_hwcrypto_ctx *des, in rt_hwcrypto_gcm_cpy() 196 const struct rt_hwcrypto_ctx *src) in rt_hwcrypto_gcm_cpy() [all …]
|
| A D | hwcrypto.h | 77 struct rt_hwcrypto_ctx; 83 rt_err_t (*copy)(struct rt_hwcrypto_ctx *des, 84 const struct rt_hwcrypto_ctx *src); /**< Cpoy hardware context */ 85 void (*reset)(struct rt_hwcrypto_ctx *ctx); /**< Reset hardware context */ 96 struct rt_hwcrypto_ctx struct 111 rt_err_t rt_hwcrypto_set_type(struct rt_hwcrypto_ctx *ctx, hwcrypto_type type); argument 118 void rt_hwcrypto_ctx_reset(struct rt_hwcrypto_ctx *ctx); 130 rt_err_t rt_hwcrypto_ctx_init(struct rt_hwcrypto_ctx *ctx, 142 struct rt_hwcrypto_ctx *rt_hwcrypto_ctx_create(struct rt_hwcrypto_device *device, 150 void rt_hwcrypto_ctx_destroy(struct rt_hwcrypto_ctx *ctx); [all …]
|
| A D | hw_hash.h | 35 struct rt_hwcrypto_ctx parent; /**< Inheritance from hardware crypto context */ 47 struct rt_hwcrypto_ctx *rt_hwcrypto_hash_create(struct rt_hwcrypto_device *device, 55 void rt_hwcrypto_hash_destroy(struct rt_hwcrypto_ctx *ctx); 66 rt_err_t rt_hwcrypto_hash_finish(struct rt_hwcrypto_ctx *ctx, rt_uint8_t *output, rt_size_t length); 77 rt_err_t rt_hwcrypto_hash_update(struct rt_hwcrypto_ctx *ctx, const rt_uint8_t *input, rt_size_t le… 87 rt_err_t rt_hwcrypto_hash_cpy(struct rt_hwcrypto_ctx *des, const struct rt_hwcrypto_ctx *src); 94 void rt_hwcrypto_hash_reset(struct rt_hwcrypto_ctx *ctx); 104 rt_err_t rt_hwcrypto_hash_set_type(struct rt_hwcrypto_ctx *ctx, hwcrypto_type type);
|
| A D | hw_hash.c | 23 struct rt_hwcrypto_ctx *rt_hwcrypto_hash_create(struct rt_hwcrypto_device *device, hwcrypto_type ty… in rt_hwcrypto_hash_create() 25 struct rt_hwcrypto_ctx *ctx; in rt_hwcrypto_hash_create() 36 void rt_hwcrypto_hash_destroy(struct rt_hwcrypto_ctx *ctx) in rt_hwcrypto_hash_destroy() 50 rt_err_t rt_hwcrypto_hash_finish(struct rt_hwcrypto_ctx *ctx, rt_uint8_t *output, rt_size_t length) in rt_hwcrypto_hash_finish() 68 rt_err_t rt_hwcrypto_hash_update(struct rt_hwcrypto_ctx *ctx, const rt_uint8_t *input, rt_size_t le… in rt_hwcrypto_hash_update() 85 rt_err_t rt_hwcrypto_hash_cpy(struct rt_hwcrypto_ctx *des, const struct rt_hwcrypto_ctx *src) in rt_hwcrypto_hash_cpy() 95 void rt_hwcrypto_hash_reset(struct rt_hwcrypto_ctx *ctx) in rt_hwcrypto_hash_reset() 108 rt_err_t rt_hwcrypto_hash_set_type(struct rt_hwcrypto_ctx *ctx, hwcrypto_type type) in rt_hwcrypto_hash_set_type()
|
| A D | hw_symmetric.c | 23 struct rt_hwcrypto_ctx *rt_hwcrypto_symmetric_create(struct rt_hwcrypto_device *device, hwcrypto_ty… in rt_hwcrypto_symmetric_create() 25 struct rt_hwcrypto_ctx *ctx; in rt_hwcrypto_symmetric_create() 36 void rt_hwcrypto_symmetric_destroy(struct rt_hwcrypto_ctx *ctx) in rt_hwcrypto_symmetric_destroy() 122 int rt_hwcrypto_symmetric_getkey(struct rt_hwcrypto_ctx *ctx, rt_uint8_t *key, rt_uint32_t bitlen) in rt_hwcrypto_symmetric_getkey() 144 rt_err_t rt_hwcrypto_symmetric_setiv(struct rt_hwcrypto_ctx *ctx, const rt_uint8_t *iv, rt_size_t l… in rt_hwcrypto_symmetric_setiv() 170 int rt_hwcrypto_symmetric_getiv(struct rt_hwcrypto_ctx *ctx, rt_uint8_t *iv, rt_size_t len) in rt_hwcrypto_symmetric_getiv() 189 void rt_hwcrypto_symmetric_set_ivoff(struct rt_hwcrypto_ctx *ctx, rt_int32_t iv_off) in rt_hwcrypto_symmetric_set_ivoff() 205 void rt_hwcrypto_symmetric_get_ivoff(struct rt_hwcrypto_ctx *ctx, rt_int32_t *iv_off) in rt_hwcrypto_symmetric_get_ivoff() 221 rt_err_t rt_hwcrypto_symmetric_cpy(struct rt_hwcrypto_ctx *des, const struct rt_hwcrypto_ctx *src) in rt_hwcrypto_symmetric_cpy() 247 void rt_hwcrypto_symmetric_reset(struct rt_hwcrypto_ctx *ctx) in rt_hwcrypto_symmetric_reset() [all …]
|
| A D | hw_rng.c | 16 static struct rt_hwcrypto_ctx *ctx_default; 25 struct rt_hwcrypto_ctx *rt_hwcrypto_rng_create(struct rt_hwcrypto_device *device) in rt_hwcrypto_rng_create() 27 struct rt_hwcrypto_ctx *ctx; in rt_hwcrypto_rng_create() 38 void rt_hwcrypto_rng_destroy(struct rt_hwcrypto_ctx *ctx) in rt_hwcrypto_rng_destroy() 55 struct rt_hwcrypto_ctx *tmp_ctx; in rt_hwcrypto_rng_default() 87 rt_uint32_t rt_hwcrypto_rng_update_ctx(struct rt_hwcrypto_ctx *ctx) in rt_hwcrypto_rng_update_ctx()
|
| A D | hwcrypto.c | 23 rt_err_t rt_hwcrypto_set_type(struct rt_hwcrypto_ctx *ctx, hwcrypto_type type) in rt_hwcrypto_set_type() 53 void rt_hwcrypto_ctx_reset(struct rt_hwcrypto_ctx *ctx) in rt_hwcrypto_ctx_reset() 71 rt_err_t rt_hwcrypto_ctx_init(struct rt_hwcrypto_ctx *ctx, struct rt_hwcrypto_device *device, hwcry… in rt_hwcrypto_ctx_init() 96 struct rt_hwcrypto_ctx *rt_hwcrypto_ctx_create(struct rt_hwcrypto_device *device, hwcrypto_type typ… in rt_hwcrypto_ctx_create() 98 struct rt_hwcrypto_ctx *ctx; in rt_hwcrypto_ctx_create() 102 if (device == RT_NULL || obj_size < sizeof(struct rt_hwcrypto_ctx)) in rt_hwcrypto_ctx_create() 127 void rt_hwcrypto_ctx_destroy(struct rt_hwcrypto_ctx *ctx) in rt_hwcrypto_ctx_destroy() 150 rt_err_t rt_hwcrypto_ctx_cpy(struct rt_hwcrypto_ctx *des, const struct rt_hwcrypto_ctx *src) in rt_hwcrypto_ctx_cpy()
|
| A D | hw_rng.h | 32 struct rt_hwcrypto_ctx parent; /**< Inheritance from hardware crypto context */ 43 struct rt_hwcrypto_ctx *rt_hwcrypto_rng_create(struct rt_hwcrypto_device *device); 50 void rt_hwcrypto_rng_destroy(struct rt_hwcrypto_ctx *ctx); 66 rt_uint32_t rt_hwcrypto_rng_update_ctx(struct rt_hwcrypto_ctx *ctx);
|
| A D | hw_crc.h | 100 struct rt_hwcrypto_ctx parent; /**< Inherited from the standard device */ 113 struct rt_hwcrypto_ctx *rt_hwcrypto_crc_create(struct rt_hwcrypto_device *device, 121 void rt_hwcrypto_crc_destroy(struct rt_hwcrypto_ctx *ctx); 132 rt_uint32_t rt_hwcrypto_crc_update(struct rt_hwcrypto_ctx *ctx, 141 void rt_hwcrypto_crc_cfg(struct rt_hwcrypto_ctx *ctx,
|
| A D | hw_crc.c | 23 struct rt_hwcrypto_ctx *rt_hwcrypto_crc_create(struct rt_hwcrypto_device *device, in rt_hwcrypto_crc_create() 78 void rt_hwcrypto_crc_destroy(struct rt_hwcrypto_ctx *ctx) in rt_hwcrypto_crc_destroy() 92 rt_uint32_t rt_hwcrypto_crc_update(struct rt_hwcrypto_ctx *ctx, in rt_hwcrypto_crc_update() 110 void rt_hwcrypto_crc_cfg(struct rt_hwcrypto_ctx *ctx, in rt_hwcrypto_crc_cfg()
|
| A D | hw_bignum.h | 61 struct rt_hwcrypto_ctx parent; /**< Inheritance from hardware crypto context */
|
| A D | hw_bignum.c | 15 static struct rt_hwcrypto_ctx *bignum_default;
|
Completed in 15 milliseconds