Home
last modified time | relevance | path

Searched refs:plen (Results 1 – 5 of 5) sorted by relevance

/mcuboot-latest/ext/tinycrypt/lib/source/
Dccm_mode.c140 unsigned int plen, TCCcmMode_t c) in tc_ccm_generation_encryption() argument
146 ((plen > 0) && (payload == (uint8_t *) 0)) || in tc_ccm_generation_encryption()
149 (plen >= TC_CCM_PAYLOAD_MAX_BYTES) || /* payload size unsupported */ in tc_ccm_generation_encryption()
150 (olen < (plen + c->mlen))) { /* invalid output buffer size */ in tc_ccm_generation_encryption()
165 b[14] = (uint8_t)(plen >> 8); in tc_ccm_generation_encryption()
166 b[15] = (uint8_t)(plen); in tc_ccm_generation_encryption()
173 if (plen > 0) { in tc_ccm_generation_encryption()
174 ccm_cbc_mac(tag, payload, plen, 0, c->sched); in tc_ccm_generation_encryption()
184 ccm_ctr_mode(out, plen, payload, plen, b, c->sched); in tc_ccm_generation_encryption()
190 out += plen; in tc_ccm_generation_encryption()
[all …]
Dhmac_prng.c114 unsigned int plen) in tc_hmac_prng_init() argument
120 plen > MAX_PLEN) { in tc_hmac_prng_init()
130 update(prng, personalization, plen); in tc_hmac_prng_init()
/mcuboot-latest/ext/tinycrypt/lib/include/tinycrypt/
Dccm_mode.h159 unsigned int plen, TCCcmMode_t c);
204 unsigned int alen, const uint8_t *payload, unsigned int plen,
Dhmac_prng.h117 unsigned int plen);
/mcuboot-latest/ext/tinycrypt/tests/
Dtest_ctr_prng.c262 unsigned int plen = 0U; in executePRNG_TestVector() local
277 plen = strlen(vector.personalizationString) / 2U; in executePRNG_TestVector()
290 (void)tc_ctr_prng_init(&ctx, entropy, entropylen, personalization, plen); in executePRNG_TestVector()