Searched refs:outlen (Results 1 – 9 of 9) sorted by relevance
/mcuboot-3.7.0/ext/tinycrypt/lib/source/ |
D | cbc_mode.c | 37 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()
|
D | hmac_prng.c | 177 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()
|
D | ctr_mode.c | 37 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()
|
D | ctr_prng.c | 209 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()
|
D | ccm_mode.c | 93 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.7.0/ext/tinycrypt/lib/include/tinycrypt/ |
D | cbc_mode.h | 110 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,
|
D | ctr_mode.h | 102 int tc_ctr_mode(uint8_t *out, unsigned int outlen, const uint8_t *in,
|
D | hmac_prng.h | 158 int tc_hmac_prng_generate(uint8_t *out, unsigned int outlen, TCHmacPrng_t prng);
|
D | ctr_prng.h | 152 unsigned int outlen);
|