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 learn.microsoft.com. Some good places to start are
Best regards,Michael Bowen
Microsoft Open Specifications