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
- UnescapedXmlDiagnosticData.cs
- OptimizedTemplateContent.cs
- ToolStripGrip.cs
- ComplexLine.cs
- XmlArrayAttribute.cs
- DelegatedStream.cs
- BindStream.cs
- HttpServerVarsCollection.cs
- EntityDataSourceSelectedEventArgs.cs
- XmlSchemaAnnotated.cs
- Attributes.cs
- COM2ColorConverter.cs
- EditorZoneBase.cs
- WebScriptEnablingElement.cs
- Matrix3DConverter.cs
- UrlMapping.cs
- ImageList.cs
- SqlNotificationRequest.cs
- DocumentViewerAutomationPeer.cs
- ClientTargetSection.cs
- ModulesEntry.cs
- SoapObjectInfo.cs
- ListBindingHelper.cs
- FragmentQuery.cs
- WSSecureConversationFeb2005.cs
- DateTimeParse.cs
- SafeLibraryHandle.cs
- ItemCheckedEvent.cs
- ServerIdentity.cs
- NodeFunctions.cs
- ExpressionsCollectionEditor.cs
- XsdBuildProvider.cs
- xsdvalidator.cs
- FrameworkEventSource.cs
- DocumentXPathNavigator.cs
- InvalidOleVariantTypeException.cs
- HtmlInputPassword.cs
- TextEditorSpelling.cs
- GatewayDefinition.cs
- StringValueConverter.cs
- ExpressionTable.cs
- ClassValidator.cs
- VectorCollectionValueSerializer.cs
- UInt64.cs
- CommandBindingCollection.cs
- GridViewCancelEditEventArgs.cs
- DataControlField.cs
- ClaimComparer.cs
- XmlEntityReference.cs
- Repeater.cs
- CellTreeNodeVisitors.cs
- DragSelectionMessageFilter.cs
- DataGridViewCell.cs
- CharacterMetricsDictionary.cs
- ContextProperty.cs
- EdmProviderManifest.cs
- FileDetails.cs
- KeyboardNavigation.cs
- MappingSource.cs
- _NestedSingleAsyncResult.cs
- StylusPlugin.cs
- AdornerDecorator.cs
- ExpressionParser.cs
- ControlParser.cs
- ObjectKeyFrameCollection.cs
- GridViewAutomationPeer.cs
- CryptoApi.cs
- MeasurementDCInfo.cs
- GenerateScriptTypeAttribute.cs
- MailBnfHelper.cs
- NullableConverter.cs
- WindowsScrollBar.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- TargetInvocationException.cs
- CodeMemberField.cs
- UiaCoreProviderApi.cs
- PlanCompiler.cs
- embossbitmapeffect.cs
- ResourceDescriptionAttribute.cs
- Attributes.cs
- IDataContractSurrogate.cs
- TypeUnloadedException.cs
- CodeDomSerializationProvider.cs
- StringComparer.cs
- SafeEventLogWriteHandle.cs
- CacheAxisQuery.cs
- CodeAttachEventStatement.cs
- Int16Animation.cs
- ProcessModuleCollection.cs
- ToolStripProgressBar.cs
- DataSourceGeneratorException.cs
- BasicAsyncResult.cs
- StaticExtensionConverter.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ProfileService.cs
- NameGenerator.cs
- columnmapfactory.cs
- CrossContextChannel.cs
- RenderDataDrawingContext.cs
- SimpleFileLog.cs