Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 32) sorted by relevance

12

/openthread-2.7.6/third_party/mbedtls/repo/library/
Dpsa_crypto_core.h125 uint16_t mask ) in psa_key_slot_get_flags() argument
127 return( slot->attr.flags & mask ); in psa_key_slot_get_flags()
137 uint16_t mask, in psa_key_slot_set_flags() argument
140 slot->attr.flags = ( ( ~mask & slot->attr.flags ) | in psa_key_slot_set_flags()
141 ( mask & value ) ); in psa_key_slot_set_flags()
150 uint16_t mask ) in psa_key_slot_set_bits_in_flags() argument
152 slot->attr.flags |= mask; in psa_key_slot_set_bits_in_flags()
161 uint16_t mask ) in psa_key_slot_clear_bits() argument
163 slot->attr.flags &= ~mask; in psa_key_slot_clear_bits()
Dpoly1305.c215 uint32_t mask; in poly1305_compute_mac() local
241 mask = (uint32_t) 0U - ( g4 >> 2U ); in poly1305_compute_mac()
242 mask_inv = ~mask; in poly1305_compute_mac()
245 acc0 = ( acc0 & mask_inv ) | ( g0 & mask ); in poly1305_compute_mac()
246 acc1 = ( acc1 & mask_inv ) | ( g1 & mask ); in poly1305_compute_mac()
247 acc2 = ( acc2 & mask_inv ) | ( g2 & mask ); in poly1305_compute_mac()
248 acc3 = ( acc3 & mask_inv ) | ( g3 & mask ); in poly1305_compute_mac()
Dssl_msg.c1093 const size_t mask = mbedtls_ssl_cf_mask_from_bit( sub1 ); in mbedtls_ssl_cf_mask_lt() local
1095 return( mask ); in mbedtls_ssl_cf_mask_lt()
1166 const unsigned char mask = (unsigned char) mbedtls_ssl_cf_mask_from_bit( equal ); in mbedtls_ssl_cf_memcpy_if_eq() local
1170 dst[i] = ( src[i] & mask ) | ( dst[i] & ~mask ); in mbedtls_ssl_cf_memcpy_if_eq()
1616 const size_t mask = mbedtls_ssl_cf_mask_ge( in mbedtls_ssl_decrypt_buf() local
1619 correct &= mask; in mbedtls_ssl_decrypt_buf()
1620 padlen &= mask; in mbedtls_ssl_decrypt_buf()
1634 const size_t mask = mbedtls_ssl_cf_mask_ge( in mbedtls_ssl_decrypt_buf() local
1637 correct &= mask; in mbedtls_ssl_decrypt_buf()
1638 padlen &= mask; in mbedtls_ssl_decrypt_buf()
[all …]
Dcmac.c84 unsigned char R_n, mask; in cmac_multiply_by_u() local
116 mask = - ( input[0] >> 7 ); in cmac_multiply_by_u()
121 output[ blocksize - 1 ] ^= R_n & mask; in cmac_multiply_by_u()
Decp_curves.c1368 size_t adjust, size_t shift, mbedtls_mpi_uint mask ) in ecp_mod_koblitz() argument
1398 if( mask != 0 ) in ecp_mod_koblitz()
1399 N->p[p_limbs - 1] &= mask; in ecp_mod_koblitz()
1420 if( mask != 0 ) in ecp_mod_koblitz()
1421 N->p[p_limbs - 1] &= mask; in ecp_mod_koblitz()
Drsa.c1098 unsigned char mask[MBEDTLS_MD_MAX_SIZE]; in mgf_mask() local
1105 memset( mask, 0, MBEDTLS_MD_MAX_SIZE ); in mgf_mask()
1125 if( ( ret = mbedtls_md_finish( md_ctx, mask ) ) != 0 ) in mgf_mask()
1129 *p++ ^= mask[i]; in mgf_mask()
1137 mbedtls_platform_zeroize( mask, sizeof( mask ) ); in mgf_mask()
1535 unsigned mask = all_or_nothing_int( cond ); in if_int() local
1536 return( ( mask & if1 ) | (~mask & if0 ) ); in if_int()
/openthread-2.7.6/src/core/meshcop/
Dmeshcop.cpp114 uint64_t mask; in Matches() local
118 mask = GetMask(); in Matches()
120 return (Encoding::BigEndian::ReadUint64(aJoinerId.m8) & mask) == (mValue & mask); in Matches()
148 uint8_t mask = static_cast<uint8_t>((1U << remaining) - 1); in CopyTo() local
153 *cur &= ~mask; in CopyTo()
154 *cur |= static_cast<uint8_t>(value & mask); in CopyTo()
160 uint64_t mask = GetMask(); in operator ==() local
162 return IsValid() && (mLength == aOther.mLength) && ((mValue & mask) == (aOther.mValue & mask)); in operator ==()
Dmeshcop_tlvs.cpp320 uint32_t mask = 0; in GetChannelMask() local
335mask |= static_cast<const ChannelMaskEntry *>(cur)->GetMask() & OT_RADIO_915MHZ_OQPSK_CHANNEL_MASK; in GetChannelMask()
342mask |= static_cast<const ChannelMaskEntry *>(cur)->GetMask() & OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MASK; in GetChannelMask()
349 mask |= static_cast<const ChannelMaskEntry *>(cur)->GetMask() & in GetChannelMask()
358 return mask; in GetChannelMask()
363 uint32_t mask = 0; in GetChannelMask() local
382 mask |= entry.GetMask() & OT_RADIO_2P4GHZ_OQPSK_CHANNEL_MASK; in GetChannelMask()
389 mask |= entry.GetMask() & OT_RADIO_915MHZ_OQPSK_CHANNEL_MASK; in GetChannelMask()
396 mask |= entry.GetMask() & OPENTHREAD_CONFIG_PLATFORM_RADIO_PROPRIETARY_CHANNEL_MASK; in GetChannelMask()
404 return mask; in GetChannelMask()
Dpanid_query_client.cpp111 uint32_t mask; in HandleConflict() local
119 VerifyOrExit((mask = MeshCoP::ChannelMaskTlv::GetChannelMask(aMessage)) != 0); in HandleConflict()
123 mCallback(panId, mask, mContext); in HandleConflict()
Denergy_scan_client.cpp114 uint32_t mask; in HandleReport() local
127 VerifyOrExit((mask = MeshCoP::ChannelMaskTlv::GetChannelMask(aMessage)) != 0); in HandleReport()
134 mCallback(mask, energyList.list, energyList.tlv.GetLength(), mContext); in HandleReport()
Dmeshcop_tlvs.hpp1283 uint8_t *mask = reinterpret_cast<uint8_t *>(this) + sizeof(*this); in ClearChannel() local
1284 mask[aChannel / 8] &= ~(0x80 >> (aChannel % 8)); in ClearChannel()
1295 uint8_t *mask = reinterpret_cast<uint8_t *>(this) + sizeof(*this); in SetChannel() local
1296 mask[aChannel / 8] |= 0x80 >> (aChannel % 8); in SetChannel()
1307 const uint8_t *mask = reinterpret_cast<const uint8_t *>(this) + sizeof(*this); in IsChannelSet() local
1308 …return (aChannel < (mMaskLength * 8)) ? ((mask[aChannel / 8] & (0x80 >> (aChannel % 8))) != 0) : f… in IsChannelSet()
Ddataset.cpp203 uint32_t mask = static_cast<const ChannelMaskTlv *>(cur)->GetChannelMask(); in ConvertTo() local
205 if (mask != 0) in ConvertTo()
207 aDatasetInfo.SetChannelMask(mask); in ConvertTo()
Ddataset_manager.cpp253 uint32_t mask; in GetChannelMask() local
260 VerifyOrExit((mask = channelMaskTlv->GetChannelMask()) != 0); in GetChannelMask()
262 aChannelMask.SetMask(mask & Get<Mac::Mac>().GetSupportedChannelMask().GetMask()); in GetChannelMask()
/openthread-2.7.6/src/cli/
Dcli_commissioner.cpp60 uint32_t mask; in ProcessAnnounce() local
65 SuccessOrExit(error = aArgs[0].ParseAsUint32(mask)); in ProcessAnnounce()
70 error = otCommissionerAnnounceBegin(mInterpreter.mInstance, mask, count, period, &address); in ProcessAnnounce()
79 uint32_t mask; in ProcessEnergy() local
85 SuccessOrExit(error = aArgs[0].ParseAsUint32(mask)); in ProcessEnergy()
91 …error = otCommissionerEnergyScan(mInterpreter.mInstance, mask, count, period, scanDuration, &addre… in ProcessEnergy()
280 uint32_t mask; in ProcessPanId() local
284 SuccessOrExit(error = aArgs[1].ParseAsUint32(mask)); in ProcessPanId()
287 …error = otCommissionerPanIdQuery(mInterpreter.mInstance, panId, mask, &address, &Commissioner::Han… in ProcessPanId()
DREADME_COMMISSIONER.md49 Usage: `commissioner announce <mask> <count> <period> <destination>`
53 - mask: Bitmask identifying channels to send MLE Announce messages.
65 Usage: `commissioner energy <mask> <count> <period> <scanDuration> <destination>`
69 - mask: Bitmask identifying channels to perform IEEE 802.15.4 ED Scans.
147 Usage: `commissioner panid <panid> <mask> <destination>`
152 - mask: Bitmask identifying channels to perform IEEE 802.15.4 Active Scans.
DREADME_DATASET.md237 Get channel mask.
245 Set channel mask.
DREADME.md515 ### channel manager supported \<mask\>
517 Set the supported channel mask for the auto-channel-selection.
527 ### channel manager favored \<mask\>
529 Set the favored channel mask for the auto-channel-selection.
600 Get preferred channel mask.
610 Get supported channel mask.
/openthread-2.7.6/src/core/thread/
Dannounce_begin_server.cpp73 uint32_t mask; in HandleRequest() local
79 VerifyOrExit((mask = MeshCoP::ChannelMaskTlv::GetChannelMask(aMessage)) != 0); in HandleRequest()
84 SendAnnounce(mask, count, period); in HandleRequest()
Dpanid_query_server.cpp69 uint32_t mask; in HandleQuery() local
72 VerifyOrExit((mask = MeshCoP::ChannelMaskTlv::GetChannelMask(aMessage)) != 0); in HandleQuery()
76 mChannelMask = mask; in HandleQuery()
Denergy_scan_server.cpp76 uint32_t mask; in HandleRequest() local
84 VerifyOrExit((mask = MeshCoP::ChannelMaskTlv::GetChannelMask(aMessage)) != 0); in HandleRequest()
86 mChannelMask = mask; in HandleRequest()
/openthread-2.7.6/tests/unit/
Dtest_ip_address.cpp209 uint8_t mask = (0x80 >> (bit % CHAR_BIT)); in CheckPrefix() local
211 if ((aAddress.mFields.m8[index] & mask) != (aPrefix[index] & mask)) in CheckPrefix()
230 uint8_t mask = (0x80 >> (bit % CHAR_BIT)); in CheckInterfaceId() local
232 if ((aAddress1.mFields.m8[index] & mask) != (aAddress2.mFields.m8[index] & mask)) in CheckInterfaceId()
339 uint8_t mask = static_cast<uint8_t>(1U << (7 - (bitNumber & 7))); in TestIp6Prefix() local
348 prefix2.mPrefix.mFields.m8[index] ^= mask; in TestIp6Prefix()
351 isPrefixSmaller = ((prefix.GetBytes()[index] & mask) == 0); in TestIp6Prefix()
/openthread-2.7.6/src/core/net/
Dip6_address.cpp395 uint8_t mask = ((0x80 >> (extraBits - 1)) - 1); in SetPrefix() local
401 mFields.m8[index] &= mask; in SetPrefix()
402 mFields.m8[index] |= (aPrefix[index] & ~mask); in SetPrefix()
/openthread-2.7.6/third_party/mbedtls/repo/3rdparty/everest/library/legacy/
DHacl_Curve25519.c561 uint64_t mask = (((mask0 & mask1) & mask2) & mask3) & mask4; in Hacl_EC_Format_fcontract_trim() local
562 uint64_t a0_ = a0 - ((uint64_t)0x7ffffffffffedU & mask); in Hacl_EC_Format_fcontract_trim()
563 uint64_t a1_ = a1 - ((uint64_t)0x7ffffffffffffU & mask); in Hacl_EC_Format_fcontract_trim()
564 uint64_t a2_ = a2 - ((uint64_t)0x7ffffffffffffU & mask); in Hacl_EC_Format_fcontract_trim()
565 uint64_t a3_ = a3 - ((uint64_t)0x7ffffffffffffU & mask); in Hacl_EC_Format_fcontract_trim()
566 uint64_t a4_ = a4 - ((uint64_t)0x7ffffffffffffU & mask); in Hacl_EC_Format_fcontract_trim()
/openthread-2.7.6/third_party/mbedtls/repo/3rdparty/everest/library/
DHacl_Curve25519.c516 uint64_t mask = (((mask0 & mask1) & mask2) & mask3) & mask4; in Hacl_EC_Format_fcontract_trim() local
517 uint64_t a0_ = a0 - ((uint64_t)0x7ffffffffffedU & mask); in Hacl_EC_Format_fcontract_trim()
518 uint64_t a1_ = a1 - ((uint64_t)0x7ffffffffffffU & mask); in Hacl_EC_Format_fcontract_trim()
519 uint64_t a2_ = a2 - ((uint64_t)0x7ffffffffffffU & mask); in Hacl_EC_Format_fcontract_trim()
520 uint64_t a3_ = a3 - ((uint64_t)0x7ffffffffffffU & mask); in Hacl_EC_Format_fcontract_trim()
521 uint64_t a4_ = a4 - ((uint64_t)0x7ffffffffffffU & mask); in Hacl_EC_Format_fcontract_trim()
/openthread-2.7.6/tests/scripts/thread-cert/
Dnode.py1804 def energy_scan(self, mask, count, period, scan_duration, ipaddr): argument
1806 mask,
1822 def panid_query(self, panid, mask, ipaddr): argument
1823 cmd = 'commissioner panid %d %d %s' % (panid, mask, ipaddr)
1986 def announce_begin(self, mask, count, period, ipaddr): argument
1988 mask,

12