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
- SimpleRecyclingCache.cs
- CodeConditionStatement.cs
- QuotedPrintableStream.cs
- PolicyUnit.cs
- DownloadProgressEventArgs.cs
- WebPartConnectionsConfigureVerb.cs
- TypedTableBaseExtensions.cs
- ALinqExpressionVisitor.cs
- LiteralControl.cs
- OleDbPropertySetGuid.cs
- ListViewPagedDataSource.cs
- CheckBoxBaseAdapter.cs
- UrlMapping.cs
- BypassElement.cs
- WebInvokeAttribute.cs
- FontSizeConverter.cs
- UnmanagedBitmapWrapper.cs
- AdapterDictionary.cs
- TitleStyle.cs
- TagNameToTypeMapper.cs
- AQNBuilder.cs
- ContentDisposition.cs
- Context.cs
- CalendarData.cs
- PackageStore.cs
- oledbmetadatacollectionnames.cs
- XmlNodeReader.cs
- x509utils.cs
- QilExpression.cs
- OneOfElement.cs
- FrameworkElement.cs
- ThemeDictionaryExtension.cs
- ContainerActivationHelper.cs
- NativeMethodsCLR.cs
- TimeManager.cs
- ServiceOperationInvoker.cs
- ErrorFormatter.cs
- EventBuilder.cs
- EntityCollection.cs
- IpcClientManager.cs
- x509utils.cs
- itemelement.cs
- CodeTryCatchFinallyStatement.cs
- AutomationElementIdentifiers.cs
- ValueProviderWrapper.cs
- DesignerValidatorAdapter.cs
- ImmutablePropertyDescriptorGridEntry.cs
- BaseTemplateCodeDomTreeGenerator.cs
- SocketAddress.cs
- AuthorizationRule.cs
- SaveFileDialog.cs
- CustomSignedXml.cs
- SqlClientMetaDataCollectionNames.cs
- Viewport3DVisual.cs
- Types.cs
- AttributeInfo.cs
- ExpressionBuilderContext.cs
- RetrieveVirtualItemEventArgs.cs
- IProvider.cs
- AsymmetricSignatureFormatter.cs
- ReceiveSecurityHeader.cs
- AsymmetricSignatureFormatter.cs
- XpsFilter.cs
- MimeFormatter.cs
- GeneralTransformGroup.cs
- login.cs
- Listbox.cs
- PeerNameResolver.cs
- UnmanagedMarshal.cs
- COM2PropertyDescriptor.cs
- MethodRental.cs
- ScrollableControl.cs
- DataColumnChangeEvent.cs
- DataAdapter.cs
- MultipleViewPattern.cs
- SID.cs
- RegexCompiler.cs
- Console.cs
- ToolZone.cs
- NotSupportedException.cs
- TCPListener.cs
- StrongNameUtility.cs
- XmlReader.cs
- RepeaterItemCollection.cs
- EventPrivateKey.cs
- CutCopyPasteHelper.cs
- SqlResolver.cs
- LogSwitch.cs
- ContainerFilterService.cs
- ClipboardData.cs
- EntryIndex.cs
- InlinedAggregationOperator.cs
- SHA384.cs
- TableDetailsRow.cs
- ClaimSet.cs
- TextClipboardData.cs
- HashSetDebugView.cs
- Constraint.cs
- BamlLocalizationDictionary.cs
- BadImageFormatException.cs