/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | fakebop.c | 1376 uint32_t size, name_len, value_len; in process_boot_environment() local 1398 value_len = 0; in process_boot_environment() 1403 value_len = (uintptr_t)ptr - (uintptr_t)env; in process_boot_environment() 1410 if (value_len == 0) in process_boot_environment() 1509 int value_len; in build_boot_properties() local 1624 value_len = 0; in build_boot_properties() 1629 while (value[value_len] && !ISSPACE(value[value_len])) { in build_boot_properties() 1630 ++value_len; in build_boot_properties() 1636 value += value_len; in build_boot_properties() 1642 bcopy(value, propbuf, value_len); in build_boot_properties() [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softAttributeUtil.c | 5141 uchar_t *value, uint32_t *value_len) argument 5159 if (len == 0 || len > *value_len) { 5162 *value_len = len; 5166 *value_len); 5182 if (len == 0 || len > *value_len) { 5185 *value_len = len; 5189 *value_len); 5222 if (len == 0 || len > *value_len) { 5225 *value_len = len; 5230 *value_len); [all …]
|
H A D | softEC.c | 220 uint32_t value_len = sizeof (value); in soft_ec_key_derive() local 236 template.ulValueLen = value_len; in soft_ec_key_derive() 241 value_len = template.ulValueLen; in soft_ec_key_derive() 243 private_value_item.len = value_len; in soft_ec_key_derive() 475 uint_t value_len; in soft_ecc_sign() local 490 value_len = EC_MAX_VALUE_LEN; in soft_ecc_sign() 491 rv = soft_get_private_value(key, CKA_VALUE, value, &value_len); in soft_ecc_sign() 497 ECkey.privateValue.len = value_len; in soft_ecc_sign()
|
H A D | softDSA.c | 406 uchar_t *value, uint32_t value_len, boolean_t public) in soft_genDSAkey_set_attribute() argument 447 value_len--; in soft_genDSAkey_set_attribute() 450 if ((rv = dup_bigint_attr(&src, value, value_len)) != CKR_OK) in soft_genDSAkey_set_attribute()
|
/illumos-gate/usr/src/lib/udapl/libdat/common/ |
H A D | udat_sr_parser.c | 95 DAT_OS_SIZE value_len; member 1164 token->value_len = 0; in dat_sr_read_token() 1169 token->value_len = 0; in dat_sr_read_token() 1256 token->value_len = sizeof (char) * (token_len + 1); in dat_sr_read_str() 1257 if (NULL == (token->value = dat_os_alloc(token->value_len))) { in dat_sr_read_str() 1262 dat_os_free(token->value, token->value_len); in dat_sr_read_str() 1268 token->value[token->value_len - 1] = '\0'; in dat_sr_read_str() 1298 token->value_len = sizeof (char) * (str_len - num_escape_seq + 1); in dat_sr_read_quoted_str() 1300 if (NULL == (token->value = dat_os_alloc(token->value_len))) { in dat_sr_read_quoted_str() 1334 token->value[token->value_len - 1] = '\0'; in dat_sr_read_quoted_str() [all …]
|
/illumos-gate/usr/src/boot/common/ |
H A D | multiboot2.c | 343 size_t name_len, value_len; in find_property_value() local 367 value_len = 0; in find_property_value() 369 for (;; ++value_len) { in find_property_value() 370 if (valuep[value_len] == '\0') in find_property_value() 374 if (value_len == 0 && in find_property_value() 377 ++value_len; in find_property_value() 385 if (valuep[value_len] == quoted) in find_property_value() 391 if (valuep[value_len] == ',' || in find_property_value() 392 valuep[value_len] == ' ' || in find_property_value() 393 valuep[value_len] == '\t') in find_property_value() [all …]
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | dprov.c | 7366 size_t value_len = 0; in nostore_copy_attribute() local 7395 &value, &value_len); in nostore_copy_attribute() 7399 if (value_len < dprov_attribute_size) in nostore_copy_attribute() 7457 ulong_t value_len; in dprov_key_task() local 7506 &value_len) != CRYPTO_SUCCESS) { in dprov_key_task() 7510 if (value_len >= AES_MAX_KEY_LEN) { in dprov_key_task() 7514 key_len = value_len; in dprov_key_task() 7526 &value_len) != CRYPTO_SUCCESS) { in dprov_key_task() 7530 if (value_len >= BLOWFISH_MAX_KEY_LEN) { in dprov_key_task() 7534 key_len = value_len; in dprov_key_task() [all …]
|
H A D | ecc.c | 307 uint_t nattr, uint64_t attr_type, void *value, size_t value_len) in get_template_attr_scalar_common() argument 317 if (oa_value_len != value_len) { in get_template_attr_scalar_common() 349 ssize_t value_len; in check_mech_and_key() local 372 &value_len)) != CRYPTO_SUCCESS) { in check_mech_and_key() 375 if (value_len < CRYPTO_BITS2BYTES(EC_MIN_KEY_LEN) || in check_mech_and_key() 376 value_len > CRYPTO_BITS2BYTES(EC_MAX_KEY_LEN)) in check_mech_and_key()
|
H A D | crypto.c | 2277 size_t value_len; in copyin_attributes() local 2341 value_len = STRUCT_FGET(oa, oa_value_len); in copyin_attributes() 2342 if (value != NULL && value_len != 0 && copyin_value) { in copyin_attributes() 2343 if (copyin(value, p, value_len) != 0) { in copyin_attributes() 2353 p += roundup(value_len, sizeof (caddr_t)); in copyin_attributes() 2357 k_attrs[i].oa_value_len = value_len; in copyin_attributes() 4568 size_t value_len; in copyout_attributes() local 4585 value_len = k_attrs[i].oa_value_len; in copyout_attributes() 4587 STRUCT_FSET(oa, oa_value_len, (ssize_t)value_len); in copyout_attributes() 4589 if ((valuep != NULL) && (value_len != (size_t)-1)) { in copyout_attributes() [all …]
|
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | fs_mounts.c | 880 size_t value_len; in is_option() local 885 value_len = opt_string_len - opt_len; in is_option() 887 value = (char *)calloc((size_t)(value_len+1), in is_option() 899 while (counter <= (value_len-1)) { in is_option()
|
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | object.c | 625 uint32_t value_len; in tx_cmd_value() local 640 value_len = *(uint32_t *)bp; in tx_cmd_value() 641 bp += sizeof (uint32_t) + TX_SIZE(value_len); in tx_cmd_value()
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelUtil.c | 672 ssize_t value_len; in process_object_attributes() local 697 value_len = sizeof (ulong_t); in process_object_attributes() 699 (pTemplate[i].ulValueLen < value_len)) { in process_object_attributes() 706 value_len = pTemplate[i].ulValueLen; in process_object_attributes() 710 cur_attr->oa_value_len = value_len; in process_object_attributes()
|
/illumos-gate/usr/src/uts/common/crypto/core/ |
H A D | kcf_prov_lib.c | 346 uchar_t **value, ssize_t *value_len) in crypto_get_key_attr() argument 354 *value_len = key->ck_attrs[i].oa_value_len; in crypto_get_key_attr()
|
/illumos-gate/usr/src/uts/common/io/sfxge/common/ |
H A D | efx_wol.c | 178 EFSYS_ASSERT3U(paramp->ewp_bitmap.value_len, <=, in efx_wol_filter_add() 181 paramp->ewp_bitmap.value_len); in efx_wol_filter_add()
|
H A D | efx.h | 1394 uint8_t value_len; member
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi_login.c | 1828 int value_len = 0; in iscsi_add_text() local 1839 value_len = strlen(value); in iscsi_add_text() 1841 length = param_len + 1 + value_len + 1; in iscsi_add_text() 1859 (void) strncpy(text, value, value_len); in iscsi_add_text() 1860 text += value_len; in iscsi_add_text()
|
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/ |
H A D | pkcs11_spi.c | 225 CK_ULONG subject_len, value_len, issuer_len, serno_len, id_len; in PK11Cert2KMFCert() local 249 subject_len = issuer_len = serno_len = id_len = value_len = 0; in PK11Cert2KMFCert() 259 SETATTR(templ, i, CKA_VALUE, NULL, value_len); in PK11Cert2KMFCert() 276 value_len = templ[4].ulValueLen; in PK11Cert2KMFCert() 285 serno_len == 0 || value_len == 0) { in PK11Cert2KMFCert() 292 value = malloc(value_len); in PK11Cert2KMFCert() 298 SETATTR(templ, i, CKA_VALUE, value, value_len); in PK11Cert2KMFCert() 312 kmfcert->certificate.Length = value_len; in PK11Cert2KMFCert() 2744 CK_ULONG value_len = 0; in get_raw_sym() local 2749 sym_attr[0].ulValueLen = value_len; in get_raw_sym()
|