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
- NetworkCredential.cs
- ObjectPersistData.cs
- UIPropertyMetadata.cs
- MgmtConfigurationRecord.cs
- DataKeyCollection.cs
- CacheVirtualItemsEvent.cs
- DefaultSettingsSection.cs
- ClassHandlersStore.cs
- ForEachAction.cs
- StorageEntityContainerMapping.cs
- ExpandoObject.cs
- SimpleTypeResolver.cs
- CharacterMetrics.cs
- SimpleTypeResolver.cs
- MenuItem.cs
- Guid.cs
- ConfigXmlComment.cs
- RegexReplacement.cs
- DocumentCollection.cs
- ComponentFactoryHelpers.cs
- ItemDragEvent.cs
- FixedSOMLineRanges.cs
- ObjectNavigationPropertyMapping.cs
- SweepDirectionValidation.cs
- SqlRowUpdatedEvent.cs
- ScriptingJsonSerializationSection.cs
- TransactionProtocolConverter.cs
- EntityCollectionChangedParams.cs
- ModuleElement.cs
- ObjectParameterCollection.cs
- ZoomPercentageConverter.cs
- CodeIterationStatement.cs
- assertwrapper.cs
- DispatcherExceptionFilterEventArgs.cs
- Domain.cs
- MessageEncodingBindingElementImporter.cs
- ListBoxAutomationPeer.cs
- GetMemberBinder.cs
- ProcessThreadCollection.cs
- ReflectPropertyDescriptor.cs
- SessionEndingCancelEventArgs.cs
- VectorConverter.cs
- PropertyChangedEventManager.cs
- UnsafeNativeMethodsMilCoreApi.cs
- SessionPageStateSection.cs
- _FtpDataStream.cs
- ValidationHelpers.cs
- MailDefinition.cs
- NativeMethods.cs
- FontUnit.cs
- HttpModuleActionCollection.cs
- SafeFileHandle.cs
- MergeFilterQuery.cs
- XPathNavigator.cs
- IndexedString.cs
- NonVisualControlAttribute.cs
- WebRequestModuleElementCollection.cs
- ProviderUtil.cs
- FormViewCommandEventArgs.cs
- DataColumnMappingCollection.cs
- HttpProcessUtility.cs
- BehaviorEditorPart.cs
- WpfXamlType.cs
- ResourcePermissionBaseEntry.cs
- TrustManager.cs
- ScrollBar.cs
- NativeMethods.cs
- AutomationPropertyInfo.cs
- BypassElement.cs
- TransformerTypeCollection.cs
- CqlLexer.cs
- NavigationCommands.cs
- DocobjHost.cs
- WebPartZone.cs
- SpellerHighlightLayer.cs
- DataComponentGenerator.cs
- ChildTable.cs
- GregorianCalendar.cs
- StringBlob.cs
- GeometryModel3D.cs
- SendMailErrorEventArgs.cs
- RuntimeArgumentHandle.cs
- DataViewListener.cs
- bidPrivateBase.cs
- SqlParameterCollection.cs
- AuthorizationRule.cs
- ShutDownListener.cs
- SortDescriptionCollection.cs
- Timeline.cs
- Int32Animation.cs
- AnimationLayer.cs
- RouteUrlExpressionBuilder.cs
- OutputCacheModule.cs
- SystemException.cs
- _ConnectOverlappedAsyncResult.cs
- ArglessEventHandlerProxy.cs
- Clipboard.cs
- HandlerBase.cs
- RijndaelManaged.cs
- QilTypeChecker.cs