268 references to SecurityAlgorithms
System.IdentityModel (186)
System\IdentityModel\CryptoHelper.cs (105)
408
return GetSymmetricAlgorithm(null,
SecurityAlgorithms
.DefaultEncryptionAlgorithm );
413
return CryptoHelper.CreateHashAlgorithm(
SecurityAlgorithms
.Sha1Digest);
418
return CryptoHelper.CreateHashAlgorithm(
SecurityAlgorithms
.Sha256Digest);
423
KeyedHashAlgorithm algorithm = GetAlgorithmFromConfig(
SecurityAlgorithms
.HmacSha1Signature ) as KeyedHashAlgorithm;
426
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument( "algorithm", SR.GetString( SR.ID6037,
SecurityAlgorithms
.HmacSha1Signature ) );
433
return CryptoHelper.CreateKeyedHashAlgorithm(key,
SecurityAlgorithms
.HmacSha1Signature);
438
return CryptoHelper.CreateKeyedHashAlgorithm(key,
SecurityAlgorithms
.HmacSha256Signature);
443
Rijndael rijndael = (GetSymmetricAlgorithm(null,
SecurityAlgorithms
.Aes128Encryption) as Rijndael);
446
throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.CustomCryptoAlgorithmIsNotValidSymmetricAlgorithm,
SecurityAlgorithms
.Aes128Encryption)));
468
case
SecurityAlgorithms
.TripleDesEncryption:
470
case
SecurityAlgorithms
.Aes128Encryption:
471
case
SecurityAlgorithms
.Aes192Encryption:
472
case
SecurityAlgorithms
.Aes256Encryption:
496
case
SecurityAlgorithms
.TripleDesEncryption:
498
case
SecurityAlgorithms
.Aes128Encryption:
499
case
SecurityAlgorithms
.Aes192Encryption:
500
case
SecurityAlgorithms
.Aes256Encryption:
526
case
SecurityAlgorithms
.Sha1Digest:
532
case
SecurityAlgorithms
.Sha256Digest:
560
case
SecurityAlgorithms
.HmacSha1Signature:
562
case
SecurityAlgorithms
.HmacSha256Signature:
582
if ((algorithm !=
SecurityAlgorithms
.Psha1KeyDerivation) && (algorithm !=
SecurityAlgorithms
.Psha1KeyDerivationDec2005))
605
case
SecurityAlgorithms
.TripleDesEncryption:
607
case
SecurityAlgorithms
.Aes128Encryption:
608
case
SecurityAlgorithms
.Aes192Encryption:
609
case
SecurityAlgorithms
.Aes256Encryption:
679
case
SecurityAlgorithms
.TripleDesEncryption:
680
case
SecurityAlgorithms
.TripleDesKeyWrap:
683
case
SecurityAlgorithms
.Aes128Encryption:
684
case
SecurityAlgorithms
.Aes192Encryption:
685
case
SecurityAlgorithms
.Aes256Encryption:
686
case
SecurityAlgorithms
.Aes128KeyWrap:
687
case
SecurityAlgorithms
.Aes192KeyWrap:
688
case
SecurityAlgorithms
.Aes256KeyWrap:
764
AsymmetricAlgorithm algorithm = key.GetAsymmetricAlgorithm(
SecurityAlgorithms
.RsaSha256Signature, true );
814
AsymmetricAlgorithm algorithm = key.GetAsymmetricAlgorithm(
SecurityAlgorithms
.RsaSha256Signature, false );
883
case
SecurityAlgorithms
.DsaSha1Signature:
884
case
SecurityAlgorithms
.RsaSha1Signature:
885
case
SecurityAlgorithms
.RsaSha256Signature:
886
case
SecurityAlgorithms
.RsaOaepKeyWrap:
887
case
SecurityAlgorithms
.RsaV15KeyWrap:
920
case
SecurityAlgorithms
.DsaSha1Signature:
921
case
SecurityAlgorithms
.RsaSha1Signature:
922
case
SecurityAlgorithms
.RsaSha256Signature:
923
case
SecurityAlgorithms
.RsaOaepKeyWrap:
924
case
SecurityAlgorithms
.RsaV15KeyWrap:
926
case
SecurityAlgorithms
.HmacSha1Signature:
927
case
SecurityAlgorithms
.HmacSha256Signature:
928
case
SecurityAlgorithms
.Aes128Encryption:
929
case
SecurityAlgorithms
.Aes192Encryption:
930
case
SecurityAlgorithms
.DesEncryption:
931
case
SecurityAlgorithms
.Aes256Encryption:
932
case
SecurityAlgorithms
.TripleDesEncryption:
933
case
SecurityAlgorithms
.Aes128KeyWrap:
934
case
SecurityAlgorithms
.Aes192KeyWrap:
935
case
SecurityAlgorithms
.Aes256KeyWrap:
936
case
SecurityAlgorithms
.TripleDesKeyWrap:
937
case
SecurityAlgorithms
.Psha1KeyDerivation:
938
case
SecurityAlgorithms
.Psha1KeyDerivationDec2005:
971
case
SecurityAlgorithms
.DsaSha1Signature:
972
case
SecurityAlgorithms
.RsaSha1Signature:
973
case
SecurityAlgorithms
.RsaSha256Signature:
974
case
SecurityAlgorithms
.RsaOaepKeyWrap:
975
case
SecurityAlgorithms
.RsaV15KeyWrap:
977
case
SecurityAlgorithms
.HmacSha1Signature:
978
case
SecurityAlgorithms
.HmacSha256Signature:
979
case
SecurityAlgorithms
.Psha1KeyDerivation:
980
case
SecurityAlgorithms
.Psha1KeyDerivationDec2005:
982
case
SecurityAlgorithms
.Aes128Encryption:
983
case
SecurityAlgorithms
.Aes128KeyWrap:
985
case
SecurityAlgorithms
.Aes192Encryption:
986
case
SecurityAlgorithms
.Aes192KeyWrap:
988
case
SecurityAlgorithms
.Aes256Encryption:
989
case
SecurityAlgorithms
.Aes256KeyWrap:
991
case
SecurityAlgorithms
.TripleDesEncryption:
992
case
SecurityAlgorithms
.TripleDesKeyWrap:
1029
case
SecurityAlgorithms
.TripleDesKeyWrap:
1032
case
SecurityAlgorithms
.Aes128KeyWrap:
1033
case
SecurityAlgorithms
.Aes192KeyWrap:
1034
case
SecurityAlgorithms
.Aes256KeyWrap:
1068
case
SecurityAlgorithms
.TripleDesKeyWrap:
1071
case
SecurityAlgorithms
.Aes128KeyWrap:
1072
case
SecurityAlgorithms
.Aes192KeyWrap:
1073
case
SecurityAlgorithms
.Aes256KeyWrap:
1182
case
SecurityAlgorithms
.Sha1Digest:
1187
case
SecurityAlgorithms
.ExclusiveC14n:
1190
case
SecurityAlgorithms
.Sha256Digest:
1195
case
SecurityAlgorithms
.Sha512Digest:
1200
case
SecurityAlgorithms
.Aes128Encryption:
1201
case
SecurityAlgorithms
.Aes192Encryption:
1202
case
SecurityAlgorithms
.Aes256Encryption:
1203
case
SecurityAlgorithms
.Aes128KeyWrap:
1204
case
SecurityAlgorithms
.Aes192KeyWrap:
1205
case
SecurityAlgorithms
.Aes256KeyWrap:
1210
case
SecurityAlgorithms
.TripleDesEncryption:
1211
case
SecurityAlgorithms
.TripleDesKeyWrap:
1213
case
SecurityAlgorithms
.HmacSha1Signature:
1217
case
SecurityAlgorithms
.HmacSha256Signature:
1221
case
SecurityAlgorithms
.ExclusiveC14nWithComments:
1223
case
SecurityAlgorithms
.Ripemd160Digest:
1227
case
SecurityAlgorithms
.DesEncryption:
1314
case
SecurityAlgorithms
.Sha256Digest:
1323
case
SecurityAlgorithms
.Sha1Digest:
1332
case
SecurityAlgorithms
.HmacSha1Signature:
System\IdentityModel\PreDigestedSignedInfo.cs (9)
150
writer.WriteString(
SecurityAlgorithms
.StrTransform);
253
this.sha1Digest = encoding.GetBytes(
SecurityAlgorithms
.Sha1Digest);
254
this.sha256Digest = encoding.GetBytes(
SecurityAlgorithms
.Sha256Digest);
255
this.hmacSha1Signature = encoding.GetBytes(
SecurityAlgorithms
.HmacSha1Signature);
256
this.rsaSha1Signature = encoding.GetBytes(
SecurityAlgorithms
.RsaSha1Signature);
266
if (algorithm ==
SecurityAlgorithms
.Sha1Digest)
270
else if (algorithm ==
SecurityAlgorithms
.Sha256Digest)
282
if (algorithm ==
SecurityAlgorithms
.HmacSha1Signature)
286
else if (algorithm ==
SecurityAlgorithms
.RsaSha1Signature)
System\IdentityModel\SecurityTokenService.cs (3)
284
if ((request.EncryptionAlgorithm == null || request.EncryptionAlgorithm ==
SecurityAlgorithms
.Aes256Encryption) &&
285
(request.SecondaryParameters == null || request.SecondaryParameters.EncryptionAlgorithm == null || request.SecondaryParameters.EncryptionAlgorithm ==
SecurityAlgorithms
.Aes256Encryption)
288
d.EncryptingCredentials = new EncryptedKeyEncryptingCredentials(scope.EncryptingCredentials, 256,
SecurityAlgorithms
.Aes256Encryption);
System\IdentityModel\SignedXml.cs (5)
82
if (SecurityUtils.RequiresFipsCompliance && signatureMethod ==
SecurityAlgorithms
.RsaSha256Signature)
192
if (SecurityUtils.RequiresFipsCompliance && signatureMethod ==
SecurityAlgorithms
.RsaSha256Signature)
534
if ((this.CanonicalizationMethod !=
SecurityAlgorithms
.ExclusiveC14n) && (this.CanonicalizationMethod !=
SecurityAlgorithms
.ExclusiveC14nWithComments))
1137
return this.TransformChain.TransformCount == 1 && this.TransformChain[0].Algorithm ==
SecurityAlgorithms
.StrTransform;
System\IdentityModel\StandardTransformFactory.cs (3)
23
if (transformAlgorithmUri ==
SecurityAlgorithms
.ExclusiveC14n)
27
else if (transformAlgorithmUri ==
SecurityAlgorithms
.ExclusiveC14nWithComments)
31
else if (transformAlgorithmUri ==
SecurityAlgorithms
.StrTransform)
System\IdentityModel\StrTransform.cs (1)
32
return
SecurityAlgorithms
.StrTransform;
System\IdentityModel\Tokens\EncryptedKeyEncryptingCredentials.cs (5)
24
: this( new X509EncryptingCredentials( certificate ),
SecurityAlgorithms
.DefaultSymmetricKeyLength,
SecurityAlgorithms
.DefaultEncryptionAlgorithm )
58
if ( encryptionAlgorithm ==
SecurityAlgorithms
.DesEncryption ||
59
encryptionAlgorithm ==
SecurityAlgorithms
.TripleDesEncryption ||
60
encryptionAlgorithm ==
SecurityAlgorithms
.TripleDesKeyWrap )
System\IdentityModel\Tokens\RsaSecurityKey.cs (14)
33
case
SecurityAlgorithms
.RsaV15KeyWrap:
35
case
SecurityAlgorithms
.RsaOaepKeyWrap:
50
case
SecurityAlgorithms
.RsaV15KeyWrap:
52
case
SecurityAlgorithms
.RsaOaepKeyWrap:
98
case
SecurityAlgorithms
.RsaSha1Signature:
100
case
SecurityAlgorithms
.RsaSha256Signature:
142
case
SecurityAlgorithms
.RsaSha1Signature:
143
case
SecurityAlgorithms
.RsaSha256Signature:
186
case
SecurityAlgorithms
.RsaSha1Signature:
187
case
SecurityAlgorithms
.RsaSha256Signature:
263
case
SecurityAlgorithms
.RsaV15KeyWrap:
264
case
SecurityAlgorithms
.RsaOaepKeyWrap:
265
case
SecurityAlgorithms
.RsaSha1Signature:
266
case
SecurityAlgorithms
.RsaSha256Signature:
System\IdentityModel\Tokens\SamlAssertion.cs (1)
473
signedInfo.CanonicalizationMethod =
SecurityAlgorithms
.ExclusiveC14n;
System\IdentityModel\Tokens\SecurityKeyElement.cs (22)
106
case
SecurityAlgorithms
.DsaSha1Signature:
107
case
SecurityAlgorithms
.RsaSha1Signature:
108
case
SecurityAlgorithms
.RsaSha256Signature:
109
case
SecurityAlgorithms
.RsaOaepKeyWrap:
110
case
SecurityAlgorithms
.RsaV15KeyWrap:
144
case
SecurityAlgorithms
.DsaSha1Signature:
145
case
SecurityAlgorithms
.RsaSha1Signature:
146
case
SecurityAlgorithms
.RsaSha256Signature:
147
case
SecurityAlgorithms
.RsaOaepKeyWrap:
148
case
SecurityAlgorithms
.RsaV15KeyWrap:
150
case
SecurityAlgorithms
.HmacSha1Signature:
151
case
SecurityAlgorithms
.HmacSha256Signature:
152
case
SecurityAlgorithms
.Aes128Encryption:
153
case
SecurityAlgorithms
.Aes192Encryption:
154
case
SecurityAlgorithms
.Aes256Encryption:
155
case
SecurityAlgorithms
.TripleDesEncryption:
156
case
SecurityAlgorithms
.Aes128KeyWrap:
157
case
SecurityAlgorithms
.Aes192KeyWrap:
158
case
SecurityAlgorithms
.Aes256KeyWrap:
159
case
SecurityAlgorithms
.TripleDesKeyWrap:
160
case
SecurityAlgorithms
.Psha1KeyDerivation:
161
case
SecurityAlgorithms
.Psha1KeyDerivationDec2005:
System\IdentityModel\Tokens\SymmetricProofDescriptor.cs (6)
107
if (encryptWith ==
SecurityAlgorithms
.DesEncryption ||
108
encryptWith ==
SecurityAlgorithms
.TripleDesEncryption ||
109
encryptWith ==
SecurityAlgorithms
.TripleDesKeyWrap)
165
if (encryptWith ==
SecurityAlgorithms
.DesEncryption ||
166
encryptWith ==
SecurityAlgorithms
.TripleDesEncryption ||
167
encryptWith ==
SecurityAlgorithms
.TripleDesKeyWrap)
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (7)
204
case
SecurityAlgorithms
.RsaSha256Signature:
230
case
SecurityAlgorithms
.RsaSha256Signature:
273
case
SecurityAlgorithms
.RsaSha256Signature:
328
case
SecurityAlgorithms
.RsaSha256Signature:
401
case
SecurityAlgorithms
.RsaSha256Signature:
427
if (!string.Equals(algorithm,
SecurityAlgorithms
.RsaSha256Signature))
502
case
SecurityAlgorithms
.RsaSha256Signature:
System\IdentityModel\Tokens\X509EncryptingCredentials.cs (2)
43
: this(new X509SecurityToken(certificate), ski,
SecurityAlgorithms
.DefaultAsymmetricKeyWrapAlgorithm)
66
SecurityAlgorithms
.DefaultAsymmetricKeyWrapAlgorithm)
System\IdentityModel\Tokens\X509SigningCredentials.cs (2)
88
: this(new X509SecurityToken(certificate), ski,
SecurityAlgorithms
.DefaultAsymmetricSignatureAlgorithm,
SecurityAlgorithms
.DefaultDigestAlgorithm)
System\IdentityModel\Tokens\XmlEncApr2001.cs (1)
116
writer.WriteAttributeString(XD.XmlSignatureDictionary.Algorithm, null,
SecurityAlgorithms
.Sha1Digest);
System.IdentityModel.Selectors (26)
infocard\client\System\IdentityModel\Selectors\InfoCardSymmetricCrypto.cs (9)
84
case
SecurityAlgorithms
.Aes128Encryption:
85
case
SecurityAlgorithms
.HmacSha1Signature:
86
case
SecurityAlgorithms
.Psha1KeyDerivation:
87
case
SecurityAlgorithms
.Psha1KeyDerivationDec2005:
170
case
SecurityAlgorithms
.Aes128Encryption:
199
case
SecurityAlgorithms
.Aes128Encryption:
223
case
SecurityAlgorithms
.Aes128Encryption:
242
case
SecurityAlgorithms
.HmacSha1Signature:
258
case
SecurityAlgorithms
.Aes128Encryption:
infocard\common\managed\InfoCardCryptoHelper.cs (17)
21
case
SecurityAlgorithms
.DsaSha1Signature:
22
case
SecurityAlgorithms
.RsaSha1Signature:
23
case
SecurityAlgorithms
.RsaSha256Signature:
24
case
SecurityAlgorithms
.RsaOaepKeyWrap:
25
case
SecurityAlgorithms
.RsaV15KeyWrap:
36
case
SecurityAlgorithms
.HmacSha1Signature:
37
case
SecurityAlgorithms
.HmacSha256Signature:
38
case
SecurityAlgorithms
.Aes128Encryption:
39
case
SecurityAlgorithms
.Aes192Encryption:
40
case
SecurityAlgorithms
.Aes256Encryption:
41
case
SecurityAlgorithms
.TripleDesEncryption:
42
case
SecurityAlgorithms
.Aes128KeyWrap:
43
case
SecurityAlgorithms
.Aes192KeyWrap:
44
case
SecurityAlgorithms
.Aes256KeyWrap:
45
case
SecurityAlgorithms
.TripleDesKeyWrap:
46
case
SecurityAlgorithms
.Psha1KeyDerivation:
47
case
SecurityAlgorithms
.Psha1KeyDerivationDec2005:
System.ServiceModel (56)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
305
this.hashAlgorithm = CryptoHelper.CreateHashAlgorithm(
SecurityAlgorithms
.Sha256Digest);
System\ServiceModel\Security\CryptoHelper.cs (41)
53
return CryptoHelper.CreateHashAlgorithm(
SecurityAlgorithms
.Sha1Digest);
58
return CryptoHelper.CreateHashAlgorithm(
SecurityAlgorithms
.Sha256Digest);
75
case
SecurityAlgorithms
.Sha1Digest:
80
case
SecurityAlgorithms
.Sha256Digest:
116
case
SecurityAlgorithms
.RsaSha1Signature:
117
case
SecurityAlgorithms
.DsaSha1Signature:
123
case
SecurityAlgorithms
.RsaSha256Signature:
205
case
SecurityAlgorithms
.DsaSha1Signature:
206
case
SecurityAlgorithms
.RsaSha1Signature:
207
case
SecurityAlgorithms
.RsaSha256Signature:
208
case
SecurityAlgorithms
.RsaOaepKeyWrap:
209
case
SecurityAlgorithms
.RsaV15KeyWrap:
211
case
SecurityAlgorithms
.HmacSha1Signature:
212
case
SecurityAlgorithms
.HmacSha256Signature:
213
case
SecurityAlgorithms
.Aes128Encryption:
214
case
SecurityAlgorithms
.Aes192Encryption:
215
case
SecurityAlgorithms
.Aes256Encryption:
216
case
SecurityAlgorithms
.TripleDesEncryption:
217
case
SecurityAlgorithms
.Aes128KeyWrap:
218
case
SecurityAlgorithms
.Aes192KeyWrap:
219
case
SecurityAlgorithms
.Aes256KeyWrap:
220
case
SecurityAlgorithms
.TripleDesKeyWrap:
221
case
SecurityAlgorithms
.Psha1KeyDerivation:
222
case
SecurityAlgorithms
.Psha1KeyDerivationDec2005:
299
case
SecurityAlgorithms
.DsaSha1Signature:
300
case
SecurityAlgorithms
.RsaSha1Signature:
301
case
SecurityAlgorithms
.RsaSha256Signature:
302
case
SecurityAlgorithms
.RsaOaepKeyWrap:
303
case
SecurityAlgorithms
.RsaV15KeyWrap:
305
case
SecurityAlgorithms
.HmacSha1Signature:
306
case
SecurityAlgorithms
.HmacSha256Signature:
307
case
SecurityAlgorithms
.Psha1KeyDerivation:
308
case
SecurityAlgorithms
.Psha1KeyDerivationDec2005:
310
case
SecurityAlgorithms
.Aes128Encryption:
311
case
SecurityAlgorithms
.Aes128KeyWrap:
313
case
SecurityAlgorithms
.Aes192Encryption:
314
case
SecurityAlgorithms
.Aes192KeyWrap:
316
case
SecurityAlgorithms
.Aes256Encryption:
317
case
SecurityAlgorithms
.Aes256KeyWrap:
319
case
SecurityAlgorithms
.TripleDesEncryption:
320
case
SecurityAlgorithms
.TripleDesKeyWrap:
System\ServiceModel\Security\SecurityAlgorithmSuite.cs (4)
227
public virtual bool IsEncryptionKeyDerivationAlgorithmSupported(string algorithm) { return (algorithm ==
SecurityAlgorithms
.Psha1KeyDerivation) || (algorithm ==
SecurityAlgorithms
.Psha1KeyDerivationDec2005); }
232
public virtual bool IsSignatureKeyDerivationAlgorithmSupported(string algorithm) { return (algorithm ==
SecurityAlgorithms
.Psha1KeyDerivation) || (algorithm ==
SecurityAlgorithms
.Psha1KeyDerivationDec2005); }
System\ServiceModel\Security\SecurityUtils.cs (2)
2374
derivationAlgorithm =
SecurityAlgorithms
.Psha1KeyDerivation;
2378
derivationAlgorithm =
SecurityAlgorithms
.Psha1KeyDerivationDec2005;
System\ServiceModel\Security\TlsSspiNegotiation.cs (1)
199
return
SecurityAlgorithms
.TlsSspiKeyWrap;
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (1)
65
Initialize(id, -1, 0, length, null, nonce, tokenToDerive, tokenToDeriveIdentifier,
SecurityAlgorithms
.Psha1KeyDerivation);
System\ServiceModel\Security\WindowsSspiNegotiation.cs (1)
151
return
SecurityAlgorithms
.WindowsSspiKeyWrap;
System\ServiceModel\Security\WsKeyInfoSerializer.cs (2)
81
get { return
SecurityAlgorithms
.Psha1KeyDerivation; }
316
return
SecurityAlgorithms
.Psha1KeyDerivationDec2005;
System\ServiceModel\Security\WSSecureConversation.cs (1)
71
get { return
SecurityAlgorithms
.Psha1KeyDerivation; }
System\ServiceModel\Security\WSSecureConversationDec2005.cs (1)
75
return
SecurityAlgorithms
.Psha1KeyDerivationDec2005;
System\ServiceModel\Security\WSSecurityOneDotZeroSendSecurityHeader.cs (1)
653
if (canonicalizationAlgorithm !=
SecurityAlgorithms
.ExclusiveC14n)