Categorical composable cryptography: extended version (Logical Methods in Computer Science, 2024)