Lines Matching refs:mask
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()
3017 mask[first_byte_idx] |= 1 << ( start_bits - 1 ); in ssl_bitmask_set()
3028 mask[last_byte_idx] |= 1 << ( 8 - end_bits ); in ssl_bitmask_set()
3031 memset( mask + offset / 8, 0xFF, len / 8 ); in ssl_bitmask_set()
3038 static int ssl_bitmask_check( unsigned char *mask, size_t len ) in ssl_bitmask_check() argument
3043 if( mask[i] != 0xFF ) in ssl_bitmask_check()
3047 if( ( mask[len / 8] & ( 1 << ( 7 - i ) ) ) == 0 ) in ssl_bitmask_check()