Home
last modified time | relevance | path

Searched refs:value_len (Results 1 – 17 of 17) sorted by relevance

/titanic_53/usr/src/uts/i86pc/os/
H A Dfakebop.c1269 uint32_t size, name_len, value_len; in process_boot_environment() local
1291 value_len = 0; in process_boot_environment()
1296 value_len = (uintptr_t)ptr - (uintptr_t)env; in process_boot_environment()
1303 if (value_len == 0) in process_boot_environment()
1342 int value_len; in build_boot_properties() local
1455 value_len = 0; in build_boot_properties()
1460 while (value[value_len] && !ISSPACE(value[value_len])) { in build_boot_properties()
1461 ++value_len; in build_boot_properties()
1467 value += value_len; in build_boot_properties()
1473 bcopy(value, propbuf, value_len); in build_boot_properties()
[all …]
/titanic_53/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftAttributeUtil.c5152 uchar_t *value, uint32_t *value_len) argument
5170 if (len == 0 || len > *value_len) {
5173 *value_len = len;
5177 *value_len);
5193 if (len == 0 || len > *value_len) {
5196 *value_len = len;
5200 *value_len);
5233 if (len == 0 || len > *value_len) {
5236 *value_len = len;
5241 *value_len);
[all …]
H A DsoftEC.c220 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 DsoftDSA.c406 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()
/titanic_53/usr/src/lib/udapl/libdat/common/
H A Dudat_sr_parser.c98 DAT_OS_SIZE value_len; member
1167 token->value_len = 0; in dat_sr_read_token()
1172 token->value_len = 0; in dat_sr_read_token()
1259 token->value_len = sizeof (char) * (token_len + 1); in dat_sr_read_str()
1260 if (NULL == (token->value = dat_os_alloc(token->value_len))) { in dat_sr_read_str()
1265 dat_os_free(token->value, token->value_len); in dat_sr_read_str()
1271 token->value[token->value_len - 1] = '\0'; in dat_sr_read_str()
1301 token->value_len = sizeof (char) * (str_len - num_escape_seq + 1); in dat_sr_read_quoted_str()
1303 if (NULL == (token->value = dat_os_alloc(token->value_len))) { in dat_sr_read_quoted_str()
1337 token->value[token->value_len - 1] = '\0'; in dat_sr_read_quoted_str()
[all …]
/titanic_53/usr/src/boot/sys/boot/common/
H A Dmultiboot2.c337 size_t name_len, value_len; in find_property_value() local
361 value_len = 0; in find_property_value()
363 for (; ; ++value_len) { in find_property_value()
364 if (valuep[value_len] == '\0') in find_property_value()
368 if (value_len == 0 && in find_property_value()
371 ++value_len; in find_property_value()
379 if (valuep[value_len] == quoted) in find_property_value()
385 if (valuep[value_len] == ',' || in find_property_value()
386 valuep[value_len] == ' ' || in find_property_value()
387 valuep[value_len] == '\t') in find_property_value()
[all …]
/titanic_53/usr/src/lib/libdscfg/common/
H A Dcfg.h48 int cfg_get_cstring(CFGFILE *cfg, const char *key, void *value, int value_len);
49 int cfg_put_cstring(CFGFILE *cfg, const char *key, void *value, int value_len);
H A Dcfg.c392 cfg_get_cstring(CFGFILE *cfg, const char *key, void *value, int value_len) in cfg_get_cstring() argument
493 strncpy(value, buf, value_len); in cfg_get_cstring()
508 if (strlen(p) > value_len) { in cfg_get_cstring()
518 strncpy(value, p, value_len); in cfg_get_cstring()
/titanic_53/usr/src/uts/common/crypto/io/
H A Ddprov.c7340 size_t value_len = 0; in nostore_copy_attribute() local
7369 &value, &value_len); in nostore_copy_attribute()
7373 if (value_len < dprov_attribute_size) in nostore_copy_attribute()
7431 ulong_t value_len; in dprov_key_task() local
7480 &value_len) != CRYPTO_SUCCESS) { in dprov_key_task()
7484 if (value_len >= AES_MAX_KEY_LEN) { in dprov_key_task()
7488 key_len = value_len; in dprov_key_task()
7500 &value_len) != CRYPTO_SUCCESS) { in dprov_key_task()
7504 if (value_len >= BLOWFISH_MAX_KEY_LEN) { in dprov_key_task()
7508 key_len = value_len; in dprov_key_task()
[all …]
H A Decc.c307 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 Dcrypto.c2241 size_t value_len; in copyin_attributes() local
2305 value_len = STRUCT_FGET(oa, oa_value_len); in copyin_attributes()
2306 if (value != NULL && value_len != 0 && copyin_value) { in copyin_attributes()
2307 if (copyin(value, p, value_len) != 0) { in copyin_attributes()
2317 p += roundup(value_len, sizeof (caddr_t)); in copyin_attributes()
2321 k_attrs[i].oa_value_len = value_len; in copyin_attributes()
4481 size_t value_len; in copyout_attributes() local
4498 value_len = k_attrs[i].oa_value_len; in copyout_attributes()
4500 STRUCT_FSET(oa, oa_value_len, (ssize_t)value_len); in copyout_attributes()
4502 if ((valuep != NULL) && (value_len != (size_t)-1)) { in copyout_attributes()
[all …]
/titanic_53/usr/src/lib/libfsmgt/common/
H A Dfs_mounts.c882 size_t value_len; in is_option() local
887 value_len = opt_string_len - opt_len; in is_option()
889 value = (char *)calloc((size_t)(value_len+1), in is_option()
901 while (counter <= (value_len-1)) { in is_option()
/titanic_53/usr/src/cmd/svc/configd/
H A Dobject.c627 uint32_t value_len; in tx_cmd_value() local
642 value_len = *(uint32_t *)bp; in tx_cmd_value()
643 bp += sizeof (uint32_t) + TX_SIZE(value_len); in tx_cmd_value()
/titanic_53/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelUtil.c783 ssize_t value_len; in process_object_attributes() local
808 value_len = sizeof (ulong_t); in process_object_attributes()
810 (pTemplate[i].ulValueLen < value_len)) { in process_object_attributes()
817 value_len = pTemplate[i].ulValueLen; in process_object_attributes()
821 cur_attr->oa_value_len = value_len; in process_object_attributes()
/titanic_53/usr/src/uts/common/crypto/core/
H A Dkcf_prov_lib.c544 uchar_t **value, ssize_t *value_len) in crypto_get_key_attr() argument
552 *value_len = key->ck_attrs[i].oa_value_len; in crypto_get_key_attr()
/titanic_53/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_login.c1826 int value_len = 0; in iscsi_add_text() local
1837 value_len = strlen(value); in iscsi_add_text()
1839 length = param_len + 1 + value_len + 1; in iscsi_add_text()
1857 (void) strncpy(text, value, value_len); in iscsi_add_text()
1858 text += value_len; in iscsi_add_text()
/titanic_53/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/
H A Dpkcs11_spi.c225 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()