Juan Lang : crypt32: Use helper functions to simplify CryptEncodeObject and CryptEncodeObjectEx .