Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / infocard / common / managed / InfoCardCryptoHelper.cs / 1305376 / InfoCardCryptoHelper.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace Microsoft.InfoCards { using System.IdentityModel.Tokens; using System.Security.Cryptography; using System.Security.Cryptography.Xml; // copied from IdentityModel\CryptoHelper.cs and they need to be kept in [....]. After V1, we need to rethink how we can have // a single place to ask this question. Perhaps even add it as an extensibility internal static class InfoCardCryptoHelper { internal static bool IsAsymmetricAlgorithm(string algorithm) { switch (algorithm) { case SecurityAlgorithms.DsaSha1Signature: case SecurityAlgorithms.RsaSha1Signature: case SecurityAlgorithms.RsaSha256Signature: case SecurityAlgorithms.RsaOaepKeyWrap: case SecurityAlgorithms.RsaV15KeyWrap: return true; default: return false; } } internal static bool IsSymmetricAlgorithm(string algorithm) { switch (algorithm) { case SecurityAlgorithms.HmacSha1Signature: case SecurityAlgorithms.HmacSha256Signature: case SecurityAlgorithms.Aes128Encryption: case SecurityAlgorithms.Aes192Encryption: case SecurityAlgorithms.Aes256Encryption: case SecurityAlgorithms.TripleDesEncryption: case SecurityAlgorithms.Aes128KeyWrap: case SecurityAlgorithms.Aes192KeyWrap: case SecurityAlgorithms.Aes256KeyWrap: case SecurityAlgorithms.TripleDesKeyWrap: case SecurityAlgorithms.Psha1KeyDerivation: case SecurityAlgorithms.Psha1KeyDerivationDec2005: return true; default: return false; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StylusDevice.cs
- SqlCaseSimplifier.cs
- DataRelation.cs
- XmlSerializerSection.cs
- SQLCharsStorage.cs
- ThreadBehavior.cs
- CodeNamespaceImport.cs
- NamespaceInfo.cs
- ZipPackagePart.cs
- PropertyInfoSet.cs
- PreProcessInputEventArgs.cs
- SystemUdpStatistics.cs
- shaper.cs
- InvalidateEvent.cs
- CacheModeConverter.cs
- CheckedListBox.cs
- FixedSOMElement.cs
- EpmContentSerializerBase.cs
- DecimalConstantAttribute.cs
- ErrorFormatterPage.cs
- IsolatedStorageFile.cs
- ChildDocumentBlock.cs
- LineVisual.cs
- SchemaComplexType.cs
- TimeSpanSecondsConverter.cs
- ipaddressinformationcollection.cs
- TabletDevice.cs
- BindingList.cs
- HwndSource.cs
- AutomationPatternInfo.cs
- NamespaceCollection.cs
- ObjectStateEntryDbDataRecord.cs
- HtmlInputText.cs
- ArcSegment.cs
- RequestCacheValidator.cs
- ErasingStroke.cs
- AssemblyCache.cs
- GroupDescription.cs
- ClearCollection.cs
- XmlSchemaDocumentation.cs
- TrackingQueryElement.cs
- DateTimeUtil.cs
- ServiceOperationParameter.cs
- sortedlist.cs
- CodeValidator.cs
- DataControlFieldCollection.cs
- ServiceRoute.cs
- ParameterExpression.cs
- XmlSchemaAnyAttribute.cs
- ItemsChangedEventArgs.cs
- WebPartCloseVerb.cs
- FactoryId.cs
- ComponentChangingEvent.cs
- QuaternionAnimation.cs
- WriteTimeStream.cs
- CollectionViewGroup.cs
- ObjectMemberMapping.cs
- BuildManager.cs
- XmlSchemaSequence.cs
- AppDomainProtocolHandler.cs
- XamlTypeMapper.cs
- ExpressionBindingCollection.cs
- UnionCqlBlock.cs
- ConfigurationValue.cs
- FeatureSupport.cs
- _CacheStreams.cs
- ChineseLunisolarCalendar.cs
- ActionFrame.cs
- ISAPIApplicationHost.cs
- FunctionNode.cs
- Matrix3DConverter.cs
- WindowsListViewGroup.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- DataGridAutoFormatDialog.cs
- ParameterExpression.cs
- AssemblyAttributes.cs
- GreenMethods.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- OutputCacheProfileCollection.cs
- Sequence.cs
- ProxyAttribute.cs
- CompositeDataBoundControl.cs
- TraceRecords.cs
- ProcessModelInfo.cs
- IndexedString.cs
- MetabaseSettingsIis7.cs
- Quaternion.cs
- BitmapFrameEncode.cs
- Section.cs
- ExceptionRoutedEventArgs.cs
- UserControl.cs
- ITextView.cs
- SoapEnumAttribute.cs
- ResXResourceWriter.cs
- RequestCachePolicy.cs
- RC2CryptoServiceProvider.cs
- DrawingContextWalker.cs
- ConfigurationPermission.cs
- StackOverflowException.cs
- ObservableDictionary.cs