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
- SQLDateTimeStorage.cs
- BreadCrumbTextConverter.cs
- EntityTypeBase.cs
- WinInetCache.cs
- XPathAncestorIterator.cs
- XmlEnumAttribute.cs
- XsltSettings.cs
- OrderedDictionary.cs
- DelegatingTypeDescriptionProvider.cs
- ProfilePropertyMetadata.cs
- DataMemberFieldEditor.cs
- DrawingBrush.cs
- StylusPointCollection.cs
- EntryWrittenEventArgs.cs
- WebPartVerb.cs
- TemplateDefinition.cs
- ParsedAttributeCollection.cs
- StateDesignerConnector.cs
- FlowLayoutPanel.cs
- MethodCallConverter.cs
- EncoderReplacementFallback.cs
- followingsibling.cs
- Input.cs
- DataGridViewCellCollection.cs
- FixedPage.cs
- TcpTransportSecurity.cs
- DataViewManagerListItemTypeDescriptor.cs
- HashCodeCombiner.cs
- MatrixUtil.cs
- HyperLinkColumn.cs
- WebSysDisplayNameAttribute.cs
- ImageMetadata.cs
- Operators.cs
- TemplateBindingExpressionConverter.cs
- ImageAttributes.cs
- EncryptedKeyHashIdentifierClause.cs
- WebConfigurationFileMap.cs
- SqlConnectionStringBuilder.cs
- CompModHelpers.cs
- FormatterServices.cs
- ReachVisualSerializerAsync.cs
- FunctionNode.cs
- __Filters.cs
- XamlFigureLengthSerializer.cs
- IsolatedStorage.cs
- UInt32.cs
- TokenBasedSetEnumerator.cs
- PointConverter.cs
- GridViewCellAutomationPeer.cs
- iisPickupDirectory.cs
- QueryableDataSource.cs
- FileLoadException.cs
- XamlReader.cs
- ClientSideProviderDescription.cs
- ILGenerator.cs
- DbTypeMap.cs
- Button.cs
- HopperCache.cs
- TypeLibConverter.cs
- WeakHashtable.cs
- PointLight.cs
- XmlSchemaDocumentation.cs
- RangeValidator.cs
- ArrangedElementCollection.cs
- ClientRolePrincipal.cs
- CodePropertyReferenceExpression.cs
- ExpressionNormalizer.cs
- ToolStripGripRenderEventArgs.cs
- ValidationRuleCollection.cs
- DataGridViewBand.cs
- ListCollectionView.cs
- PathNode.cs
- BitmapCodecInfoInternal.cs
- WorkflowInstanceSuspendedRecord.cs
- GroupQuery.cs
- PersianCalendar.cs
- ListCollectionView.cs
- ObjectMemberMapping.cs
- ScaleTransform3D.cs
- HtmlInputRadioButton.cs
- SqlDependency.cs
- DataGridViewColumn.cs
- ConstraintCollection.cs
- XmlILIndex.cs
- ToolStripItemClickedEventArgs.cs
- DomNameTable.cs
- XslAstAnalyzer.cs
- PlatformNotSupportedException.cs
- ChildDocumentBlock.cs
- DtdParser.cs
- DependencyPropertyHelper.cs
- RefreshPropertiesAttribute.cs
- ServiceCredentialsSecurityTokenManager.cs
- VerificationException.cs
- complextypematerializer.cs
- XNodeValidator.cs
- designeractionbehavior.cs
- ListViewCommandEventArgs.cs
- LocalizableResourceBuilder.cs
- ToolStripRendererSwitcher.cs