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
- KnownBoxes.cs
- UnauthorizedWebPart.cs
- NumberFunctions.cs
- InputLanguageProfileNotifySink.cs
- FileSecurity.cs
- EdmPropertyAttribute.cs
- Vector3DCollectionConverter.cs
- QEncodedStream.cs
- TextBoxView.cs
- FixedElement.cs
- CqlParserHelpers.cs
- PixelShader.cs
- PerformanceCounterPermission.cs
- RecognizerInfo.cs
- EUCJPEncoding.cs
- TrackBarRenderer.cs
- XsltArgumentList.cs
- InstanceKeyView.cs
- METAHEADER.cs
- WebBrowserDocumentCompletedEventHandler.cs
- Stacktrace.cs
- ImageBrush.cs
- HighlightComponent.cs
- SqlClientFactory.cs
- SqlDataSourceQueryEditor.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- ToolTip.cs
- TextEditorContextMenu.cs
- SortKey.cs
- ProviderMetadataCachedInformation.cs
- UdpTransportBindingElement.cs
- Point3DKeyFrameCollection.cs
- CreateUserErrorEventArgs.cs
- SoundPlayer.cs
- PresentationTraceSources.cs
- IPipelineRuntime.cs
- UIServiceHelper.cs
- XmlSchemaAny.cs
- CurrentChangedEventManager.cs
- MeasurementDCInfo.cs
- XmlWellformedWriter.cs
- DbQueryCommandTree.cs
- WebExceptionStatus.cs
- DependentTransaction.cs
- EmptyReadOnlyDictionaryInternal.cs
- JournalEntryListConverter.cs
- EntityTypeBase.cs
- SettingsPropertyIsReadOnlyException.cs
- DataServiceProcessingPipelineEventArgs.cs
- DataPagerFieldCollection.cs
- UnsafeNativeMethods.cs
- PageContent.cs
- OracleDataReader.cs
- SymDocumentType.cs
- QueryPageSettingsEventArgs.cs
- ProcessModelInfo.cs
- UnsafeNativeMethods.cs
- PolyBezierSegmentFigureLogic.cs
- ArraySortHelper.cs
- Win32Native.cs
- HashHelper.cs
- RegexFCD.cs
- StringInfo.cs
- CurrentChangingEventManager.cs
- CriticalExceptions.cs
- DocumentAutomationPeer.cs
- Help.cs
- Misc.cs
- IdnElement.cs
- ToolBarPanel.cs
- XmlComment.cs
- DataRecordInternal.cs
- XNodeNavigator.cs
- SmtpFailedRecipientException.cs
- CheckBoxStandardAdapter.cs
- AmbientValueAttribute.cs
- ObjectListDataBindEventArgs.cs
- TemplateControlBuildProvider.cs
- FileSecurity.cs
- NameGenerator.cs
- PropertyPath.cs
- RightNameExpirationInfoPair.cs
- Utils.cs
- CompilationUnit.cs
- NullExtension.cs
- PropertyOverridesDialog.cs
- SortQuery.cs
- OutputCacheSettingsSection.cs
- ServicePointManager.cs
- DynamicUpdateCommand.cs
- GridViewColumnCollectionChangedEventArgs.cs
- ComplexType.cs
- BindingSource.cs
- ChtmlCommandAdapter.cs
- NumericUpDownAccelerationCollection.cs
- GenerateHelper.cs
- wmiprovider.cs
- MailWriter.cs
- RestClientProxyHandler.cs
- DiscreteKeyFrames.cs