Home
last modified time | relevance | path

Searched refs:rlen (Results 1 – 2 of 2) sorted by relevance

/net-tools-3.6.0/tinydtls-0.8.2/
Ddtls.c362 unsigned int rlen = 0; in is_record() local
371 rlen = DTLS_RH_LENGTH + in is_record()
375 if (rlen > msglen) in is_record()
376 rlen = 0; in is_record()
379 return rlen; in is_record()
1184 uint8 *sendbuf, size_t *rlen) { in dtls_prepare_record() argument
1189 if (*rlen < DTLS_RH_LENGTH) { in dtls_prepare_record()
1190 dtls_alert("The sendbuf (%zu bytes) is too small\n", *rlen); in dtls_prepare_record()
1203 if (*rlen < res + DTLS_RH_LENGTH + data_len_array[i]) { in dtls_prepare_record()
1275 if (*rlen < res + DTLS_RH_LENGTH + data_len_array[i]) { in dtls_prepare_record()
[all …]
/net-tools-3.6.0/mbedtls-2.4.0/library/
Dssl_tls.c221 const unsigned char *random, size_t rlen, in ssl3_prf() argument
249 mbedtls_sha1_update( &sha1, random, rlen ); in ssl3_prf()
271 const unsigned char *random, size_t rlen, in tls1_prf() argument
285 if( sizeof( tmp ) < 20 + strlen( label ) + rlen ) in tls1_prf()
294 memcpy( tmp + 20 + nb, random, rlen ); in tls1_prf()
295 nb += rlen; in tls1_prf()
370 const unsigned char *random, size_t rlen, in tls_prf_generic() argument
388 if( sizeof( tmp ) < md_len + strlen( label ) + rlen ) in tls_prf_generic()
393 memcpy( tmp + md_len + nb, random, rlen ); in tls_prf_generic()
394 nb += rlen; in tls_prf_generic()
[all …]