Home
last modified time | relevance | path

Searched refs:msglen (Results 1 – 8 of 8) sorted by relevance

/net-tools-latest/tinydtls-0.8.2/
Ddtls.h391 int dtls_record_read(dtls_state_t *state, uint8 *msg, int msglen);
404 uint8 *msg, int msglen);
Ddtls.c261 dtls_get_cookie(uint8 *msg, size_t msglen, uint8 **cookie) { in dtls_get_cookie() argument
264 if (msglen < DTLS_HS_LENGTH + DTLS_CH_LENGTH + sizeof(uint8)) in dtls_get_cookie()
270 msglen -= DTLS_HS_LENGTH + DTLS_CH_LENGTH; in dtls_get_cookie()
273 SKIP_VAR_FIELD(msg, msglen, uint8); /* skip session id */ in dtls_get_cookie()
275 if (msglen < (*msg & 0xff) + sizeof(uint8)) in dtls_get_cookie()
288 uint8 *msg, size_t msglen, in dtls_create_cookie() argument
319 if (e + DTLS_HS_LENGTH > msglen) in dtls_create_cookie()
327 if (e + DTLS_HS_LENGTH > msglen) in dtls_create_cookie()
361 is_record(uint8 *msg, size_t msglen) { in is_record() argument
364 if (msglen >= DTLS_RH_LENGTH /* FIXME allow empty records? */ in is_record()
[all …]
/net-tools-latest/mbedtls-2.4.0/library/
Dmd4.c276 unsigned char msglen[8]; in mbedtls_md4_finish() local
282 PUT_UINT32_LE( low, msglen, 0 ); in mbedtls_md4_finish()
283 PUT_UINT32_LE( high, msglen, 4 ); in mbedtls_md4_finish()
289 mbedtls_md4_update( ctx, msglen, 8 ); in mbedtls_md4_finish()
Dmd5.c293 unsigned char msglen[8]; in mbedtls_md5_finish() local
299 PUT_UINT32_LE( low, msglen, 0 ); in mbedtls_md5_finish()
300 PUT_UINT32_LE( high, msglen, 4 ); in mbedtls_md5_finish()
306 mbedtls_md5_update( ctx, msglen, 8 ); in mbedtls_md5_finish()
Dsha512.c328 unsigned char msglen[16]; in mbedtls_sha512_finish() local
334 PUT_UINT64_BE( high, msglen, 0 ); in mbedtls_sha512_finish()
335 PUT_UINT64_BE( low, msglen, 8 ); in mbedtls_sha512_finish()
341 mbedtls_sha512_update( ctx, msglen, 16 ); in mbedtls_sha512_finish()
Dsha256.c294 unsigned char msglen[8]; in mbedtls_sha256_finish() local
300 PUT_UINT32_BE( high, msglen, 0 ); in mbedtls_sha256_finish()
301 PUT_UINT32_BE( low, msglen, 4 ); in mbedtls_sha256_finish()
307 mbedtls_sha256_update( ctx, msglen, 8 ); in mbedtls_sha256_finish()
Dripemd160.c351 unsigned char msglen[8]; in mbedtls_ripemd160_finish() local
357 PUT_UINT32_LE( low, msglen, 0 ); in mbedtls_ripemd160_finish()
358 PUT_UINT32_LE( high, msglen, 4 ); in mbedtls_ripemd160_finish()
364 mbedtls_ripemd160_update( ctx, msglen, 8 ); in mbedtls_ripemd160_finish()
Dsha1.c325 unsigned char msglen[8]; in mbedtls_sha1_finish() local
331 PUT_UINT32_BE( high, msglen, 0 ); in mbedtls_sha1_finish()
332 PUT_UINT32_BE( low, msglen, 4 ); in mbedtls_sha1_finish()
338 mbedtls_sha1_update( ctx, msglen, 8 ); in mbedtls_sha1_finish()