/mbedtls-3.4.0/library/ |
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()
|
D | constant_time.c | 145 const size_t mask = mbedtls_ct_size_mask( sub1 ); in mbedtls_ct_size_mask_lt() local 147 return( mask ); in mbedtls_ct_size_mask_lt() 262 unsigned mask = mbedtls_ct_uint_mask( condition ); in mbedtls_ct_uint_if() local 263 return( ( mask & if1 ) | (~mask & if0 ) ); in mbedtls_ct_uint_if() 293 const unsigned mask = condition << 1; in mbedtls_ct_cond_select_sign() local 296 unsigned ur = ( uif0 & ~mask ) | ( uif1 & mask ); in mbedtls_ct_cond_select_sign() 317 const mbedtls_mpi_uint mask = -condition; in mbedtls_ct_mpi_uint_cond_assign() local 324 dest[i] = ( src[i] & mask ) | ( dest[i] & ~mask ); in mbedtls_ct_mpi_uint_cond_assign() 418 const unsigned char mask = (unsigned char) mbedtls_ct_size_mask( equal ); in mbedtls_ct_memcpy_if_eq() local 422 dest[i] = ( src[i] & mask ) | ( dest[i] & ~mask ); in mbedtls_ct_memcpy_if_eq()
|
D | poly1305.c | 190 uint32_t mask; in poly1305_compute_mac() local 216 mask = (uint32_t) 0U - ( g4 >> 2U ); in poly1305_compute_mac() 217 mask_inv = ~mask; in poly1305_compute_mac() 220 acc0 = ( acc0 & mask_inv ) | ( g0 & mask ); in poly1305_compute_mac() 221 acc1 = ( acc1 & mask_inv ) | ( g1 & mask ); in poly1305_compute_mac() 222 acc2 = ( acc2 & mask_inv ) | ( g2 & mask ); in poly1305_compute_mac() 223 acc3 = ( acc3 & mask_inv ) | ( g3 & mask ); in poly1305_compute_mac()
|
D | bignum_core.c | 39 mbedtls_mpi_uint mask = (mbedtls_mpi_uint) 1 << (biL - 1); in mbedtls_mpi_core_clz() local 43 if( a & mask ) break; in mbedtls_mpi_core_clz() 45 mask >>= 1; in mbedtls_mpi_core_clz() 388 const mbedtls_mpi_uint mask = mbedtls_ct_mpi_uint_mask( cond ); in mbedtls_mpi_core_add_if() local 392 mbedtls_mpi_uint add = mask & A[i]; in mbedtls_mpi_core_add_if()
|
D | rsa.c | 1076 unsigned char mask[MBEDTLS_HASH_MAX_SIZE]; in mgf_mask() local 1101 memset( mask, 0, sizeof( mask ) ); in mgf_mask() 1120 if( ( ret = mbedtls_md_finish( &md_ctx, mask ) ) != 0 ) in mgf_mask() 1129 status = psa_hash_finish( &op, mask, sizeof( mask ), &out_len ); in mgf_mask() 1135 *p++ ^= mask[i]; in mgf_mask() 1143 mbedtls_platform_zeroize( mask, sizeof( mask ) ); in mgf_mask()
|
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()
|
D | ssl_msg.c | 1717 const size_t mask = mbedtls_ct_size_mask_ge( in mbedtls_ssl_decrypt_buf() local 1720 correct &= mask; in mbedtls_ssl_decrypt_buf() 1721 padlen &= mask; in mbedtls_ssl_decrypt_buf() 1737 const size_t mask = mbedtls_ct_size_mask_ge( in mbedtls_ssl_decrypt_buf() local 1740 correct &= mask; in mbedtls_ssl_decrypt_buf() 1741 padlen &= mask; in mbedtls_ssl_decrypt_buf() 1771 const size_t mask = mbedtls_ct_size_mask_ge( idx, padding_idx ); in mbedtls_ssl_decrypt_buf() local 1774 pad_count += mask & equal; in mbedtls_ssl_decrypt_buf() 2994 static void ssl_bitmask_set( unsigned char *mask, size_t offset, size_t len ) in ssl_bitmask_set() argument 3007 mask[first_byte_idx] |= 1 << ( start_bits - len ); in ssl_bitmask_set() [all …]
|
D | ssl_tls12_server.c | 3578 unsigned char mask; in ssl_parse_encrypted_pms() local 3614 mask = mbedtls_ct_uint_mask( diff ); in ssl_parse_encrypted_pms() 3649 pms[i] = ( mask & fake_pms[i] ) | ( (~mask) & peer_pms[i] ); in ssl_parse_encrypted_pms()
|
D | ecp_curves.c | 5322 size_t adjust, size_t shift, mbedtls_mpi_uint mask ) in ecp_mod_koblitz() argument 5352 if( mask != 0 ) in ecp_mod_koblitz() 5353 N->p[p_limbs - 1] &= mask; in ecp_mod_koblitz() 5374 if( mask != 0 ) in ecp_mod_koblitz() 5375 N->p[p_limbs - 1] &= mask; in ecp_mod_koblitz()
|
/mbedtls-3.4.0/3rdparty/everest/library/ |
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-3.4.0/3rdparty/everest/library/legacy/ |
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-3.4.0/docs/architecture/psa-migration/ |
D | psa-limitations.md | 87 - a mask generation function 153 - the mask generation function is MGF1 183 - the mask generation function is MGF1
|
/mbedtls-3.4.0/tests/suites/ |
D | test_suite_psa_crypto_metadata.function | 80 * Unconditionally mask flag into the ambient variable
|
D | test_suite_bignum.function | 124 /* Shift the most significant bit of x to position 8 and mask it out */
|
D | test_suite_psa_crypto.function | 1354 * encoding. The shifted mask is the maximum truncated value. The
|
/mbedtls-3.4.0/docs/proposed/ |
D | psa-driver-interface.md | 398 * `flags`: a bit-mask of [entropy collection flags](#entropy-collection-flags). 926 …st one is used, which allows having a preference order on drivers, but may mask integration errors.
|