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