It is not known whether the directive, which was sent to the company’s legal team, came from the National Security Agency or the FBI, according to the two former Yahoo employees. It is also not known what the intelligence officials were seeking, except wanting the company to search for a set of characters, which could mean a phrase in an email or an attachment.