Home
last modified time | relevance | path

Searched full:a (Results 1 – 25 of 2023) sorted by relevance

12345678910>>...81

/openthread-2.7.6/third_party/mbedtls/repo/3rdparty/everest/library/kremlib/
DFStar_UInt128_extracted.c25 static uint64_t FStar_UInt128_constant_time_carry(uint64_t a, uint64_t b) in FStar_UInt128_constant_time_carry() argument
27 return (a ^ ((a ^ b) | ((a - b) ^ b))) >> (uint32_t)63U; in FStar_UInt128_constant_time_carry()
30 static uint64_t FStar_UInt128_carry(uint64_t a, uint64_t b) in FStar_UInt128_carry() argument
32 return FStar_UInt128_constant_time_carry(a, b); in FStar_UInt128_carry()
35 FStar_UInt128_uint128 FStar_UInt128_add(FStar_UInt128_uint128 a, FStar_UInt128_uint128 b) in FStar_UInt128_add() argument
38 flat = { a.low + b.low, a.high + b.high + FStar_UInt128_carry(a.low + b.low, b.low) }; in FStar_UInt128_add()
43 FStar_UInt128_add_underspec(FStar_UInt128_uint128 a, FStar_UInt128_uint128 b) in FStar_UInt128_add_underspec() argument
46 flat = { a.low + b.low, a.high + b.high + FStar_UInt128_carry(a.low + b.low, b.low) }; in FStar_UInt128_add_underspec()
50 FStar_UInt128_uint128 FStar_UInt128_add_mod(FStar_UInt128_uint128 a, FStar_UInt128_uint128 b) in FStar_UInt128_add_mod() argument
53 flat = { a.low + b.low, a.high + b.high + FStar_UInt128_carry(a.low + b.low, b.low) }; in FStar_UInt128_add_mod()
[all …]
/openthread-2.7.6/third_party/mbedtls/repo/library/
Dsha256.c9 * You may obtain a copy of the License at
188 #define P(a,b,c,d,e,f,g,h,x,K) \ argument
192 local.temp2 = S2(a) + F0((a),(b),(c)); \
202 uint32_t A[8]; in mbedtls_internal_sha256_process() member
211 local.A[i] = ctx->state[i]; in mbedtls_internal_sha256_process()
221 P( local.A[0], local.A[1], local.A[2], local.A[3], local.A[4], in mbedtls_internal_sha256_process()
222 local.A[5], local.A[6], local.A[7], local.W[i], K[i] ); in mbedtls_internal_sha256_process()
224 local.temp1 = local.A[7]; local.A[7] = local.A[6]; in mbedtls_internal_sha256_process()
225 local.A[6] = local.A[5]; local.A[5] = local.A[4]; in mbedtls_internal_sha256_process()
226 local.A[4] = local.A[3]; local.A[3] = local.A[2]; in mbedtls_internal_sha256_process()
[all …]
Dpsa_crypto_se.h10 * You may obtain a copy of the License at
34 * for a secure element.
36 * This is not a characteristic that each PSA implementation has, but a
40 * The minimum location value for a secure element is 1, like on any
41 * PSA implementation (0 means a transparent key).
48 * We use a slice of the implementation reserved range 0xffff0000..0xffffffff,
52 * which doesn't have a driver.
73 /** A structure that describes a registered secure element driver.
75 * A secure element driver table entry contains a pointer to the
80 /** Return the secure element driver information for a lifetime value.
[all …]
/openthread-2.7.6/third_party/mbedtls/repo/docs/proposed/
Dpsa-driver-interface.md4 …/#application-programming-interface), which describes the interface between a PSA Cryptography imp…
6 This specification is work in progress and should be considered to be in a beta stage. There is ong…
14 …n interface that allows applications to perform cryptographic operations in a uniform way regardle…
16 …mpositionally. An implementation of the PSA Cryptography API is composed of a **core** and zero or…
24a transparent driver is available for a particular combination of parameters (cryptographic algori…
25 …hat can only be used inside a protected environment such as a **secure element**, a hardware secur…
33 …the code of each driver and of the core separately, and link them together. A small amount of glue…
35 …that operate on keys in cleartext; cryptoprocessors that can wrap keys with a built-in keys but no…
37 … with platform-specific hardware happen only inside the driver (and in fact a driver need not invo…
41 …erator drivers can specify that they do not fully support a cryptographic mechanism and that a fal…
[all …]
/openthread-2.7.6/third_party/mbedtls/repo/programs/
DREADME.md4 …ample programs that illustrate specific features of the library, as well as a few test and support…
8 …pt2.c`](aes/aescrypt2.c): file encryption and authentication with a key derived from a low-entropy…
9a secure encryption mechanism. To derive a key from a low-entropy secret such as a password, use a
23 …ey.c`](pkey/gen_key.c): generates a key for any of the supported public-key algorithms (RSA or ECC…
25 * [`pkey/key_app.c`](pkey/key_app.c): loads a PEM or DER public key or private key file and dumps i…
27 …app_writer.c`](pkey/key_app_writer.c): loads a PEM or DER public key or private key file and write…
29 …_decrypt.c`](pkey/pk_decrypt.c): loads a PEM or DER public/private key file and uses the key to en…
31 …y/pk_verify.c`](pkey/pk_verify.c): loads a PEM or DER private/public key file and uses the key to …
35 * [`pkey/ecdsa.c`](pkey/ecdsa.c): generates an ECDSA key, signs a fixed message and verifies the si…
37 …_decrypt.c): loads an RSA public/private key and uses it to encrypt/decrypt a short string through…
[all …]
/openthread-2.7.6/include/openthread/
Dudp.h18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
66 * This structure represents a UDP receiver.
71 struct otUdpReceiver *mNext; ///< A pointer to the next UDP receiver (internal use only).
72 otUdpHandler mHandler; ///< A function pointer to the receiver callback.
73 void * mContext; ///< A pointer to application-specific context.
77 * This function adds a UDP receiver.
79 * @param[in] aInstance A pointer to an OpenThread instance.
80 * @param[in] aUdpReceiver A pointer to the UDP receiver.
89 * This function removes a UDP receiver.
91 * @param[in] aInstance A pointer to an OpenThread instance.
[all …]
Dcoap.h18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
154 * This structure represents a CoAP option.
332 * This function pointer is called when a CoAP response is received or on the request timeout.
334 * @param[in] aContext A pointer to application-specific context.
335 …* @param[in] aMessage A pointer to the message buffer containing the response. NULL if no re…
336 …* @param[in] aMessageInfo A pointer to the message info for @p aMessage. NULL if no response was…
337 * @param[in] aResult A result of the CoAP transaction.
339 * @retval OT_ERROR_NONE A response was received successfully.
340 * @retval OT_ERROR_ABORT A CoAP transaction was reset by peer.
350 * This function pointer is called when a CoAP request with a given Uri-Path is received.
[all …]
Dcoap_secure.h18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
73 * @param[in] aConnected true, if a connection was established, false otherwise.
74 * @param[in] aContext A pointer to arbitrary context information.
82 * @param[in] aInstance A pointer to an OpenThread instance.
93 * @param[in] aInstance A pointer to an OpenThread instance.
104 * @param[in] aInstance A pointer to an OpenThread instance.
105 * @param[in] aPsk A pointer to the PSK.
123 * @param[in] aInstance A pointer to an OpenThread instance.
124 * @param[out] aPeerCert A pointer to the base64 encoded certificate buffer.
144 * @param[in] aInstance A pointer to an OpenThread instance.
[all …]
Dthread.h18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
64 * Represents a Thread device role.
70 OT_DEVICE_ROLE_DETACHED = 1, ///< Not currently participating in a Thread network/partition.
87 * This structure holds diagnostic information for a neighboring Thread node
105 bool mIsChild : 1; ///< Is the neighbor a child
126 * This structure holds diagnostic information for a Thread Router
168 … uint16_t mBetterPartitionAttachAttempts; ///< Number of attempts to attach to a better partition.
176 …* A parent change can happen if device detaches from its current parent and attaches to a differen…
205 * @param[in] aInstance A pointer to an OpenThread instance.
223 * This function indicates whether a node is the only router on the network.
[all …]
Dcommissioner.h18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
65 OT_COMMISSIONER_STATE_PETITION = 1, ///< Currently petitioning to become a Commissioner.
70 * This enumeration defines a Joiner Event on the Commissioner.
100 * This structure represents a Commissioning Dataset.
116 #define OT_JOINER_MAX_PSKD_LENGTH 32 ///< Maximum string length of a Joiner PSKd (does not include …
119 * This structure represents a Joiner PSKd.
128 * This enumeration defines a Joiner Info Typer.
139 * This structure represents a Joiner Info.
158 * @param[in] aEnergyList A pointer to the energy measurement list.
160 * @param[in] aContext A pointer to application-specific context.
[all …]
Dip6.h18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
187 …struct otNetifAddress *mNext; ///< A pointer to the next network interface addre…
197 …const struct otNetifMulticastAddress *mNext; ///< A pointer to the next network interface multi…
207 uint16_t mPort; ///< A transport-layer port.
232 const void * mLinkInfo; ///< A pointer to link-specific information.
264 * @param[in] aInstance A pointer to an OpenThread instance.
277 * @param[in] aInstance A pointer to an OpenThread instance.
286 * Add a Network Interface Address to the Thread interface.
289 …* supports a fixed number of externally added unicast addresses. See OPENTHREAD_CONFIG_IP6_MAX_EXT…
291 * @param[in] aInstance A pointer to an OpenThread instance.
[all …]
Dsrp_client_buffers.h18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
58 * This struct represents a SRP client service pool entry.
70 * @param[in] aInstance A pointer to the OpenThread instance.
71 …* @param[out] aSize Pointer to a variable to return the size (number of bytes) of the string …
74 * @returns A pointer to char buffer to use for SRP client host name.
82 * @param[in] aInstance A pointer to the OpenThread instance.
83 …* @param[out] aArrayLength Pointer to a variable to return the array length i.e., number of IPv6 …
86 …* @returns A pointer to an array of `otIp6Address` entries (number of entries is returned in @p aA…
92 * This function allocates a new service entry from the pool.
110 * @param[in] aInstance A pointer to the OpenThread instance.
[all …]
/openthread-2.7.6/tests/scripts/thread-cert/pktverify/
Daddrs.py19 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
96 a = ipaddress.IPv6Address(addr)
97 return a.exploded
152 a = EthAddr("010203040506") variable
153 assert a == EthAddr("01:02:03:04:05:06")
154 assert a == EthAddr("0102:0304:0506")
155 assert eval(repr(a)) == a
156 assert a == str(a)
157 assert str(a) == a
159 print(a, repr(a))
[all …]
/openthread-2.7.6/third_party/mbedtls/repo/include/psa/
Dcrypto_se_driver.h7 * This is meant for cryptoprocessors that have a separate key storage from the
13 * to be called in a standardized way by a PSA Cryptography API
24 * You may obtain a copy of the License at
49 * Driver functions receive a pointer to this structure.
56 /** A read-only pointer to the driver's persistent data.
59 * which slot numbers are available. This is only a guideline:
63 * certain functions that receive a writable pointer to the
66 * The core allocates a memory buffer for the persistent data.
68 * like a pointer returned by `malloc` (but the core can use any
75 * the persistent data is all-bits-zero. After a driver upgrade, if the
[all …]
Dcrypto_values.h23 * You may obtain a copy of the License at
53 /** The requested operation or a parameter is not supported
57 * parameter such as a key type, algorithm, etc. is not recognized.
58 * If a combination of parameters is recognized and identified as
62 /** The requested action is denied by a policy.
65 * are recognized as valid and supported, and a policy explicitly
68 * If a subset of the parameters of a function call identify a
78 * description to determine a sufficient buffer size.
81 * in cases when performing the operation with a larger output
83 * error if a function has invalid or unsupported parameters in addition
[all …]
/openthread-2.7.6/src/core/common/
Dlogging.hpp18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
102 // When adding a new log region, please ensure to update the array
229 * This function generates a log with level critical for the API region.
238 * This function generates a log with level warning for the API region.
247 * This function generates a log with level note for the API region.
256 * This function generates a log with level info for the API region.
265 * This function generates a log with level debug for the API region.
287 * This function generates a log with level critical for the MeshCoP region.
297 * This function generates a log with level warning for the MeshCoP region.
306 * This function generates a log with level note for the MeshCoP region.
[all …]
/openthread-2.7.6/src/core/thread/
Dneighbor_table.hpp18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
53 …* This function pointer is called to notify that a child or router neighbor is being added to or r…
63 …* This type represents a neighbor table entry info (child or router) and is used as a parameter in…
70 …ation defines the constants used in `NeighborTable::Callback` to indicate whether a child or router
76 kChildAdded = OT_NEIGHBOR_TABLE_EVENT_CHILD_ADDED, ///< A child is being added.
77 … kChildRemoved = OT_NEIGHBOR_TABLE_EVENT_CHILD_REMOVED, ///< A child is being removed.
79 … kRouterAdded = OT_NEIGHBOR_TABLE_EVENT_ROUTER_ADDED, ///< A router is being added.
80 … kRouterRemoved = OT_NEIGHBOR_TABLE_EVENT_ROUTER_REMOVED, ///< A router is being removed.
86 * @param[in] aInstance A reference to the OpenThread instance.
92 …is method searches among parent and parent candidate to find a `Neighbor` corresponding to a given…
[all …]
Dnetwork_data.hpp18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
95 …* This type represents a Iterator used to iterate through Network Data info (e.g., see `GetNextOnM…
127 * @param[in] aInstance A reference to the OpenThread instance.
140 * This method provides a full or stable copy of the Thread Network Data.
143 * @param[out] aData A pointer to the data buffer.
156 * @param[inout] aIterator A reference to the Network Data iterator.
157 …* @param[out] aConfig A reference to a config variable where the On Mesh Prefix information …
166 * This method provides the next On Mesh prefix in the Thread Network Data for a given RLOC16.
168 * @param[inout] aIterator A reference to the Network Data iterator.
170 …* @param[out] aConfig A reference to a config variable where the On Mesh Prefix information …
[all …]
Dchild_table.hpp18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
71 * @param[in] aInstance A reference to the OpenThread instance.
72 * @param[in] aFilter A child state filter.
86 … * @returns A pointer to the `Child` entry, or `nullptr` if the iterator is done and/or empty.
104 * This constructor initializes a `ChildTable` instance.
106 * @param[in] aInstance A reference to the OpenThread instance.
118 * This method returns the child table index for a given `Child` instance.
120 * @param[in] aChild A reference to a `Child`
128 …* This method returns a pointer to a `Child` entry at a given index, or `nullptr` if the index is …
131 * @param[in] aChildIndex A child index.
[all …]
/openthread-2.7.6/third_party/mbedtls/repo/include/mbedtls/
Dsha1.h9 * \warning SHA-1 is considered a weak message digest and its use constitutes
10 * a security risk. We recommend considering stronger message
19 * You may obtain a copy of the License at
56 * \warning SHA-1 is considered a weak message digest and its use
57 * constitutes a security risk. We recommend considering
74 * \brief This function initializes a SHA-1 context.
76 * \warning SHA-1 is considered a weak message digest and its use
77 * constitutes a security risk. We recommend considering
87 * \brief This function clears a SHA-1 context.
89 * \warning SHA-1 is considered a weak message digest and its use
[all …]
/openthread-2.7.6/third_party/mbedtls/repo/
DCONTRIBUTING.md6 …ss there is a real justification for that. If there is an API change, the contribution, if accepte…
11 - The code should be written in a clean and readable style.
12 - The code should be written in a portable generic way, that will benefit the whole community, and …
13 - The code should be secure, and will be reviewed from a security point of view as well.
15 Making a Contribution
17 …mbedtls/issues) or [start a discussion](https://lists.trustedfirmware.org/mailman/listinfo/mbed-tl…
18 …g your changes. As a general rule, you should use the ["development" branch](https://github.com/AR…
19 1. Write a test which shows that the bug was fixed or that the feature works as expected.
20 1. Send a pull request (PR) and work with us until it gets merged and published. Contributions may …
21 1. For quick merging, the contribution should be short, and concentrated on a single feature or top…
[all …]
/openthread-2.7.6/src/core/coap/
Dcoap.hpp18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
64 …* This type represents a function pointer which is called when a CoAP response is received or on t…
72 …* This type represents a function pointer which is called when a CoAP request associated with a gi…
91 * This static method coverts a pointer to `otCoapTxParameters` to `Coap::TxParamters`
95 * @param[in] aTxParameters A pointer to tx parameter.
97 …* @returns A reference to corresponding `TxParamters` if @p aTxParameters is not nullptr, otherwi…
149 * @param[in] aUriPath A pointer to a null-terminated string for the URI path.
150 …* @param[in] aHandler A function pointer that is called when receiving a CoAP message for @p aUr…
151 * @param[in] aContext A pointer to arbitrary context information.
162 * This method returns a pointer to the URI path.
[all …]
Dcoap_secure.hpp18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
57 * @param[in] aConnected TRUE if a connection was established, FALSE otherwise.
58 * @param[in] aContext A pointer to arbitrary context information.
66 * @param[in] aInstance A reference to the OpenThread instance.
86 * @param[in] aCallback A pointer to a function for sending messages.
87 * @param[in] aContext A pointer to arbitrary context information.
98 * @param[in] aCallback A pointer to a function to get called when connection state changes.
99 * @param[in] aContext A pointer to arbitrary context information.
115 * This method initializes DTLS session with a peer.
117 * @param[in] aSockAddr A reference to the remote socket address,
[all …]
/openthread-2.7.6/third_party/mbedtls/repo/docs/architecture/testing/
Ddriver-interface-test-strategy.md11a driver usable by Mbed Crypto, the initialization code must call `psa_register_se_driver` with a
15 …the secure element driver interface. Note that a test case may cover multiple requirements; for ex…
17 …rface unit tests could be covered by running the existing API tests with a key in a secure element.
22 * Make at least one failing call to `psa_register_se_driver` followed by a successful call.
27 For each API function that can lead to a driver call (more precisely, for each driver method call s…
29 * Make at least one test with a key in a secure element that checks that the driver method is calle…
30 * Make at least one test with a key that is not in a secure element that checks that the driver met…
31 * Make at least one test with a key in a secure element with a driver that does not have the requis…
32 * Make at least one test with a key in a secure element with a driver that does not have the substr…
33 …e drivers with a key in each driver and check that the expected driver is called. This does not ne…
[all …]
/openthread-2.7.6/third_party/mbedtls/repo/tests/suites/
Dtest_suite_ccm.data183 CCM encrypt and tag NIST VTT AES-128 #1 (P=24, N=13, A=32, T=4)
187 CCM encrypt and tag NIST VTT AES-128 #2 (P=24, N=13, A=32, T=6)
191 CCM encrypt and tag NIST VTT AES-128 #3 (P=24, N=13, A=32, T=8)
195 CCM encrypt and tag NIST VTT AES-128 #4 (P=24, N=13, A=32, T=10)
199 CCM encrypt and tag NIST VTT AES-128 #5 (P=24, N=13, A=32, T=12)
203 CCM encrypt and tag NIST VTT AES-128 #6 (P=24, N=13, A=32, T=14)
207 CCM encrypt and tag NIST VTT AES-128 #7 (P=24, N=13, A=32, T=16)
211 CCM encrypt and tag NIST VTT AES-192 #1 (P=24, N=13, A=32, T=4)
215 CCM encrypt and tag NIST VTT AES-192 #2 (P=24, N=13, A=32, T=6)
219 CCM encrypt and tag NIST VTT AES-192 #3 (P=24, N=13, A=32, T=8)
[all …]

12345678910>>...81