Searched refs:hashctx (Results 1 – 6 of 6) sorted by relevance
| /optee_os/core/drivers/crypto/hisilicon/ |
| H A D | sec_hash.h | 25 struct hashctx { struct 53 struct hashctx *ctx; /* Hash Context */ argument 62 struct hashctx *ctx; /* Hash Context */ 103 TEE_Result hisi_sec_hash_ctx_init(struct hashctx *hash_ctx, uint32_t algo); 104 TEE_Result hisi_sec_digest_ctx_init(struct hashctx *hash_ctx, 106 TEE_Result hisi_sec_digest_do_update(struct hashctx *hashctx, 108 TEE_Result hisi_sec_digest_do_final(struct hashctx *hashctx, uint8_t *digest, 110 void hisi_sec_digest_ctx_free(struct hashctx *hash_ctx); 111 void hisi_sec_digest_copy_state(struct hashctx *out_hash_ctx, 112 struct hashctx *in_hash_ctx);
|
| H A D | sec_hmac.c | 22 struct hashctx *hash_ctx = NULL; in sec_hmac_initialize() 39 struct hashctx *hashctx = NULL; in sec_hmac_do_update() local 52 hashctx = hash->ctx; in sec_hmac_do_update() 54 return hisi_sec_digest_do_update(hashctx, data, len); in sec_hmac_do_update() 61 struct hashctx *hash_ctx = hash->ctx; in sec_hmac_do_final() 69 struct hashctx *hash_ctx = NULL; in sec_hmac_ctx_free() 92 struct hashctx *out_hash_ctx = NULL; in sec_hmac_copy_state() 93 struct hashctx *in_hash_ctx = NULL; in sec_hmac_copy_state() 121 struct hashctx *hash_ctx = NULL; in sec_hmac_ctx_allocate()
|
| H A D | sec_hash.c | 13 static enum hisi_drv_status sec_digest_set_hmac_key(struct hashctx *ctx, in sec_digest_set_hmac_key() 30 static void sec_digest_fill_long_bd2(struct hashctx *ctx, in sec_digest_fill_long_bd2() 105 struct hashctx *ctx = msg; in sec_digest_fill_sqe() 141 sec_digest_set_hmac_bd3_key(struct hashctx *ctx, struct hisi_sec_bd3_sqe *sqe) in sec_digest_set_hmac_bd3_key() 157 static void sec_digest_fill_long_bd3(struct hashctx *ctx, in sec_digest_fill_long_bd3() 194 struct hashctx *ctx = msg; in sec_digest_fill_bd3_sqe() 272 TEE_Result hisi_sec_digest_ctx_init(struct hashctx *hash_ctx, in hisi_sec_digest_ctx_init() 305 struct hashctx *hash_ctx = NULL; in sec_hash_initialize() 318 TEE_Result hisi_sec_digest_do_update(struct hashctx *hash_ctx, in hisi_sec_digest_do_update() 374 struct hashctx *hash_ctx = NULL; in sec_hash_do_update() [all …]
|
| /optee_os/core/drivers/crypto/caam/hash/ |
| H A D | local.h | 15 struct hashctx { struct 43 TEE_Result caam_hash_hmac_init(struct hashctx *ctx); argument 52 TEE_Result caam_hash_hmac_update(struct hashctx *ctx, const uint8_t *data, 62 TEE_Result caam_hash_hmac_final(struct hashctx *ctx, uint8_t *digest, 71 void caam_hash_hmac_copy_state(struct hashctx *dst, struct hashctx *src); 78 void caam_hash_hmac_free(struct hashctx *ctx); 92 TEE_Result caam_hash_hmac_allocate(struct hashctx *ctx);
|
| H A D | caam_hash.c | 90 struct hashctx *ctx; /* Hash Context */ 132 static void do_free_intern(struct hashctx *ctx) in do_free_intern() 248 struct hashctx *hash_ctx = NULL; in caam_hash_allocate() 293 TEE_Result caam_hash_hmac_allocate(struct hashctx *ctx) in caam_hash_hmac_allocate() 344 void caam_hash_hmac_free(struct hashctx *ctx) in caam_hash_hmac_free() 365 TEE_Result caam_hash_hmac_init(struct hashctx *ctx) in caam_hash_hmac_init() 393 static TEE_Result do_update_hash(struct hashctx *ctx, struct caamdmaobj *src) in do_update_hash() 467 TEE_Result caam_hash_hmac_update(struct hashctx *ctx, const uint8_t *data, in caam_hash_hmac_update() 571 TEE_Result caam_hash_hmac_final(struct hashctx *ctx, uint8_t *digest, in caam_hash_hmac_final() 672 void caam_hash_hmac_copy_state(struct hashctx *dst, struct hashctx *src) in caam_hash_hmac_copy_state()
|
| H A D | caam_hash_mac.c | 37 struct hashctx *ctx; /* HMAC context */ 129 struct hashctx *hmac_ctx = mac->ctx; in do_hmac_init() 292 struct hashctx *hmac_ctx = NULL; in caam_hmac_allocate()
|