it looks like thumbprint and thumbprintAlgorithm go together. Consider introducing a class like Thumbprint and have them as properties on it. This method should return Thumbprint type rather than accepting "ref" parameters. 

This can help you refactor thumbprint/algorithm related code further ExtensionManager.InstallExtension method.