France actually banned non approved use of encryption algorithms/math in the 90s so there's some precedence.
https://www.theregister.com/1999/01/15/france_to_end_severe_...
https://www.theregister.com/1999/01/15/france_to_end_severe_...
(Sarcastic? Who knows?)