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
- XamlToRtfWriter.cs
- SiteMapDataSourceView.cs
- DataGridViewSelectedCellCollection.cs
- StringDictionary.cs
- TimeoutException.cs
- DSASignatureDeformatter.cs
- MsmqSecureHashAlgorithm.cs
- AutomationElementCollection.cs
- BezierSegment.cs
- StandardToolWindows.cs
- CacheAxisQuery.cs
- MatrixUtil.cs
- RenderTargetBitmap.cs
- TextDecorationUnitValidation.cs
- PolicyManager.cs
- EntityDataSourceDesigner.cs
- InnerItemCollectionView.cs
- PageCodeDomTreeGenerator.cs
- RadioButton.cs
- OdbcConnectionPoolProviderInfo.cs
- PageAsyncTaskManager.cs
- StylusSystemGestureEventArgs.cs
- PrintDialog.cs
- WindowsFormsLinkLabel.cs
- AnonymousIdentificationSection.cs
- AudioDeviceOut.cs
- HealthMonitoringSection.cs
- Scene3D.cs
- SqlInfoMessageEvent.cs
- StronglyTypedResourceBuilder.cs
- Filter.cs
- Encoding.cs
- SoapHeaderException.cs
- DependencyPropertyAttribute.cs
- TdsValueSetter.cs
- NullExtension.cs
- Misc.cs
- QueryCacheEntry.cs
- SerializationFieldInfo.cs
- Utils.cs
- SurrogateSelector.cs
- AccessorTable.cs
- CodeMemberField.cs
- Function.cs
- Matrix3DConverter.cs
- Trigger.cs
- OleDbCommand.cs
- VerifyHashRequest.cs
- CollectionChangeEventArgs.cs
- EntityCommandExecutionException.cs
- ResourceCategoryAttribute.cs
- ComponentEvent.cs
- HotSpotCollection.cs
- MediaCommands.cs
- CryptoConfig.cs
- MarkupCompiler.cs
- DataGridTextColumn.cs
- CTreeGenerator.cs
- LoginStatusDesigner.cs
- DataControlImageButton.cs
- AppSettingsSection.cs
- ItemsControlAutomationPeer.cs
- HtmlWindow.cs
- FrameworkContentElement.cs
- ListBoxAutomationPeer.cs
- CodeAttributeDeclarationCollection.cs
- WindowHideOrCloseTracker.cs
- Button.cs
- CompositeScriptReference.cs
- WebPartTransformer.cs
- PrintDialog.cs
- TdsRecordBufferSetter.cs
- Calendar.cs
- ConfigurationLoader.cs
- CaseInsensitiveOrdinalStringComparer.cs
- DataSourceControlBuilder.cs
- NullableLongAverageAggregationOperator.cs
- TokenizerHelper.cs
- CommentEmitter.cs
- AttributeQuery.cs
- TraceHwndHost.cs
- XmlSchemaSimpleContent.cs
- OleDbCommand.cs
- ErrorStyle.cs
- Sentence.cs
- SqlGenericUtil.cs
- AuthenticationSection.cs
- HandledEventArgs.cs
- basenumberconverter.cs
- ReflectionServiceProvider.cs
- DataGridViewEditingControlShowingEventArgs.cs
- PreApplicationStartMethodAttribute.cs
- ContextMenu.cs
- SqlDataSourceCommandEventArgs.cs
- XmlReaderSettings.cs
- DesignObjectWrapper.cs
- WorkflowIdleElement.cs
- SelectQueryOperator.cs
- System.Data.OracleClient_BID.cs
- Window.cs