In the US, the government is probably going to ask for (and receive) some sort of national security waiver to sharing the details. Generally up to the judge to determine if that request is valid.
Or, the law enforcement agency will use parallel construction to get a conviction without exposing their tech.