28 references to CryptoHelper
System.ServiceModel (28)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
305
this.hashAlgorithm =
CryptoHelper
.CreateHashAlgorithm(SecurityAlgorithms.Sha256Digest);
System\ServiceModel\Channels\PeerNodeImplementation.cs (1)
1307
System.ServiceModel.Security.
CryptoHelper
.FillRandomBytes(bytes);
System\ServiceModel\Security\AcceleratedTokenProvider.cs (1)
232
CryptoHelper
.FillRandomBytes(keyEntropy);
System\ServiceModel\Security\CryptoHelper.cs (2)
53
return
CryptoHelper
.CreateHashAlgorithm(SecurityAlgorithms.Sha1Digest);
58
return
CryptoHelper
.CreateHashAlgorithm(SecurityAlgorithms.Sha256Digest);
System\ServiceModel\Security\DerivedKeyCachingSecurityTokenSerializer.cs (2)
168
return (
CryptoHelper
.IsEqual(cachedToken.Nonce, nonce) && (cachedToken.SecurityKeys != null));
281
return
CryptoHelper
.IsEqual(this.keyToDerive, key.GetSymmetricKey());
System\ServiceModel\Security\EncryptedData.cs (3)
41
CryptoHelper
.GenerateIVAndEncrypt(this.algorithm, this.buffer, out this.iv, out this.cipherText);
43
this.buffer = new ArraySegment<byte>(
CryptoHelper
.EmptyBuffer);
64
this.decryptedBuffer =
CryptoHelper
.ExtractIVAndDecrypt(this.algorithm, this.cipherText, 0, this.cipherText.Length);
System\ServiceModel\Security\MessageSecurityProtocol.cs (1)
498
if ((wasReceivedSigEncrypted == wasSentSigEncrypted) &&
CryptoHelper
.IsEqual(receivedSignature, sentSignature))
System\ServiceModel\Security\ReceiveSecurityHeader.cs (1)
2080
return (
CryptoHelper
.IsEqual(outOfBandCertificateThumbprint, replyCertificateThumbprint));
System\ServiceModel\Security\SecurityHeaderTokenResolver.cs (1)
221
(
CryptoHelper
.IsEqual(derivedKeyToken.Nonce, derivationNonce)) &&
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (1)
641
CryptoHelper
.FillRandomBytes(result);
System\ServiceModel\Security\SecurityUtils.cs (1)
593
if (c1 == null || c2 == null || !
CryptoHelper
.IsEqual(c1.GetSymmetricKey(), c2.GetSymmetricKey()))
System\ServiceModel\Security\SendSecurityHeader.cs (2)
408
CryptoHelper
.ValidateSymmetricKeyLength(keyLength, this.AlgorithmSuite);
410
CryptoHelper
.FillRandomBytes(key);
System\ServiceModel\Security\SspiNegotiationTokenAuthenticator.cs (2)
90
CryptoHelper
.FillRandomBytes(key);
154
sspiState.NegotiationDigest.TransformFinalBlock(
CryptoHelper
.EmptyBuffer, 0, 0);
System\ServiceModel\Security\SspiNegotiationTokenAuthenticatorState.cs (1)
35
this.negotiationDigest =
CryptoHelper
.NewSha1HashAlgorithm();
System\ServiceModel\Security\SspiNegotiationTokenProvider.cs (1)
149
sspiState.NegotiationDigest.TransformFinalBlock(
CryptoHelper
.EmptyBuffer, 0, 0);
System\ServiceModel\Security\SspiNegotiationTokenProviderState.cs (1)
30
this.negotiationDigest =
CryptoHelper
.NewSha1HashAlgorithm();
System\ServiceModel\Security\SymmetricSecurityProtocol.cs (2)
241
CryptoHelper
.ValidateSymmetricKeyLength(keyLength, this.Factory.OutgoingAlgorithmSuite);
243
CryptoHelper
.FillRandomBytes(key);
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (1)
845
CryptoHelper
.FillRandomBytes(keyEntropy);
System\ServiceModel\Security\Tokens\WindowsUserNameCachingSecurityTokenAuthenticator.cs (1)
110
return
CryptoHelper
.IsEqual(this.passwordHash, passwordHash);
System\ServiceModel\Security\WSSecurityJan2004.cs (1)
262
using (HashAlgorithm hasher =
CryptoHelper
.NewSha1HashAlgorithm())
System\ServiceModel\Security\WSSecurityOneDotZeroSendSecurityHeader.cs (1)
607
this.hashStream = hashStream = new HashStream(
CryptoHelper
.CreateHashAlgorithm(this.AlgorithmSuite.DefaultDigestAlgorithm));