Home
last modified time | relevance | path

Searched refs:clen (Results 1 – 6 of 6) sorted by relevance

/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Dsha256-tlsprf.c32 size_t clen; in tls_prf_sha256() local
63 clen = outlen - pos; in tls_prf_sha256()
64 if (clen > SHA256_MAC_LEN) in tls_prf_sha256()
65 clen = SHA256_MAC_LEN; in tls_prf_sha256()
66 os_memcpy(out + pos, P, clen); in tls_prf_sha256()
67 pos += clen; in tls_prf_sha256()
Dsha384-tlsprf.c32 size_t clen; in tls_prf_sha384() local
63 clen = outlen - pos; in tls_prf_sha384()
64 if (clen > SHA384_MAC_LEN) in tls_prf_sha384()
65 clen = SHA384_MAC_LEN; in tls_prf_sha384()
66 os_memcpy(out + pos, P, clen); in tls_prf_sha384()
67 pos += clen; in tls_prf_sha384()
Dsha256-kdf.c40 size_t pos, clen; in hmac_sha256_kdf() local
61 clen = outlen - pos; in hmac_sha256_kdf()
62 if (clen > SHA256_MAC_LEN) in hmac_sha256_kdf()
63 clen = SHA256_MAC_LEN; in hmac_sha256_kdf()
64 os_memcpy(out + pos, T, clen); in hmac_sha256_kdf()
65 pos += clen; in hmac_sha256_kdf()
/hal_espressif-latest/components/wpa_supplicant/src/tls/
Dtlsv1_record.c156 size_t clen; in tlsv1_record_send() local
218 clen = buf + buf_size - pos; in tlsv1_record_send()
219 if (clen < rl->hash_size) { in tlsv1_record_send()
226 if (crypto_hash_finish(hmac, pos, &clen) < 0) { in tlsv1_record_send()
232 pos, clen); in tlsv1_record_send()
233 pos += clen; in tlsv1_record_send()
Dtlsv1_client_write.c472 size_t clen; in tlsv1_key_x_rsa() local
495 clen = end - *pos; in tlsv1_key_x_rsa()
499 *pos, &clen); in tlsv1_key_x_rsa()
507 WPA_PUT_BE16(*pos - 2, clen); in tlsv1_key_x_rsa()
509 *pos, clen); in tlsv1_key_x_rsa()
510 *pos += clen; in tlsv1_key_x_rsa()
578 size_t rlen, hlen, clen; in tls_write_client_certificate_verify() local
713 clen = end - pos; in tls_write_client_certificate_verify()
716 pos, &clen) < 0) { in tls_write_client_certificate_verify()
722 WPA_PUT_BE16(signed_start, clen); in tls_write_client_certificate_verify()
[all …]
Dtlsv1_server_write.c566 size_t clen; in tls_write_server_key_exchange() local
655 clen = end - pos; in tls_write_server_key_exchange()
658 pos, &clen) < 0) { in tls_write_server_key_exchange()
664 WPA_PUT_BE16(signed_start, clen); in tls_write_server_key_exchange()
668 pos[clen - 1] ^= 0x80; in tls_write_server_key_exchange()
672 pos += clen; in tls_write_server_key_exchange()