U.S. Customs and Border Protection officers are increasingly searching electronic devices of travelers entering the country.