Home
last modified time | relevance | path

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

12345678910>>...13

/openthread-latest/third_party/mbedtls/repo/include/mbedtls/
Dlms.h33 #define MBEDTLS_LMOTS_N_HASH_LEN(type) ((type) == MBEDTLS_LMOTS_SHA256_N32_W8 ? 32u : 0) argument
37 #define MBEDTLS_LMOTS_P_SIG_DIGIT_COUNT(type) ((type) == MBEDTLS_LMOTS_SHA256_N32_W8 ? 34u : 0) argument
38 #define MBEDTLS_LMOTS_C_RANDOM_VALUE_LEN(type) (MBEDTLS_LMOTS_N_HASH_LEN(type)) argument
40 #define MBEDTLS_LMOTS_SIG_LEN(type) (MBEDTLS_LMOTS_TYPE_LEN + \ argument
41 MBEDTLS_LMOTS_C_RANDOM_VALUE_LEN(type) + \
42 (MBEDTLS_LMOTS_P_SIG_DIGIT_COUNT(type) * \
43 MBEDTLS_LMOTS_N_HASH_LEN(type)))
47 #define MBEDTLS_LMS_H_TREE_HEIGHT(type) ((type) == MBEDTLS_LMS_SHA256_M32_H10 ? 10u : 0) argument
52 #define MBEDTLS_LMS_M_NODE_BYTES(type) ((type) == MBEDTLS_LMS_SHA256_M32_H10 ? 32 : 0) argument
55 #define MBEDTLS_LMS_SIG_LEN(type, otstype) (MBEDTLS_LMOTS_Q_LEAF_ID_LEN + \ argument
[all …]
/openthread-latest/third_party/mbedtls/repo/library/
Dlms.c66 #define MERKLE_TREE_NODE_AM(type) ((size_t) 1 << (MBEDTLS_LMS_H_TREE_HEIGHT(type) + 1u)) argument
67 #define MERKLE_TREE_LEAF_NODE_AM(type) ((size_t) 1 << MBEDTLS_LMS_H_TREE_HEIGHT(type)) argument
68 #define MERKLE_TREE_INTERNAL_NODE_AM(type) ((unsigned int) \ argument
69 (1u << MBEDTLS_LMS_H_TREE_HEIGHT(type)))
133 status = psa_hash_finish(&op, out, MBEDTLS_LMS_M_NODE_BYTES(params->type), in create_merkle_leaf_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()
238 mbedtls_lms_algorithm_type_t type; in mbedtls_lms_import_public_key() local
241 type = (mbedtls_lms_algorithm_type_t) MBEDTLS_GET_UINT32_BE(key, PUBLIC_KEY_TYPE_OFFSET); in mbedtls_lms_import_public_key()
[all …]
Dlmots.c89 for (idx = 0; idx < MBEDTLS_LMOTS_N_HASH_LEN(params->type); idx++) { in lmots_checksum_calculate()
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()
171 MBEDTLS_PUT_UINT16_BE(checksum, out, MBEDTLS_LMOTS_N_HASH_LEN(params->type)); in create_digit_array_with_checksum()
226 i_digit_idx < MBEDTLS_LMOTS_P_SIG_DIGIT_COUNT(params->type); in hash_digit_array()
230 &x_digit_array[i_digit_idx * MBEDTLS_LMOTS_N_HASH_LEN(params->type)], in hash_digit_array()
231 MBEDTLS_LMOTS_N_HASH_LEN(params->type)); in hash_digit_array()
273 MBEDTLS_LMOTS_N_HASH_LEN(params->type)); in hash_digit_array()
287 memcpy(&output[i_digit_idx * MBEDTLS_LMOTS_N_HASH_LEN(params->type)], in hash_digit_array()
288 tmp_hash, MBEDTLS_LMOTS_N_HASH_LEN(params->type)); in hash_digit_array()
[all …]
Dpsa_crypto_ecp.c91 psa_key_type_t type, size_t curve_bits, in mbedtls_psa_ecp_load_representation() argument
101 if (PSA_KEY_TYPE_IS_PUBLIC_KEY(type) && in mbedtls_psa_ecp_load_representation()
102 PSA_KEY_TYPE_ECC_GET_FAMILY(type) != PSA_ECC_FAMILY_MONTGOMERY) { in mbedtls_psa_ecp_load_representation()
140 status = check_ecc_parameters(PSA_KEY_TYPE_ECC_GET_FAMILY(type), &curve_bits); in mbedtls_psa_ecp_load_representation()
146 grp_id = mbedtls_ecc_group_from_psa(PSA_KEY_TYPE_ECC_GET_FAMILY(type), in mbedtls_psa_ecp_load_representation()
160 if (PSA_KEY_TYPE_IS_PUBLIC_KEY(type)) { in mbedtls_psa_ecp_load_representation()
219 status = mbedtls_psa_ecp_load_representation(attributes->type, in mbedtls_psa_ecp_import_key()
228 if (PSA_KEY_TYPE_ECC_GET_FAMILY(attributes->type) == in mbedtls_psa_ecp_import_key()
238 status = mbedtls_psa_ecp_export_key(attributes->type, in mbedtls_psa_ecp_import_key()
251 psa_status_t mbedtls_psa_ecp_export_key(psa_key_type_t type, in mbedtls_psa_ecp_export_key() argument
[all …]
/openthread-latest/tools/tcat_ble_client/dataset/
Ddataset.py40 for type, entry in self.entries.items():
47 type = MeshcopTlvType.from_value(tlv.type)
48 self.entries[type] = create_dataset_entry(type)
49 self.entries[type].set_from_tlv(tlv)
57 def get_entry(self, type: MeshcopTlvType):
58 return self.entries[type]
60 def set_entry(self, type: MeshcopTlvType, args: List[str]):
61 if type in ENTRY_CLASSES:
62 if type in self.entries:
63 self.entries[type].set(args)
[all …]
/openthread-latest/third_party/tcplp/bsdtcp/sys/
Dqueue.h153 #define QUEUE_TYPEOF(type) type argument
155 #define QUEUE_TYPEOF(type) struct type argument
161 #define SLIST_HEAD(name, type) \ argument
163 struct type *slh_first; /* first element */ \
166 #define SLIST_CLASS_HEAD(name, type) \ argument
168 class type *slh_first; /* first element */ \
174 #define SLIST_ENTRY(type) \ argument
176 struct type *sle_next; /* next element */ \
179 #define SLIST_CLASS_ENTRY(type) \ argument
181 class type *sle_next; /* next element */ \
[all …]
/openthread-latest/tests/scripts/thread-cert/
DCert_9_2_06_DatasetDissemination.py258 NWD_COMMISSIONING_DATA_TLV in p.thread_nwd.tlv.type and \
259 NM_COMMISSIONER_SESSION_ID_TLV in p.thread_meshcop.tlv.type and \
260 NM_STEERING_DATA_TLV in p.thread_meshcop.tlv.type and \
261 NM_BORDER_AGENT_LOCATOR_TLV in p.thread_meshcop.tlv.type
289 NWD_COMMISSIONING_DATA_TLV in p.thread_nwd.tlv.type and \
290 NM_COMMISSIONER_SESSION_ID_TLV in p.thread_meshcop.tlv.type and \
291 NM_STEERING_DATA_TLV in p.thread_meshcop.tlv.type and \
292 NM_BORDER_AGENT_LOCATOR_TLV in p.thread_meshcop.tlv.type
339 NWD_COMMISSIONING_DATA_TLV in p.thread_nwd.tlv.type and \
340 NM_COMMISSIONER_SESSION_ID_TLV in p.thread_meshcop.tlv.type and \
[all …]
Dmessage.py96 if self.type != MessageType.DTLS:
109 msg._type = self.type
120 def type(self): member in Message
123 @type.setter
124 def type(self, value): member in Message
186 if self.type != MessageType.MLE:
194 if self.type != MessageType.MLE:
197 assert self.mle.command.type == command_type
208 if self.type != MessageType.MLE:
236 if self.type != MessageType.MLE:
[all …]
DCert_8_3_01_CommissionerPetition.py125 } <= set(p.coap.tlv.type)\
150 } <= set(p.coap.tlv.type) and\
162 } <= set(p.mle.tlv.type) and\
165 } <= set(p.thread_nwd.tlv.type) and\
170 } <= set(p.thread_meshcop.tlv.type) and\
189 } <= set(p.coap.tlv.type) and\
203 } <= set(p.coap.tlv.type) and\
221 } <= set(p.coap.tlv.type)
242 } <= set(p.coap.tlv.type) and\
255 } <= set(p.mle.tlv.type) and\
[all …]
DCert_9_2_09_PendingPartition.py279 NWD_COMMISSIONING_DATA_TLV in p.thread_nwd.tlv.type and\
280 NM_COMMISSIONER_SESSION_ID_TLV in p.thread_meshcop.tlv.type and\
281 NM_BORDER_AGENT_LOCATOR_TLV in p.thread_meshcop.tlv.type
292 } <= set(p.mle.tlv.type) and\
294 p.thread_meshcop.tlv.type is nullField
322 } <= set(p.mle.tlv.type) and\
324 NWD_COMMISSIONING_DATA_TLV in p.thread_nwd.tlv.type and\
325 NM_COMMISSIONER_SESSION_ID_TLV in p.thread_meshcop.tlv.type and\
326 NM_BORDER_AGENT_LOCATOR_TLV in p.thread_meshcop.tlv.type and\
360 NWD_COMMISSIONING_DATA_TLV in p.thread_nwd.tlv.type and\
[all …]
DCert_9_2_02_MGMTCommissionerSet.py156 [NM_STEERING_DATA_TLV] == p.coap.tlv.type and\
170 [NM_STATE_TLV] == p.coap.tlv.type and\
188 } <= set(p.thread_meshcop.tlv.type) and\
202 [NM_STATE_TLV] == p.coap.tlv.type and\
221 } <= set(p.mle.tlv.type) and\
224 } <= set(p.thread_nwd.tlv.type) and\
229 } <= set(p.thread_meshcop.tlv.type) and\
247 } <= set(p.thread_meshcop.tlv.type) and\
261 [NM_STATE_TLV] == p.coap.tlv.type and\
281 } <= set(p.thread_meshcop.tlv.type) and\
[all …]
DCert_5_1_05_RouterAddressTimeout.py120 } <= set(p.coap.tlv.type) and\
139 } <= set(p.mle.tlv.type)\
170 } <= set(p.mle.tlv.type)
183 } <= set(p.mle.tlv.type) or\
189 } <= set(p.mle.tlv.type)\
199 } <= set(p.coap.tlv.type) and\
212 } <= set(p.coap.tlv.type) and\
233 } <= set(p.mle.tlv.type)\
262 } <= set(p.mle.tlv.type)
275 } <= set(p.mle.tlv.type) or\
[all …]
Dtlvs_parsing.py35 def __init__(self, type, data): argument
36 self.type = type
40 return 'UnknownTlv(%d, %s)' % (self.type, self.data)
45 def __init__(self, type): argument
46 self._type = type
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_psa_crypto_storage_format.current.data107 save type: AES 128-bit
111 save type: AES 128-bit, AEAD_SHORT(CCM,4)
115 save type: AES 128-bit, AEAD_SHORT(CCM,14)
119 save type: AES 128-bit, AEAD_SHORT(CCM,16)
123 save type: AES 128-bit, CBC_MAC
127 save type: AES 128-bit, CBC_NO_PADDING
131 save type: AES 128-bit, CBC_PKCS7
135 save type: AES 128-bit, CCM
139 save type: AES 128-bit, CCM_STAR_NO_TAG
143 save type: AES 128-bit, CFB
[all …]
Dtest_suite_psa_crypto_storage_format.v0.data195 read type: AES 128-bit
199 read type: AES 128-bit, AEAD_SHORT(CCM,4)
203 read type: AES 128-bit, AEAD_SHORT(CCM,14)
207 read type: AES 128-bit, AEAD_SHORT(CCM,16)
211 read type: AES 128-bit, CBC_MAC
215 read type: AES 128-bit, CBC_NO_PADDING
219 read type: AES 128-bit, CBC_PKCS7
223 read type: AES 128-bit, CCM
227 read type: AES 128-bit, CCM_STAR_NO_TAG
231 read type: AES 128-bit, CFB
[all …]
Dtest_suite_psa_crypto_not_supported.generated.data147 PSA import ECC_KEY_PAIR(BRAINPOOL_P_R1) 160-bit type not supported
151 PSA generate ECC_KEY_PAIR(BRAINPOOL_P_R1) 160-bit type not supported
155 PSA import ECC_KEY_PAIR(BRAINPOOL_P_R1) 192-bit type not supported
159 PSA generate ECC_KEY_PAIR(BRAINPOOL_P_R1) 192-bit type not supported
163 PSA import ECC_KEY_PAIR(BRAINPOOL_P_R1) 224-bit type not supported
167 PSA generate ECC_KEY_PAIR(BRAINPOOL_P_R1) 224-bit type not supported
171 PSA import ECC_KEY_PAIR(BRAINPOOL_P_R1) 256-bit type not supported
175 PSA generate ECC_KEY_PAIR(BRAINPOOL_P_R1) 256-bit type not supported
179 PSA import ECC_KEY_PAIR(BRAINPOOL_P_R1) 320-bit type not supported
183 PSA generate ECC_KEY_PAIR(BRAINPOOL_P_R1) 320-bit type not supported
[all …]
Dtest_suite_psa_crypto_metadata.function51 /* Flags for key type classification macros. There is a flag for every
52 * key type classification macro PSA_KEY_TYPE_IS_xxx except for some that
158 void key_type_classification(psa_key_type_t type, unsigned flags)
163 TEST_CLASSIFICATION_MACRO(1, KEY_TYPE_IS_VENDOR_DEFINED, type, flags);
164 TEST_CLASSIFICATION_MACRO(1, KEY_TYPE_IS_UNSTRUCTURED, type, flags);
165 TEST_CLASSIFICATION_MACRO(1, KEY_TYPE_IS_PUBLIC_KEY, type, flags);
166 TEST_CLASSIFICATION_MACRO(1, KEY_TYPE_IS_KEY_PAIR, type, flags);
167 TEST_CLASSIFICATION_MACRO(1, KEY_TYPE_IS_RSA, type, flags);
168 TEST_CLASSIFICATION_MACRO(1, KEY_TYPE_IS_DSA, type, flags);
169 TEST_CLASSIFICATION_MACRO(1, KEY_TYPE_IS_ECC, type, flags);
[all …]
/openthread-latest/third_party/mbedtls/repo/include/psa/
Dcrypto_values.h379 #define PSA_KEY_TYPE_IS_VENDOR_DEFINED(type) \ argument
380 (((type) & PSA_KEY_TYPE_VENDOR_FLAG) != 0)
386 #define PSA_KEY_TYPE_IS_UNSTRUCTURED(type) \ argument
387 (((type) & PSA_KEY_TYPE_CATEGORY_MASK) == PSA_KEY_TYPE_CATEGORY_RAW || \
388 ((type) & PSA_KEY_TYPE_CATEGORY_MASK) == PSA_KEY_TYPE_CATEGORY_SYMMETRIC)
391 #define PSA_KEY_TYPE_IS_ASYMMETRIC(type) \ argument
392 (((type) & PSA_KEY_TYPE_CATEGORY_MASK \
396 #define PSA_KEY_TYPE_IS_PUBLIC_KEY(type) \ argument
397 (((type) & PSA_KEY_TYPE_CATEGORY_MASK) == PSA_KEY_TYPE_CATEGORY_PUBLIC_KEY)
400 #define PSA_KEY_TYPE_IS_KEY_PAIR(type) \ argument
[all …]
/openthread-latest/tools/tcat_ble_client/tlv/
Dtlv.py35 def __init__(self, type: int = None, value: bytes = None):
36 self.type: int = type
59 self.type = data[0]
72 type = self.type
74 type = type << 8 | 255
75 header = type.to_bytes(header_len // 2, byteorder='big') + len_bytes
Dadvertised_tlv.py38 def __init__(self, type: int = None, size: int = None, value: bytes = None):
39 self._type: int = type
83 type = (data[0] & 0xf0) >> 4
87 if type == AdvertisedTlv.DEVICE_TYPE_STATUS_TLV:
88 res = DeviceTypeStatusTlv(type, size, value)
89 elif type == AdvertisedTlv.CAPABILITIES_TLV:
90 res = CapabilitiesTlv(type, size, value)
92 res = AdvertisedTlv(type, size, value)
/openthread-latest/src/cli/
DREADME_COAP.md50 - [delete](#delete-address-uri-path-type-payload)
51 - [get](#get-address-uri-path-type)
52 - [observe](#observe-address-uri-path-type)
54 - [post](#post-address-uri-path-type-payload)
55 - [put](#put-address-uri-path-type-payload)
93 ### delete \<address\> \<uri-path\> \[type\] \[payload\]
97 - type: "con" for Confirmable or "non-con" for Non-confirmable (default).
105 ### get \<address\> \<uri-path\> \[type\]
109 - type: "con" for Confirmable or "non-con" for Non-confirmable (default). Use "block-<block-size>" …
121 ### observe \<address\> \<uri-path\> \[type\]
[all …]
/openthread-latest/third_party/mbedtls/repo/tests/scripts/
Dgenerate_server9_bad_saltlen.py34 parser.add_argument('--ca-name', type=str, required=True,
36 parser.add_argument('--ca-password', type=str,
38 parser.add_argument('--csr', type=str, required=True,
40 parser.add_argument('--openssl-extfile', type=str,
42 parser.add_argument('--anounce_saltlen', type=auto_int,
44 parser.add_argument('--actual_saltlen', type=auto_int,
46 parser.add_argument('--output', type=str, required=True)
/openthread-latest/src/core/radio/
Dtrel_packet.cpp76 Type type = GetType(); in ToString() local
79 switch (type) in ToString()
97 if ((type == kTypeUnicast) || (type == kTypeAck)) in ToString()
102 if ((type == kTypeUnicast) || (type == kTypeBroadcast)) in ToString()
/openthread-latest/tests/scripts/expect/
D_common.exp66 proc spawn_node {id {type ""} {radio_url ""}} {
71 if {${type} == ""} {
73 set type $::env(OT_NODE_TYPE)
75 set type "cli"
95 send_user "\n# ${id} ${type}\n"
110 switch -regexp ${type} {
191 proc get_ipaddr {type} { argument
192 send "ipaddr $type\n"
193 expect "ipaddr $type"
/openthread-latest/third_party/tcplp/bsdtcp/cc/
Dcc_newreno.c63 static void newreno_ack_received(struct cc_var *ccv, uint16_t type);
65 static void newreno_cong_signal(struct cc_var *ccv, uint32_t type);
90 newreno_ack_received(struct cc_var *ccv, uint16_t type) in newreno_ack_received() argument
92 if (type == CC_ACK && !IN_RECOVERY(CCV(ccv, t_flags)) && in newreno_ack_received()
187 newreno_cong_signal(struct cc_var *ccv, uint32_t type) in newreno_cong_signal() argument
192 KASSERT((type & CC_SIGPRIVMASK) == 0, in newreno_cong_signal()
193 ("%s: congestion signal type 0x%08x is private", __func__, (unsigned int) type)); in newreno_cong_signal()
198 switch (type) { in newreno_cong_signal()

12345678910>>...13