Home
last modified time | relevance | path

Searched refs:outlen (Results 1 – 9 of 9) sorted by relevance

/mcuboot-3.4.0/ext/tinycrypt/lib/source/
Dcbc_mode.c37 int tc_cbc_mode_encrypt(uint8_t *out, unsigned int outlen, const uint8_t *in, in tc_cbc_mode_encrypt() argument
50 outlen == 0 || in tc_cbc_mode_encrypt()
52 (outlen % TC_AES_BLOCK_SIZE) != 0 || in tc_cbc_mode_encrypt()
53 outlen != inlen + TC_AES_BLOCK_SIZE) { in tc_cbc_mode_encrypt()
77 int tc_cbc_mode_decrypt(uint8_t *out, unsigned int outlen, const uint8_t *in, in tc_cbc_mode_decrypt() argument
91 outlen == 0 || in tc_cbc_mode_decrypt()
93 (outlen % TC_AES_BLOCK_SIZE) != 0 || in tc_cbc_mode_decrypt()
94 outlen != inlen - TC_AES_BLOCK_SIZE) { in tc_cbc_mode_decrypt()
Dhmac_prng.c177 int tc_hmac_prng_generate(uint8_t *out, unsigned int outlen, TCHmacPrng_t prng) in tc_hmac_prng_generate() argument
184 outlen == 0 || in tc_hmac_prng_generate()
185 outlen > MAX_OUT) { in tc_hmac_prng_generate()
193 while (outlen != 0) { in tc_hmac_prng_generate()
199 bufferlen = (TC_SHA256_DIGEST_SIZE > outlen) ? in tc_hmac_prng_generate()
200 outlen : TC_SHA256_DIGEST_SIZE; in tc_hmac_prng_generate()
204 outlen = (outlen > TC_SHA256_DIGEST_SIZE) ? in tc_hmac_prng_generate()
205 (outlen - TC_SHA256_DIGEST_SIZE) : 0; in tc_hmac_prng_generate()
Dctr_mode.c37 int tc_ctr_mode(uint8_t *out, unsigned int outlen, const uint8_t *in, in tc_ctr_mode() argument
55 outlen == 0 || in tc_ctr_mode()
56 outlen != inlen) { in tc_ctr_mode()
Dctr_prng.c209 unsigned int outlen) in tc_ctr_prng_generate() argument
219 if ((0 != ctx) && (0 != out) && (outlen < MAX_BYTES_PER_REQ)) { in tc_ctr_prng_generate()
239 while (len < outlen) { in tc_ctr_prng_generate()
240 unsigned int blocklen = outlen - len; in tc_ctr_prng_generate()
Dccm_mode.c93 static int ccm_ctr_mode(uint8_t *out, unsigned int outlen, const uint8_t *in, in ccm_ctr_mode() argument
108 outlen == 0 || in ccm_ctr_mode()
109 outlen != inlen) { in ccm_ctr_mode()
/mcuboot-3.4.0/ext/tinycrypt/lib/include/tinycrypt/
Dcbc_mode.h110 int tc_cbc_mode_encrypt(uint8_t *out, unsigned int outlen, const uint8_t *in,
143 int tc_cbc_mode_decrypt(uint8_t *out, unsigned int outlen, const uint8_t *in,
Dctr_mode.h102 int tc_ctr_mode(uint8_t *out, unsigned int outlen, const uint8_t *in,
Dhmac_prng.h158 int tc_hmac_prng_generate(uint8_t *out, unsigned int outlen, TCHmacPrng_t prng);
Dctr_prng.h152 unsigned int outlen);