Searched refs:ctx (Results 1 – 4 of 4) sorted by relevance
/lib/source/ |
A D | hmac.c | 56 if (ctx == (TCHmacState_t) 0 || in tc_hmac_set_key() 81 rekey(ctx->key, key, key_size); in tc_hmac_set_key() 86 &ctx->hash_state); in tc_hmac_set_key() 87 rekey(ctx->key, in tc_hmac_set_key() 95 int tc_hmac_init(TCHmacState_t ctx) in tc_hmac_init() argument 99 if (ctx == (TCHmacState_t) 0) { in tc_hmac_init() 104 (void) tc_sha256_update(&ctx->hash_state, ctx->key, TC_SHA256_BLOCK_SIZE); in tc_hmac_init() 109 int tc_hmac_update(TCHmacState_t ctx, in tc_hmac_update() argument 115 if (ctx == (TCHmacState_t) 0) { in tc_hmac_update() 130 ctx == (TCHmacState_t) 0) { in tc_hmac_final() [all …]
|
A D | ctr_prng.c | 76 if (0 != ctx) { in tc_ctr_prng_update() 87 arrInc(ctx->V, sizeof ctx->V); in tc_ctr_prng_update() 93 (void)tc_aes_encrypt(output_block, ctx->V, &ctx->key); in tc_ctr_prng_update() 151 memset(ctx->V, 0x00, sizeof ctx->V); in tc_ctr_prng_init() 157 ctx->reseedCount = 1U; in tc_ctr_prng_init() 244 arrInc(ctx->V, sizeof ctx->V); in tc_ctr_prng_generate() 247 (void)tc_aes_encrypt(output_block, ctx->V, &ctx->key); in tc_ctr_prng_generate() 262 ctx->reseedCount++; in tc_ctr_prng_generate() 274 if (0 != ctx) { in tc_ctr_prng_uninstantiate() 275 memset(ctx->key.words, 0x00, sizeof ctx->key.words); in tc_ctr_prng_uninstantiate() [all …]
|
/lib/include/tinycrypt/ |
A D | hmac.h | 92 int tc_hmac_set_key(TCHmacState_t ctx, const uint8_t *key, 102 int tc_hmac_init(TCHmacState_t ctx); 114 int tc_hmac_update(TCHmacState_t ctx, const void *data, 133 int tc_hmac_final(uint8_t *tag, unsigned int taglen, TCHmacState_t ctx);
|
A D | ctr_prng.h | 101 int tc_ctr_prng_init(TCCtrPrng_t * const ctx, 126 int tc_ctr_prng_reseed(TCCtrPrng_t * const ctx, 148 int tc_ctr_prng_generate(TCCtrPrng_t * const ctx, 160 void tc_ctr_prng_uninstantiate(TCCtrPrng_t * const ctx);
|
Completed in 12 milliseconds