84 references to CryptoHelper
System.IdentityModel (84)
System\IdentityModel\Claims\ClaimsHelper.cs (1)
27if (Environment.OSVersion.Version.Major >= CryptoHelper.WindowsVistaMajorNumber)
System\IdentityModel\CryptoHelper.cs (9)
38static RandomNumberGenerator _random = CryptoHelper.RandomNumberGenerator; 108using ( KeyedHashAlgorithm kha = CryptoHelper.NewHmacSha1KeyedHashAlgorithm() ) 179CryptoHelper.GenerateRandomBytes( key ); 234CryptoHelper.GenerateRandomBytes( key ); 413return CryptoHelper.CreateHashAlgorithm(SecurityAlgorithms.Sha1Digest); 418return CryptoHelper.CreateHashAlgorithm(SecurityAlgorithms.Sha256Digest); 433return CryptoHelper.CreateKeyedHashAlgorithm(key, SecurityAlgorithms.HmacSha1Signature); 438return CryptoHelper.CreateKeyedHashAlgorithm(key, SecurityAlgorithms.HmacSha256Signature); 574using (HashAlgorithm hasher = CryptoHelper.NewSha1HashAlgorithm())
System\IdentityModel\EncryptedDataElement.cs (1)
106RandomNumberGenerator random = CryptoHelper.RandomNumberGenerator;
System\IdentityModel\EnvelopedSignatureWriter.cs (1)
92_hashAlgorithm = CryptoHelper.CreateHashAlgorithm(_signingCreds.DigestAlgorithm);
System\IdentityModel\HashStream.cs (1)
78this.hash.TransformFinalBlock(CryptoHelper.EmptyBuffer, 0, 0);
System\IdentityModel\Protocols\WSTrust\Entropy.cs (1)
21: this( CryptoHelper.GenerateRandomBytes( entropySizeInBits ) )
System\IdentityModel\Psha1DerivedKeyGenerator.cs (1)
65this.hmac = CryptoHelper.NewHmacSha1KeyedHashAlgorithm(secret);
System\IdentityModel\RijndaelCryptoServiceProvider.cs (3)
45CryptoHelper.RandomNumberGenerator.GetBytes(this.KeyValue); 52CryptoHelper.RandomNumberGenerator.GetBytes(this.IVValue); 339CryptoHelper.RandomNumberGenerator.GetBytes(padBytes);
System\IdentityModel\RsaEncryptionCookieTransform.cs (6)
121using (HashAlgorithm algorithm = CryptoHelper.CreateHashAlgorithm(value)) 165using (HashAlgorithm hash = CryptoHelper.CreateHashAlgorithm(_hashName)) 208if (CryptoHelper.IsEqual(hashedKey, rsaHash)) 223using (SymmetricAlgorithm symmetricAlgorithm = CryptoHelper.NewDefaultEncryption()) 284using (HashAlgorithm hash = CryptoHelper.CreateHashAlgorithm(_hashName)) 289using (SymmetricAlgorithm encryptionAlgorithm = CryptoHelper.NewDefaultEncryption())
System\IdentityModel\RsaSignatureCookieTransform.cs (7)
77using (HashAlgorithm algorithm = CryptoHelper.CreateHashAlgorithm(value)) 190using (HashAlgorithm hash = CryptoHelper.CreateHashAlgorithm(HashName)) 197if ((isSha256() && CryptoHelper.VerifySignatureForSha256(verifier, hash, signature)) || 263using (HashAlgorithm hash = CryptoHelper.CreateHashAlgorithm(HashName)) 272signature = CryptoHelper.CreateSignatureForSha256(signer, hash); 315return CryptoHelper.GetSignatureFormatterForSha256(rsaProvider); 331return CryptoHelper.GetSignatureDeFormatterForSha256(rsaProvider);
System\IdentityModel\SecurityUtils.cs (1)
317if (CryptoHelper.IsEqual(memberCertificateRawData, certificateRawData))
System\IdentityModel\SignatureResourcePool.cs (1)
67this.hashAlgorithm = CryptoHelper.CreateHashAlgorithm( algorithm );
System\IdentityModel\SignedXml.cs (3)
181if (!CryptoHelper.FixedTimeEquals(hash.Hash, GetSignatureValue())) 1102if (!CryptoHelper.FixedTimeEquals(computedDigest, GetDigestValue())) 1194bool result = CryptoHelper.FixedTimeEquals(computedDigest, GetDigestValue());
System\IdentityModel\Tokens\EncryptedKeyEncryptingCredentials.cs (2)
62_keyBytes = CryptoHelper.KeyGenerator.GenerateDESKey( keySizeInBits ); 66_keyBytes = CryptoHelper.KeyGenerator.GenerateSymmetricKey( keySizeInBits );
System\IdentityModel\Tokens\KerberosReceiverSecurityToken.cs (2)
298return new KerberosTicketHashKeyIdentifierClause(CryptoHelper.ComputeHash(this.request), false, null, 0) as T; 307return kerbKeyIdentifierClause.Matches(CryptoHelper.ComputeHash(this.request));
System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (2)
238return new KerberosTicketHashKeyIdentifierClause(CryptoHelper.ComputeHash(this.apreq), false, null, 0) as T; 247return kerbKeyIdentifierClause.Matches(CryptoHelper.ComputeHash(this.apreq));
System\IdentityModel\Tokens\RsaSecurityKey.cs (8)
80object algorithmObject = CryptoHelper.GetAlgorithmFromConfig(algorithm); 99return CryptoHelper.NewSha1HashAlgorithm(); 101return CryptoHelper.NewSha256HashAlgorithm(); 115object algorithmObject = CryptoHelper.GetAlgorithmFromConfig(algorithm); 158object algorithmObject = CryptoHelper.GetAlgorithmFromConfig(algorithm); 229return CryptoHelper.IsAsymmetricAlgorithm(algorithm); 243algorithmObject = CryptoHelper.GetAlgorithmFromConfig(algorithm); 275return CryptoHelper.IsSymmetricAlgorithm(algorithm);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (1)
1674using (HashAlgorithm hashAlgorithm = CryptoHelper.NewSha256HashAlgorithm())
System\IdentityModel\Tokens\SamlAssertion.cs (1)
599using (HashAlgorithm hash = CryptoHelper.CreateHashAlgorithm(this.signingCredentials.DigestAlgorithm))
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (1)
814using (HashAlgorithm hashAlgorithm = CryptoHelper.NewSha256HashAlgorithm())
System\IdentityModel\Tokens\SessionSecurityToken.cs (1)
312key = CryptoHelper.KeyGenerator.GenerateSymmetricKey(128);
System\IdentityModel\Tokens\SymmetricKey.cs (11)
51return CryptoHelper.UnwrapKey(this.symmetricKey, keyData, algorithm); 56return CryptoHelper.WrapKey(this.symmetricKey, keyData, algorithm); 61return CryptoHelper.GenerateDerivedKey(this.symmetricKey, algorithm, label, nonce, derivedKeyLength, offset); 66return CryptoHelper.CreateDecryptor(this.symmetricKey, iv, algorithm); 71return CryptoHelper.CreateEncryptor(this.symmetricKey, iv, algorithm); 76return CryptoHelper.GetIVSize(algorithm); 81return CryptoHelper.CreateKeyedHashAlgorithm(this.symmetricKey, algorithm); 86return CryptoHelper.GetSymmetricAlgorithm(this.symmetricKey, algorithm); 99return (CryptoHelper.IsAsymmetricAlgorithm(algorithm)); 104return (CryptoHelper.IsSymmetricSupportedAlgorithm(algorithm, this.KeySize)); 109return CryptoHelper.IsSymmetricAlgorithm(algorithm);
System\IdentityModel\Tokens\SymmetricProofDescriptor.cs (5)
111_key = CryptoHelper.KeyGenerator.GenerateDESKey(_keySizeInBits); 115_key = CryptoHelper.KeyGenerator.GenerateSymmetricKey(_keySizeInBits); 169_key = CryptoHelper.KeyGenerator.GenerateDESKey(_keySizeInBits, _sourceEntropy, out _targetEntropy); 173_key = CryptoHelper.KeyGenerator.GenerateSymmetricKey(_keySizeInBits, _sourceEntropy, out _targetEntropy); 271_ski = CryptoHelper.KeyGenerator.GetSecurityKeyIdentifier(_key, _targetWrappingCredentials);
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (8)
252object algorithmObject = CryptoHelper.GetAlgorithmFromConfig(algorithm); 272return CryptoHelper.NewSha1HashAlgorithm(); 274return CryptoHelper.NewSha256HashAlgorithm(); 292object algorithmObject = CryptoHelper.GetAlgorithmFromConfig(algorithm); 359object algorithmObject = CryptoHelper.GetAlgorithmFromConfig(algorithm); 465return (CryptoHelper.IsAsymmetricAlgorithm(algorithm)); 478algorithmObject = CryptoHelper.GetAlgorithmFromConfig(algorithm); 513return CryptoHelper.IsSymmetricAlgorithm(algorithm);
System\IdentityModel\Tokens\X509IssuerSerialKeyIdentifierClause.cs (1)
91if (CryptoHelper.IsEqual(new X500DistinguishedName(this.issuerName).RawData,
System\IdentityModel\WrappedReader.cs (1)
145CryptoHelper.ValidateBufferBounds(buffer, offset, count);
System\IdentityModel\X509Util.cs (2)
99CryptoHelper.ResetAllCertificates(matches); 100CryptoHelper.ResetAllCertificates(certs);
System\ServiceModel\Security\Tokens\BinarySecretSecurityToken.cs (1)
55CryptoHelper.FillRandomBytes(this.key);
System\ServiceModel\Security\Tokens\WrappedKeySecurityToken.cs (1)
178using (HashAlgorithm hash = CryptoHelper.NewSha1HashAlgorithm())