public override void ReleaseSignatureProvider(SignatureProvider signatureProvider) { ReleaseSignatureProviderCalled = true; if (CustomCryptoProvider != null) { CustomCryptoProvider.Release(signatureProvider); } else { signatureProvider.Dispose(); } }
public override void ReleaseHashAlgorithm(HashAlgorithm hashAlgorithm) { ReleaseHashAlgorithmCalled = true; if (CustomCryptoProvider != null) { CustomCryptoProvider.Release(hashAlgorithm); } else { hashAlgorithm.Dispose(); } }