Cleanup pk_encoding_ctx code.
Pass around verify function to pk_module->verify as some encodings like PSS need custom verification logic.