Home
last modified time | relevance | path

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

/mbedtls-development/library/
A Dpsa_crypto_core.h131 uint16_t mask ) in psa_key_slot_get_flags() argument
133 return( slot->attr.flags & mask ); in psa_key_slot_get_flags()
143 uint16_t mask, in psa_key_slot_set_flags() argument
146 slot->attr.flags = ( ( ~mask & slot->attr.flags ) | in psa_key_slot_set_flags()
147 ( mask & value ) ); in psa_key_slot_set_flags()
156 uint16_t mask ) in psa_key_slot_set_bits_in_flags() argument
158 slot->attr.flags |= mask; in psa_key_slot_set_bits_in_flags()
167 uint16_t mask ) in psa_key_slot_clear_bits() argument
169 slot->attr.flags &= ~mask; in psa_key_slot_clear_bits()
A Dpoly1305.c208 uint32_t mask; in poly1305_compute_mac() local
234 mask = (uint32_t) 0U - ( g4 >> 2U ); in poly1305_compute_mac()
235 mask_inv = ~mask; in poly1305_compute_mac()
238 acc0 = ( acc0 & mask_inv ) | ( g0 & mask ); in poly1305_compute_mac()
239 acc1 = ( acc1 & mask_inv ) | ( g1 & mask ); in poly1305_compute_mac()
240 acc2 = ( acc2 & mask_inv ) | ( g2 & mask ); in poly1305_compute_mac()
241 acc3 = ( acc3 & mask_inv ) | ( g3 & mask ); in poly1305_compute_mac()
A Dssl_msg.c1012 return( mask ); in mbedtls_ssl_cf_mask_lt()
1087 dst[i] = ( src[i] & mask ) | ( dst[i] & ~mask ); in mbedtls_ssl_cf_memcpy_if_eq()
1523 const size_t mask = mbedtls_ssl_cf_mask_ge( in mbedtls_ssl_decrypt_buf() local
1526 correct &= mask; in mbedtls_ssl_decrypt_buf()
1527 padlen &= mask; in mbedtls_ssl_decrypt_buf()
1543 const size_t mask = mbedtls_ssl_cf_mask_ge( in mbedtls_ssl_decrypt_buf() local
1546 correct &= mask; in mbedtls_ssl_decrypt_buf()
1547 padlen &= mask; in mbedtls_ssl_decrypt_buf()
1580 pad_count += mask & equal; in mbedtls_ssl_decrypt_buf()
2787 memset( mask + offset / 8, 0xFF, len / 8 ); in ssl_bitmask_set()
[all …]
A Dcmac.c72 unsigned char R_n, mask; in cmac_multiply_by_u() local
104 mask = - ( input[0] >> 7 ); in cmac_multiply_by_u()
109 output[ blocksize - 1 ] ^= R_n & mask; in cmac_multiply_by_u()
A Drsa.c1118 unsigned char mask[MBEDTLS_MD_MAX_SIZE]; in mgf_mask() local
1125 memset( mask, 0, MBEDTLS_MD_MAX_SIZE ); in mgf_mask()
1145 if( ( ret = mbedtls_md_finish( md_ctx, mask ) ) != 0 ) in mgf_mask()
1149 *p++ ^= mask[i]; in mgf_mask()
1157 mbedtls_platform_zeroize( mask, sizeof( mask ) ); in mgf_mask()
1523 unsigned mask = all_or_nothing_int( cond ); in if_int() local
1524 return( ( mask & if1 ) | (~mask & if0 ) ); in if_int()
A Dbignum.c292 const unsigned mask = second << 1; in mpi_safe_cond_select_sign() local
295 unsigned ur = ( ua & ~mask ) | ( ub & mask ); in mpi_safe_cond_select_sign()
322 const mbedtls_mpi_uint mask = -assign; in mpi_safe_cond_assign() local
329 dest[i] = ( src[i] & mask ) | ( dest[i] & ~mask ); in mpi_safe_cond_assign()
514 mbedtls_mpi_uint mask = (mbedtls_mpi_uint) 1 << (biL - 1); in mbedtls_clz() local
518 if( x & mask ) break; in mbedtls_clz()
520 mask >>= 1; in mbedtls_clz()
A Dssl_srv.c3535 unsigned char mask; in ssl_parse_encrypted_pms() local
3578 mask = - ( ( diff | - diff ) >> ( sizeof( unsigned int ) * 8 - 1 ) ); in ssl_parse_encrypted_pms()
3616 pms[i] = ( mask & fake_pms[i] ) | ( (~mask) & peer_pms[i] ); in ssl_parse_encrypted_pms()
A Decp_curves.c5337 size_t adjust, size_t shift, mbedtls_mpi_uint mask ) in ecp_mod_koblitz() argument
5367 if( mask != 0 ) in ecp_mod_koblitz()
5368 N->p[p_limbs - 1] &= mask; in ecp_mod_koblitz()
5389 if( mask != 0 ) in ecp_mod_koblitz()
5390 N->p[p_limbs - 1] &= mask; in ecp_mod_koblitz()
/mbedtls-development/3rdparty/everest/library/
A 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()
/mbedtls-development/3rdparty/everest/library/legacy/
A 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()
/mbedtls-development/tests/suites/
A Dtest_suite_psa_crypto_metadata.function78 * Unconditionally mask flag into the ambient variable
A Dtest_suite_mpi.function111 /* Shift the most significant bit of x to position 8 and mask it out */
A Dtest_suite_psa_crypto.function605 * encoding. The shifted mask is the maximum truncated value. The
/mbedtls-development/docs/proposed/
A Dpsa-driver-interface.md394 * `flags`: a bit-mask of [entropy collection flags](#entropy-collection-flags).
922 …st one is used, which allows having a preference order on drivers, but may mask integration errors.

Completed in 69 milliseconds