Hi zurmokeeper,
MS-OFFCRYPTO specifies the Office Document Cryptography Structure but does not describe the implementation details. You can find information about implementation in the Web App Devlopment section of zcusa.951200.xyz. Some good places to start are
Best regards,Michael Bowen
Microsoft Open Specifications