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
- Padding.cs
- TypeConvertions.cs
- JournalEntryListConverter.cs
- ContextMarshalException.cs
- InstanceCompleteException.cs
- CompatibleComparer.cs
- RepeaterItem.cs
- _LocalDataStore.cs
- WebServiceClientProxyGenerator.cs
- UncommonField.cs
- ImageUrlEditor.cs
- ThicknessKeyFrameCollection.cs
- ToolBar.cs
- AttachedAnnotationChangedEventArgs.cs
- FormatControl.cs
- SecureConversationSecurityTokenParameters.cs
- dbdatarecord.cs
- PermissionListSet.cs
- DataTable.cs
- RemoteWebConfigurationHost.cs
- PhysicalOps.cs
- InputDevice.cs
- odbcmetadatafactory.cs
- ToolStripDropDownItemDesigner.cs
- EventLogHandle.cs
- DecoderBestFitFallback.cs
- MsmqSecureHashAlgorithm.cs
- StreamResourceInfo.cs
- ClientTargetCollection.cs
- TypeContext.cs
- DllNotFoundException.cs
- AssemblyCacheEntry.cs
- IntPtr.cs
- ValueProviderWrapper.cs
- DefaultHttpHandler.cs
- DbDataRecord.cs
- GreenMethods.cs
- SHA1Managed.cs
- ForceCopyBuildProvider.cs
- DesignerAttribute.cs
- SoapAttributeAttribute.cs
- ColorMap.cs
- MemberDomainMap.cs
- RuleProcessor.cs
- _BaseOverlappedAsyncResult.cs
- ItemCollection.cs
- DbParameterHelper.cs
- TreeViewItemAutomationPeer.cs
- ConfigXmlText.cs
- UnitySerializationHolder.cs
- DEREncoding.cs
- CurrencyWrapper.cs
- SamlAssertion.cs
- Transform.cs
- X509SecurityToken.cs
- METAHEADER.cs
- HttpHandlerActionCollection.cs
- XmlUtilWriter.cs
- PrintPreviewDialog.cs
- AutomationPatternInfo.cs
- VideoDrawing.cs
- NTAccount.cs
- FieldToken.cs
- DataTableTypeConverter.cs
- OperationAbortedException.cs
- ConnectionPoolRegistry.cs
- SchemaAttDef.cs
- SchemaAttDef.cs
- SynchronizationFilter.cs
- FormViewInsertedEventArgs.cs
- InstanceCreationEditor.cs
- TdsParameterSetter.cs
- _WinHttpWebProxyDataBuilder.cs
- ObjectContext.cs
- WmiEventSink.cs
- FormsIdentity.cs
- TraceUtility.cs
- WebServiceParameterData.cs
- SiteMapNodeItem.cs
- BuildResult.cs
- X509UI.cs
- ScaleTransform3D.cs
- ToolStripProgressBar.cs
- DataGridItemCollection.cs
- ObjectDataSourceDisposingEventArgs.cs
- BookmarkEventArgs.cs
- GC.cs
- SmtpDigestAuthenticationModule.cs
- XmlDigitalSignatureProcessor.cs
- UidManager.cs
- XPathDocumentBuilder.cs
- ThreadAbortException.cs
- FileStream.cs
- InplaceBitmapMetadataWriter.cs
- Point3D.cs
- BlockUIContainer.cs
- SerializationIncompleteException.cs
- HandlerFactoryWrapper.cs
- EditingMode.cs
- DataComponentGenerator.cs