Searched refs:tag (Results 1 – 5 of 5) sorted by relevance
| /tinycrypt-latest/lib/source/ |
| D | hmac.c | 124 int tc_hmac_final(uint8_t *tag, unsigned int taglen, TCHmacState_t ctx) in tc_hmac_final() argument 128 if (tag == (uint8_t *) 0 || in tc_hmac_final() 134 (void) tc_sha256_final(tag, &ctx->hash_state); in tc_hmac_final() 140 (void)tc_sha256_update(&ctx->hash_state, tag, TC_SHA256_DIGEST_SIZE); in tc_hmac_final() 141 (void)tc_sha256_final(tag, &ctx->hash_state); in tc_hmac_final()
|
| D | ccm_mode.c | 155 uint8_t tag[Nb * Nk]; in tc_ccm_generation_encryption() local 169 (void) tc_aes_encrypt(tag, b, c->sched); in tc_ccm_generation_encryption() 171 ccm_cbc_mac(tag, associated_data, alen, 1, c->sched); in tc_ccm_generation_encryption() 174 ccm_cbc_mac(tag, payload, plen, 0, c->sched); in tc_ccm_generation_encryption() 192 *out++ = tag[i] ^ b[i]; in tc_ccm_generation_encryption() 216 uint8_t tag[Nb * Nk]; in tc_ccm_decryption_verification() local 236 tag[i] = *(payload + plen - c->mlen + i) ^ b[i]; in tc_ccm_decryption_verification() 259 if (_compare(b, tag, c->mlen) == 0) { in tc_ccm_decryption_verification()
|
| D | cmac_mode.c | 222 int tc_cmac_final(uint8_t *tag, TCCmacState_t s) in tc_cmac_final() argument 228 if (tag == (uint8_t *) 0 || in tc_cmac_final() 248 tc_aes_encrypt(tag, s->iv, s->sched); in tc_cmac_final()
|
| /tinycrypt-latest/lib/include/tinycrypt/ |
| D | hmac.h | 133 int tc_hmac_final(uint8_t *tag, unsigned int taglen, TCHmacState_t ctx);
|
| D | cmac_mode.h | 188 int tc_cmac_final(uint8_t *tag, TCCmacState_t s);
|