I'd be surprised if the standard DataPower supplied methods work, and you're almost certainly going to need to use GatewayScript for that.
Take a look into some of the JavaScript libraries, such as OpenPGP.js. That should at least get you going.
------------------------------
Joseph Morgan
------------------------------