Example using both gridfs and explicit field encryption

I can’t seem to find a working example that uses both GridFS and explicit field encryption.
I have both concepts implemented separately that works well for the cxxmongo driver and I can’t find information on how to encrypt GridFS data. (Not the metadata, the data itself is sensitive).

I’ve found an idea implemented for the java driver but I don’t know if this is the right approach for c++.

Any idea?