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
- WriteTimeStream.cs
- ChannelServices.cs
- ZoneButton.cs
- XmlSortKeyAccumulator.cs
- AppSettingsReader.cs
- Registration.cs
- TextReader.cs
- Main.cs
- nulltextnavigator.cs
- StringFormat.cs
- WsatRegistrationHeader.cs
- LinearGradientBrush.cs
- TextOptions.cs
- FontNamesConverter.cs
- HandledMouseEvent.cs
- XmlEncodedRawTextWriter.cs
- ContractMapping.cs
- WebConvert.cs
- LayoutTable.cs
- WizardForm.cs
- CipherData.cs
- SortedList.cs
- RelativeSource.cs
- SamlSubject.cs
- GridViewDeletedEventArgs.cs
- NonSerializedAttribute.cs
- AttributeEmitter.cs
- SqlTypeSystemProvider.cs
- WriteTimeStream.cs
- SocketElement.cs
- EventItfInfo.cs
- HashRepartitionEnumerator.cs
- SubMenuStyleCollection.cs
- TdsParserStaticMethods.cs
- TextEditorTables.cs
- OracleDataAdapter.cs
- TypeDelegator.cs
- FontNamesConverter.cs
- SoapIncludeAttribute.cs
- ContainerParagraph.cs
- GridItemCollection.cs
- VirtualPath.cs
- UnsafeNetInfoNativeMethods.cs
- GridViewUpdateEventArgs.cs
- SpanIndex.cs
- AsymmetricAlgorithm.cs
- Inline.cs
- Cursors.cs
- FileCodeGroup.cs
- StatusBarDrawItemEvent.cs
- DataRowChangeEvent.cs
- DesignerCalendarAdapter.cs
- DataSourceConverter.cs
- MailMessageEventArgs.cs
- MD5CryptoServiceProvider.cs
- DataBindingHandlerAttribute.cs
- PageContent.cs
- Literal.cs
- ListSortDescriptionCollection.cs
- PropertyFilterAttribute.cs
- Stacktrace.cs
- SetStateDesigner.cs
- SmtpNetworkElement.cs
- CngKeyCreationParameters.cs
- DBConnection.cs
- CodeAttributeDeclarationCollection.cs
- ProxyAttribute.cs
- IsolatedStorageFile.cs
- DoubleLinkListEnumerator.cs
- ProcessModule.cs
- CheckBoxAutomationPeer.cs
- AttachedPropertyMethodSelector.cs
- TextDecorationUnitValidation.cs
- ObjectMaterializedEventArgs.cs
- ChannelSinkStacks.cs
- PictureBox.cs
- NativeMethods.cs
- SlipBehavior.cs
- OptimizedTemplateContent.cs
- TextProviderWrapper.cs
- BasicKeyConstraint.cs
- VisualStateChangedEventArgs.cs
- MenuItemBinding.cs
- LookupTables.cs
- AsyncOperationManager.cs
- ContextInformation.cs
- Buffer.cs
- StringUtil.cs
- PingOptions.cs
- LocalizedNameDescriptionPair.cs
- XmlDataSourceNodeDescriptor.cs
- SchemaImporter.cs
- SoapFault.cs
- MissingSatelliteAssemblyException.cs
- AttributeSetAction.cs
- TextTreeObjectNode.cs
- Item.cs
- KeyboardDevice.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ModulesEntry.cs