Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / common / managed / InfoCardCryptoHelper.cs / 1 / 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 sync. 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VolatileEnlistmentState.cs
- AuthenticationServiceManager.cs
- Bold.cs
- Transform.cs
- KnownColorTable.cs
- CompiledRegexRunner.cs
- FieldValue.cs
- MonthCalendar.cs
- Buffer.cs
- RegionInfo.cs
- ButtonAutomationPeer.cs
- FastEncoderWindow.cs
- ChannelSinkStacks.cs
- ConfigXmlComment.cs
- GenericAuthenticationEventArgs.cs
- ThreadInterruptedException.cs
- PersonalizationProviderHelper.cs
- IgnoreSectionHandler.cs
- JsonWriter.cs
- dbenumerator.cs
- OracleBFile.cs
- HMACRIPEMD160.cs
- securestring.cs
- DrawingImage.cs
- WebServiceMethodData.cs
- SmiMetaDataProperty.cs
- CurrentTimeZone.cs
- PerformanceCounter.cs
- FilterUserControlBase.cs
- DataRowComparer.cs
- SerializationStore.cs
- WebUtil.cs
- xdrvalidator.cs
- FacetDescriptionElement.cs
- DeflateStream.cs
- FormClosedEvent.cs
- FileLevelControlBuilderAttribute.cs
- PerformanceCounterManager.cs
- Help.cs
- ElementFactory.cs
- VectorKeyFrameCollection.cs
- WindowsTab.cs
- SchemaExporter.cs
- HierarchicalDataTemplate.cs
- DataFormat.cs
- SafeProcessHandle.cs
- SHA256.cs
- AmbientProperties.cs
- ReferentialConstraintRoleElement.cs
- WebColorConverter.cs
- RegexMatch.cs
- DocumentAutomationPeer.cs
- StructuralObject.cs
- CompatibleIComparer.cs
- GridViewColumnCollectionChangedEventArgs.cs
- PathFigure.cs
- ActiveDocumentEvent.cs
- AsyncPostBackErrorEventArgs.cs
- DbBuffer.cs
- SafeThemeHandle.cs
- ListenerConnectionModeReader.cs
- DesignerActionUIService.cs
- ObjectQuery.cs
- PenThread.cs
- Base64WriteStateInfo.cs
- Soap12ServerProtocol.cs
- RootBrowserWindow.cs
- DebugView.cs
- DependencyObjectCodeDomSerializer.cs
- NamedPipeTransportElement.cs
- Axis.cs
- UserControl.cs
- QilStrConcatenator.cs
- ActivityCodeGenerator.cs
- PageBuildProvider.cs
- SignatureConfirmations.cs
- VisualProxy.cs
- BaseAddressElementCollection.cs
- ToolBarTray.cs
- System.Data.OracleClient_BID.cs
- FileStream.cs
- Timer.cs
- RangeContentEnumerator.cs
- ErrorFormatterPage.cs
- WebRequestModuleElement.cs
- TreePrinter.cs
- CorruptStoreException.cs
- WebPartsPersonalizationAuthorization.cs
- PointAnimationBase.cs
- SpecularMaterial.cs
- FileIOPermission.cs
- SqlCacheDependency.cs
- ObjectCloneHelper.cs
- EventLogPermission.cs
- RelatedImageListAttribute.cs
- MD5.cs
- AccessKeyManager.cs
- Debug.cs
- SqlCacheDependencyDatabase.cs
- StrokeCollection2.cs