I was just about to answer this topic.
So, the current module's first version in eXist was developed before the spec as of 10 August 2011, as you remember.
Afterwards, was developed and somehow aligned with the spec as to functionality and function names, with the exception of encrypt-string(), decrypt-string() and module namespace.
As I said some time ago, I am currently working on complete refactoring of the module and fully alignement with the spec. The module will be standalone and there will be an eXist wrapper for it.
My goal is to make the module conform to next version of spec (see ).
If you need more info, I am glad to provide it.