Searched refs:msglen (Results 1 – 8 of 8) sorted by relevance
/net-tools-latest/tinydtls-0.8.2/ |
D | dtls.h | 391 int dtls_record_read(dtls_state_t *state, uint8 *msg, int msglen); 404 uint8 *msg, int msglen);
|
D | dtls.c | 261 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/ |
D | md4.c | 276 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()
|
D | md5.c | 293 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()
|
D | sha512.c | 328 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()
|
D | sha256.c | 294 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()
|
D | ripemd160.c | 351 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()
|
D | sha1.c | 325 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()
|