Searched refs:ctx (Results 1 – 8 of 8) sorted by relevance
/optee_client/tee-supplicant/src/ |
A D | hmac_sha2.c | 75 sha256_init(&ctx->ctx_inside); in hmac_sha256_init() 76 sha256_update(&ctx->ctx_inside, ctx->block_ipad, SHA256_BLOCK_SIZE); in hmac_sha256_init() 78 sha256_init(&ctx->ctx_outside); in hmac_sha256_init() 79 sha256_update(&ctx->ctx_outside, ctx->block_opad, in hmac_sha256_init() 83 memcpy(&ctx->ctx_inside_reinit, &ctx->ctx_inside, in hmac_sha256_init() 85 memcpy(&ctx->ctx_outside_reinit, &ctx->ctx_outside, in hmac_sha256_init() 91 memcpy(&ctx->ctx_inside, &ctx->ctx_inside_reinit, in hmac_sha256_reinit() 93 memcpy(&ctx->ctx_outside, &ctx->ctx_outside_reinit, in hmac_sha256_reinit() 119 hmac_sha256_ctx ctx; in hmac_sha256() local 121 memset(&ctx, 0, sizeof(ctx)); in hmac_sha256() [all …]
|
A D | sha2.c | 170 sha256_ctx ctx; in sha256() local 172 memset(&ctx, 0, sizeof(ctx)); in sha256() 174 sha256_init(&ctx); in sha256() 187 ctx->len = 0; in sha256_init() 188 ctx->tot_len = 0; in sha256_init() 203 memcpy(&ctx->block[ctx->len], message, rem_len); in sha256_update() 215 sha256_transf(ctx, ctx->block, 1); in sha256_update() 237 len_b = (ctx->tot_len + ctx->len) << 3; in sha256_final() 240 memset(ctx->block + ctx->len, 0, pm_len - ctx->len); in sha256_final() 241 ctx->block[ctx->len] = 0x80; in sha256_final() [all …]
|
A D | hmac_sha2.h | 58 void hmac_sha256_init(hmac_sha256_ctx *ctx, const unsigned char *key, 60 void hmac_sha256_reinit(hmac_sha256_ctx *ctx); 61 void hmac_sha256_update(hmac_sha256_ctx *ctx, const unsigned char *message, 63 void hmac_sha256_final(hmac_sha256_ctx *ctx, unsigned char *mac,
|
A D | sha2.h | 63 void sha256_init(sha256_ctx * ctx); 64 void sha256_update(sha256_ctx *ctx, const unsigned char *message, 66 void sha256_final(sha256_ctx *ctx, unsigned char *digest);
|
A D | rpmb.c | 308 hmac_sha256_update(ctx, CUC(frm->data), 256); in hmac_update_frm() 309 hmac_sha256_update(ctx, CUC(frm->nonce), 16); in hmac_update_frm() 311 hmac_sha256_update(ctx, CUC(&frm->address), 2); in hmac_update_frm() 322 hmac_sha256_ctx ctx; in is_hmac_valid() local 324 memset(&ctx, 0, sizeof(ctx)); in is_hmac_valid() 333 hmac_update_frm(&ctx, frm); in is_hmac_valid() 335 hmac_sha256_final(&ctx, mac, 32); in is_hmac_valid() 353 hmac_sha256_ctx ctx; in compute_hmac() local 355 memset(&ctx, 0, sizeof(ctx)); in compute_hmac() 364 hmac_update_frm(&ctx, frm); in compute_hmac() [all …]
|
/optee_client/libseteec/src/ |
A D | se.c | 42 static bool open_session(struct ta_context *ctx) in open_session() argument 46 if (pthread_mutex_lock(&ctx->lock)) in open_session() 49 if (!ctx->open) { in open_session() 50 res = TEEC_InitializeContext(NULL, &ctx->context); in open_session() 52 res = TEEC_OpenSession(&ctx->context, &ctx->session, in open_session() 53 &ctx->uuid, TEEC_LOGIN_PUBLIC, in open_session() 56 ctx->open = true; in open_session() 60 return !pthread_mutex_unlock(&ctx->lock) && !res; in open_session()
|
/optee_client/libteec/src/ |
A D | tee_client_api.c | 166 if (!ctx) in TEEC_InitializeContext() 175 ctx->fd = fd; in TEEC_InitializeContext() 187 if (ctx) in TEEC_FinalizeContext() 188 close(ctx->fd); in TEEC_FinalizeContext() 221 if (ctx->memref_null) { in teec_pre_process_tmpref() 618 if (!ctx || !session) { in TEEC_OpenSession() 651 session->ctx = ctx; in TEEC_OpenSession() 782 if (!ctx || !shm) in TEEC_RegisterSharedMemory() 794 if (ctx->reg_mem) { in TEEC_RegisterSharedMemory() 884 if (!ctx || !shm) in TEEC_AllocateSharedMemory() [all …]
|
/optee_client/public/ |
A D | tee_client_api.h | 386 TEEC_Context *ctx; member
|
Completed in 14 milliseconds