/// <summary> /// Gets the cryptographer used for hashing. /// </summary> /// <returns> /// A <see cref="HashCryptographer"/> object. /// </returns> protected virtual HashCryptographer GetHashCryptographer() { try { CheckAlgorithmType(); } catch (ConfigurationException ex) { CryptographyUtility.LogCryptographyException(ex); throw; } HashAlgorithmProviderData data = GetHashAlgorithmProviderDataFromCursor(); return(new HashCryptographer(data.AlgorithmType)); }