Home
last modified time | relevance | path

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

12

/openthread-latest/third_party/mbedtls/repo/library/
Dlms.c94 static int create_merkle_leaf_value(const mbedtls_lms_parameters_t *params, in create_merkle_leaf_value() argument
110 status = psa_hash_update(&op, params->I_key_identifier, in create_merkle_leaf_value()
128 MBEDTLS_LMOTS_N_HASH_LEN(params->otstype)); in create_merkle_leaf_value()
133 status = psa_hash_finish(&op, out, MBEDTLS_LMS_M_NODE_BYTES(params->type), in create_merkle_leaf_value()
167 static int create_merkle_internal_value(const mbedtls_lms_parameters_t *params, in create_merkle_internal_value() argument
184 status = psa_hash_update(&op, params->I_key_identifier, in create_merkle_internal_value()
202 MBEDTLS_LMS_M_NODE_BYTES(params->type)); in create_merkle_internal_value()
208 MBEDTLS_LMS_M_NODE_BYTES(params->type)); in create_merkle_internal_value()
213 status = psa_hash_finish(&op, out, MBEDTLS_LMS_M_NODE_BYTES(params->type), in create_merkle_internal_value()
245 ctx->params.type = type; in mbedtls_lms_import_public_key()
[all …]
Dlmots.c83 static unsigned short lmots_checksum_calculate(const mbedtls_lmots_parameters_t *params, in lmots_checksum_calculate() argument
89 for (idx = 0; idx < MBEDTLS_LMOTS_N_HASH_LEN(params->type); idx++) { in lmots_checksum_calculate()
119 static int create_digit_array_with_checksum(const mbedtls_lmots_parameters_t *params, in create_digit_array_with_checksum() argument
135 status = psa_hash_update(&op, params->I_key_identifier, in create_digit_array_with_checksum()
141 status = psa_hash_update(&op, params->q_leaf_identifier, in create_digit_array_with_checksum()
153 MBEDTLS_LMOTS_C_RANDOM_VALUE_LEN(params->type)); in create_digit_array_with_checksum()
164 MBEDTLS_LMOTS_N_HASH_LEN(params->type), in create_digit_array_with_checksum()
170 checksum = lmots_checksum_calculate(params, out); in create_digit_array_with_checksum()
171 MBEDTLS_PUT_UINT16_BE(checksum, out, MBEDTLS_LMOTS_N_HASH_LEN(params->type)); in create_digit_array_with_checksum()
208 static int hash_digit_array(const mbedtls_lmots_parameters_t *params, in hash_digit_array() argument
[all …]
Dpkparse.c73 static int pk_ecc_group_id_from_specified(const mbedtls_asn1_buf *params, in pk_ecc_group_id_from_specified() argument
76 (void) params; in pk_ecc_group_id_from_specified()
109 static int pk_group_from_specified(const mbedtls_asn1_buf *params, mbedtls_ecp_group *grp) in pk_group_from_specified() argument
112 unsigned char *p = params->p; in pk_group_from_specified()
113 const unsigned char *const end = params->p + params->len; in pk_group_from_specified()
302 static int pk_ecc_group_id_from_specified(const mbedtls_asn1_buf *params, in pk_ecc_group_id_from_specified() argument
310 if ((ret = pk_group_from_specified(params, &grp)) != 0) { in pk_ecc_group_id_from_specified()
349 mbedtls_asn1_buf *params) in pk_get_ecparams() argument
359 params->tag = **p; in pk_get_ecparams()
360 if (params->tag != MBEDTLS_ASN1_OID && in pk_get_ecparams()
[all …]
Dasn1parse.c353 mbedtls_asn1_buf *alg, mbedtls_asn1_buf *params) in mbedtls_asn1_get_alg() argument
378 mbedtls_platform_zeroize(params, sizeof(mbedtls_asn1_buf)); in mbedtls_asn1_get_alg()
382 params->tag = **p; in mbedtls_asn1_get_alg()
385 if ((ret = mbedtls_asn1_get_len(p, end, &params->len)) != 0) { in mbedtls_asn1_get_alg()
389 params->p = *p; in mbedtls_asn1_get_alg()
390 *p += params->len; in mbedtls_asn1_get_alg()
404 mbedtls_asn1_buf params; in mbedtls_asn1_get_alg_null() local
406 memset(&params, 0, sizeof(mbedtls_asn1_buf)); in mbedtls_asn1_get_alg_null()
408 if ((ret = mbedtls_asn1_get_alg(p, end, alg, &params)) != 0) { in mbedtls_asn1_get_alg_null()
412 if ((params.tag != MBEDTLS_ASN1_NULL && params.tag != 0) || params.len != 0) { in mbedtls_asn1_get_alg_null()
Dpkcs12.c36 static int pkcs12_parse_pbe_params(mbedtls_asn1_buf *params, in pkcs12_parse_pbe_params() argument
40 unsigned char **p = &params->p; in pkcs12_parse_pbe_params()
41 const unsigned char *end = params->p + params->len; in pkcs12_parse_pbe_params()
50 if (params->tag != (MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_SEQUENCE)) { in pkcs12_parse_pbe_params()
Dpkcs5.c40 static int pkcs5_parse_pbkdf2_params(const mbedtls_asn1_buf *params, in pkcs5_parse_pbkdf2_params() argument
46 unsigned char *p = params->p; in pkcs5_parse_pbkdf2_params()
47 const unsigned char *end = params->p + params->len; in pkcs5_parse_pbkdf2_params()
49 if (params->tag != (MBEDTLS_ASN1_CONSTRUCTED | MBEDTLS_ASN1_SEQUENCE)) { in pkcs5_parse_pbkdf2_params()
Dx509_internal.h29 mbedtls_x509_buf *alg, mbedtls_x509_buf *params);
31 int mbedtls_x509_get_rsassa_pss_params(const mbedtls_x509_buf *params,
Dpsa_crypto_core.h355 const psa_key_production_parameters_t *params,
382 const psa_key_production_parameters_t *params,
Dlmots.h144 int mbedtls_lmots_calculate_public_key_candidate(const mbedtls_lmots_parameters_t *params,
Dpsa_crypto_rsa.h135 const psa_key_production_parameters_t *params, size_t params_data_length,
/openthread-latest/tests/scripts/thread-cert/
Dthread_cert.py156 for i, params in self.TOPOLOGY.items():
157 params = self._parse_params(params)
158 initial_topology[i] = params
160 … backbone_network_name = self._construct_backbone_network_name(params.get('backbone_network_id')) \
163 logging.info("Creating node %d: %r", i, params)
166 if params['is_otbr']:
168 elif params['is_host']:
174 is_mtd=params['is_mtd'],
176 name=params.get('name'),
177 version=params['version'],
[all …]
/openthread-latest/tools/harness-automation/autothreadharness/
Dpdu_controller.py53 def open(self, **params): argument
57 def reboot(self, **params): argument
69 def open(self, **params): argument
72 def reboot(self, **params): argument
97 def open(self, **params): argument
107 self.port = params['port']
108 self.ip = params['ip']
130 def reboot(self, **params): argument
139 outlet = params['outlet']
179 def open(self, **params): argument
[all …]
Drf_shield_controller.py97 def get_rf_shield_controller(shield_type, params): argument
99 return CONTROLLERS[shield_type](**params)
Dharness_case.py325 params=settings.SHIELD_CONTROLLER_PARAMS)
1043 params = reduce(
1044 lambda params, param: params.update(((param[0].strip(' '), param[1]),)) or params,
1048 prefix = params['P_Prefix'].strip('\0\r\n\t ')
1050 if params.get('P_slaac_preferred', 0) == '1':
1053 if params.get('P_stable', 0) == '1':
1055 if params.get('P_default', 0) == '1':
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_pkcs5.function36 mbedtls_asn1_buf params;
43 params.tag = params_tag;
44 params.p = params_hex->x;
45 params.len = params_hex->len;
51 my_ret = mbedtls_pkcs5_pbes2(&params, MBEDTLS_PKCS5_ENCRYPT,
62 my_ret = mbedtls_pkcs5_pbes2_ext(&params, MBEDTLS_PKCS5_ENCRYPT,
84 mbedtls_asn1_buf params;
92 params.tag = params_tag;
93 params.p = params_hex->x;
94 params.len = params_hex->len;
[all …]
Dtest_suite_pkcs5.data169 PBES2 Decrypt (bad params tag)
185 PBES2 Decrypt (bad PBKDF2 params: not a sequence)
189 PBES2 Decrypt (bad PBKDF2 params: overlong)
193 PBES2 Decrypt (bad PBKDF2 params salt: not an octet string)
197 PBES2 Decrypt (bad PBKDF2 params salt: overlong)
201 PBES2 Decrypt (bad PBKDF2 params iter: not an int)
205 PBES2 Decrypt (bad PBKDF2 params iter: overlong)
209 PBES2 Decrypt (OK, PBKDF2 params explicit keylen)
213 PBES2 Decrypt (bad PBKDF2 params explicit keylen: overlong)
217 PBES2 Decrypt (OK, PBKDF2 params explicit prf_alg)
[all …]
Dhost_test.function129 * \param params Out params found
130 * \param params_len Out params array len
134 static int parse_arguments(char *buf, size_t len, char **params,
141 params[cnt++] = cur;
153 params[cnt++] = cur;
163 p = params[i];
164 q = params[i];
199 * \param params Out array of found parameters.
204 static int convert_params(size_t cnt, char **params,
207 char **cur = params;
[all …]
Dtest_suite_asn1parse.data541 AlgorithmIdentifier, no params
544 AlgorithmIdentifier, no params, trailing garbage
547 AlgorithmIdentifier, null params
550 AlgorithmIdentifier, null params, trailing garbage
553 AlgorithmIdentifier, OCTET STRING params
568 AlgorithmIdentifier, truncated in params after tag
571 AlgorithmIdentifier, truncated in params after length
574 AlgorithmIdentifier, truncated inside params content
Dmain_test.function151 * \param params The array of parameters to pass to the test function.
158 int dispatch_test(size_t func_idx, void **params)
170 fp(params);
/openthread-latest/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dcrypto_knowledge.py71 def __init__(self, name: str, params: Optional[Iterable[str]] = None) -> None:
88 if params is None:
93 params = m.group(2).split(',')
94 self.params = (None if params is None else
95 [param.strip() for param in params])
104 if self.params is not None:
105 self.expression += '(' + ', '.join(self.params) + ')'
168 assert self.params is not None
169 return self.ECC_KEY_SIZES[self.params[0]]
171 assert self.params is not None
[all …]
/openthread-latest/third_party/mbedtls/repo/include/mbedtls/
Dlms.h122 mbedtls_lmots_parameters_t MBEDTLS_PRIVATE(params);
147 mbedtls_lmots_parameters_t MBEDTLS_PRIVATE(params);
191 mbedtls_lms_parameters_t MBEDTLS_PRIVATE(params);
217 mbedtls_lms_parameters_t MBEDTLS_PRIVATE(params);
/openthread-latest/tools/harness-thci/
DOpenThread.py402 def intialize(self, params): argument
404 self.mac = params.get('EUI')
405 self.backboneNetif = params.get('Param8') or 'eth0'
406 self.extraParams = self.__parseExtraParams(params.get('Param9'))
409 self._parseConnectionParams(params)
454 def _parseConnectionParams(self, params): argument
460 self.port = params.get('SerialPort', '')
462 self.log('All parameters: %r', params)
470 self.telnetUsername = 'pi' if params.get('Param6') is None else params.get('Param6')
471 … self.telnetPassword = 'raspberry' if params.get('Param7') is None else params.get('Param7')
[all …]
/openthread-latest/tools/harness-simulation/harness/Thread_Harness/THCI/
DOpenThread_BR_Sim.py119 def _parseConnectionParams(self, params): argument
120 discovery_add = params.get('SerialPort')
DOpenThread_Sim.py151 def _parseConnectionParams(self, params): argument
152 discovery_add = params.get('SerialPort')
/openthread-latest/
D.clang-tidy14 readability-avoid-const-params-in-decls,

12