About masks, you need to save in EXR(octane) format, and use EXR-IO in PhotoShop to work correctlt with Cryptomatte:
https://www.exr-io.com/
Have a look at here:
https://docs.otoy.com/cinema4d/Cryptomatte.html
ciao,
Beppe
Moderators: ChrisHekman, aoktar