Create an XPCOM interface that exposes the DOMCrypt internal API, which can be used by chrome-privileged code. This interface will leave only the basic C++ apis inside PSM.
David, do you have any notes about the design of this? I think that this API should be exactly the same as window.crypto or the worker variant of thta, but it should somehow be available without needing a reference to a DOM window. Is that what you're thinking too?