The EU Chat Control law doesn't make encrypted chats illegal. It requires messaging services and email providers to scan all their users' messages, including encrypted ones using client side-scanning.
https://www.patrick-breyer.de/en/posts/chat-control/#how-does-this-affect-you