Home
last modified time | relevance | path

Searched refs:label_len (Results 1 – 25 of 25) sorted by relevance

/third_party/mindspore/scripts/
Dsetdotlabelwidth42 label_len = min(len(text), MAX_LABEL_LENGTH)
43 chars_per_row = calc_num_chars_per_row(label_len, COLS_TO_ROWS_RATIO)
44 if label_len <= MIN_CHARS_PER_ROW:
48 while beg_idx < label_len:
50 if end_idx >= label_len:
51 texts.append(text[beg_idx:label_len])
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Deap_eke_common.c431 size_t label_len; in eap_eke_derive_ke_ki() local
452 label_len = os_strlen(label); in eap_eke_derive_ke_ki()
453 data_len = label_len + id_s_len + id_p_len; in eap_eke_derive_ke_ki()
457 os_memcpy(data, label, label_len); in eap_eke_derive_ke_ki()
458 os_memcpy(data + label_len, id_s, id_s_len); in eap_eke_derive_ke_ki()
459 os_memcpy(data + label_len + id_s_len, id_p, id_p_len); in eap_eke_derive_ke_ki()
484 size_t label_len; in eap_eke_derive_ka() local
493 label_len = os_strlen(label); in eap_eke_derive_ka()
494 data_len = label_len + id_s_len + id_p_len + 2 * sess->nonce_len; in eap_eke_derive_ka()
499 os_memcpy(pos, label, label_len); in eap_eke_derive_ka()
[all …]
Deap_peap_common.c22 size_t label_len = os_strlen(label); in peap_prfplus() local
30 len[1] = label_len; in peap_prfplus()
Deap_sake_common.c217 size_t label_len = os_strlen(label) + 1; in eap_sake_kdf() local
222 len[0] = label_len; in eap_sake_kdf()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Deap_eke_common.c431 size_t label_len; in eap_eke_derive_ke_ki() local
452 label_len = os_strlen(label); in eap_eke_derive_ke_ki()
453 data_len = label_len + id_s_len + id_p_len; in eap_eke_derive_ke_ki()
457 os_memcpy(data, label, label_len); in eap_eke_derive_ke_ki()
458 os_memcpy(data + label_len, id_s, id_s_len); in eap_eke_derive_ke_ki()
459 os_memcpy(data + label_len + id_s_len, id_p, id_p_len); in eap_eke_derive_ke_ki()
484 size_t label_len; in eap_eke_derive_ka() local
493 label_len = os_strlen(label); in eap_eke_derive_ka()
494 data_len = label_len + id_s_len + id_p_len + 2 * sess->nonce_len; in eap_eke_derive_ka()
499 os_memcpy(pos, label, label_len); in eap_eke_derive_ka()
[all …]
Deap_peap_common.c22 size_t label_len = os_strlen(label); in peap_prfplus() local
30 len[1] = label_len; in peap_prfplus()
Deap_sake_common.c217 size_t label_len = os_strlen(label) + 1; in eap_sake_kdf() local
222 len[0] = label_len; in eap_sake_kdf()
/third_party/ntfs-3g/ntfsprogs/
Dntfslabel.c378 int label_len; in change_label() local
381 label_len = ntfs_mbstoucs(label, &new_label); in change_label()
382 if (label_len == -1) { in change_label()
386 else if (label_len*sizeof(ntfschar) > 0x100) { in change_label()
390 (unsigned)(label_len - in change_label()
392 label_len = 0x100 / sizeof(ntfschar); in change_label()
393 new_label[label_len] = const_cpu_to_le16(0); in change_label()
397 result = ntfs_volume_rename(vol, new_label, label_len) ? 1 : 0; in change_label()
/third_party/mbedtls/library/
Dssl_tls13_keys.c83 #define SSL_TLS1_3_KEY_SCHEDULE_HKDF_LABEL_LEN( label_len, context_len ) \ argument
86 + label_len \
98 const unsigned char *label, size_t label_len, in ssl_tls13_hkdf_encode_label() argument
103 sizeof(tls13_label_prefix) + label_len; in ssl_tls13_hkdf_encode_label()
124 memcpy( p, label, label_len ); in ssl_tls13_hkdf_encode_label()
125 p += label_len; in ssl_tls13_hkdf_encode_label()
139 const unsigned char *label, size_t label_len, in mbedtls_ssl_tls13_hkdf_expand_label() argument
147 if( label_len > MBEDTLS_SSL_TLS1_3_KEY_SCHEDULE_MAX_LABEL_LEN ) in mbedtls_ssl_tls13_hkdf_expand_label()
172 label, label_len, in mbedtls_ssl_tls13_hkdf_expand_label()
249 const unsigned char *label, size_t label_len, in mbedtls_ssl_tls13_derive_secret() argument
[all …]
Dssl_tls13_keys.h119 const unsigned char *label, size_t label_len,
207 const unsigned char *label, size_t label_len,
Drsa.c1156 const unsigned char *label, size_t label_len, in mbedtls_rsa_rsaes_oaep_encrypt() argument
1171 RSA_VALIDATE_RET( label_len == 0 || label != NULL ); in mbedtls_rsa_rsaes_oaep_encrypt()
1198 if( ( ret = mbedtls_md( md_info, label, label_len, p ) ) != 0 ) in mbedtls_rsa_rsaes_oaep_encrypt()
1326 const unsigned char *label, size_t label_len, in mbedtls_rsa_rsaes_oaep_decrypt() argument
1343 RSA_VALIDATE_RET( label_len == 0 || label != NULL ); in mbedtls_rsa_rsaes_oaep_decrypt()
1400 if( ( ret = mbedtls_md( md_info, label, label_len, lhash ) ) != 0 ) in mbedtls_rsa_rsaes_oaep_decrypt()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dsha1-prf.c36 size_t label_len = os_strlen(label) + 1; in sha1_prf() local
41 len[0] = label_len; in sha1_prf()
Dsha1-tprf.c35 size_t label_len = os_strlen(label); in sha1_t_prf() local
43 len[1] = label_len + 1; in sha1_t_prf()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dsha1-prf.c36 size_t label_len = os_strlen(label) + 1; in sha1_prf() local
41 len[0] = label_len; in sha1_prf()
Dsha1-tprf.c35 size_t label_len = os_strlen(label); in sha1_t_prf() local
43 len[1] = label_len + 1; in sha1_t_prf()
/third_party/gstreamer/gstplugins_bad/ext/webrtc/
Dwebrtcdatachannel.c113 gsize label_len = strlen (channel->parent.label); in construct_open_packet() local
115 gsize size = 12 + label_len + proto_len; in construct_open_packet()
165 if (!gst_byte_writer_put_uint16_be (&w, (guint16) label_len)) in construct_open_packet()
170 label_len)) in construct_open_packet()
408 guint16 priority, label_len, proto_len; in _parse_control_packet() local
431 if (!gst_byte_reader_get_uint16_be (&r, &label_len)) in _parse_control_packet()
436 label = g_new0 (gchar, (gsize) label_len + 1); in _parse_control_packet()
439 if (!gst_byte_reader_get_data (&r, label_len, &src)) in _parse_control_packet()
441 memcpy (label, src, label_len); in _parse_control_packet()
442 label[label_len] = '\0'; in _parse_control_packet()
/third_party/ntfs-3g/libntfs-3g/
Dvolume.c1914 int ntfs_volume_rename(ntfs_volume *vol, const ntfschar *label, int label_len) in ntfs_volume_rename() argument
1929 label_len *= sizeof(ntfschar); in ntfs_volume_rename()
1930 if (label_len > 0x100) { in ntfs_volume_rename()
1949 (const u8*) label, label_len)) in ntfs_volume_rename()
1967 if (na->data_size != label_len) { in ntfs_volume_rename()
1968 if (ntfs_attr_truncate(na, label_len)) { in ntfs_volume_rename()
1976 if (label_len) { in ntfs_volume_rename()
1977 written = ntfs_attr_pwrite(na, 0, label_len, label); in ntfs_volume_rename()
1984 else if (written != label_len) { in ntfs_volume_rename()
1995 ntfs_ucstombs(label, label_len, &new_vol_name, 0); in ntfs_volume_rename()
/third_party/toybox/toys/other/
Dblkid.c42 int magic_len, magic_offset, uuid_off, label_len, label_off; member
142 len = fstypes[i].label_len; in do_blkid()
/third_party/e2fsprogs/misc/
Dblkid.c155 static int label_len = 8, mtpt_len = 14; in pretty_print_line() local
168 label_len += w; in pretty_print_line()
178 len = pretty_print_word(label, label_len, len, 0); in pretty_print_line()
/third_party/mbedtls/include/mbedtls/
Drsa.h660 const unsigned char *label, size_t label_len,
777 const unsigned char *label, size_t label_len,
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/
Dmnist_op.cc137 int64_t label_len = label_reader->seekg(0, std::ios::end).tellg(); in CheckLabel() local
140 …CHECK_FAIL_RETURN_UNEXPECTED(label_len >= 8, "Invalid file, " + DatasetName() + " file is corrupte… in CheckLabel()
147 …CHECK_FAIL_RETURN_UNEXPECTED((label_len - 8) == num_items, "Invalid data, number of labels is wron… in CheckLabel()
/third_party/e2fsprogs/lib/blkid/
Dprobe.h355 unsigned char label_len[2]; member
364 #define ocfslabellen(o) ((__u32)o.label_len[0] + (((__u32) o.label_len[1]) << 8))
525 __u8 label_len; member
Dprobe.c523 int label_len = 0, maxloop = 100; in probe_fat() local
622 if ((label_len = figure_label_len(vol_label, 11))) in probe_fat()
630 blkid_set_tag(probe->dev, "LABEL", (const char *) label, label_len); in probe_fat()
1215 blkid_set_tag(probe->dev, "LABEL", (char *)hfs->label, hfs->label_len); in probe_hfs()
1245 unsigned int label_len; in probe_hfsplus() local
1342 label_len = blkid_be16(key->unicode_len) * 2; in probe_hfsplus()
1344 key->unicode, label_len); in probe_hfsplus()
/third_party/ntfs-3g/include/ntfs-3g/
Dvolume.h315 int label_len);
/third_party/lwip/src/apps/mdns/
Dmdns.c438 u8_t label_len = *src; in mdns_domain_debug_print() local
440 for (i = 0; i < label_len; i++) { in mdns_domain_debug_print()
443 src += label_len; in mdns_domain_debug_print()