Searched refs:mask (Results 1 – 14 of 14) sorted by relevance
/mbedtls-development/library/ |
A D | psa_crypto_core.h | 131 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 D | poly1305.c | 208 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 D | ssl_msg.c | 1012 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 D | cmac.c | 72 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 D | rsa.c | 1118 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 D | bignum.c | 292 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 D | ssl_srv.c | 3535 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 D | ecp_curves.c | 5337 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 D | Hacl_Curve25519.c | 516 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 D | Hacl_Curve25519.c | 561 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 D | test_suite_psa_crypto_metadata.function | 78 * Unconditionally mask flag into the ambient variable
|
A D | test_suite_mpi.function | 111 /* Shift the most significant bit of x to position 8 and mask it out */
|
A D | test_suite_psa_crypto.function | 605 * encoding. The shifted mask is the maximum truncated value. The
|
/mbedtls-development/docs/proposed/ |
A D | psa-driver-interface.md | 394 * `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