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
- DataTableClearEvent.cs
- CommandDesigner.cs
- ElementNotEnabledException.cs
- XMLSchema.cs
- WebPartDesigner.cs
- X509ChainPolicy.cs
- WizardForm.cs
- WebPartUtil.cs
- OptimalTextSource.cs
- StateChangeEvent.cs
- HScrollBar.cs
- RequestTimeoutManager.cs
- FontUnit.cs
- BitmapEffectRenderDataResource.cs
- storepermission.cs
- IsolatedStorage.cs
- ObjRef.cs
- TextStore.cs
- TransformGroup.cs
- QualifiedId.cs
- CodeSubDirectoriesCollection.cs
- TransactionTraceIdentifier.cs
- LambdaCompiler.Address.cs
- MbpInfo.cs
- RequestCache.cs
- URI.cs
- DefaultMemberAttribute.cs
- ScrollChrome.cs
- IChannel.cs
- WebReferencesBuildProvider.cs
- StyleTypedPropertyAttribute.cs
- AxisAngleRotation3D.cs
- SmtpClient.cs
- XamlLoadErrorInfo.cs
- DecimalFormatter.cs
- PreservationFileReader.cs
- SamlSerializer.cs
- XmlNotation.cs
- RenamedEventArgs.cs
- TranslateTransform.cs
- Soap12ProtocolReflector.cs
- Point4DConverter.cs
- MSAANativeProvider.cs
- TableRowCollection.cs
- HandlerBase.cs
- FontEmbeddingManager.cs
- EncryptedPackageFilter.cs
- ParallelTimeline.cs
- ReferenceEqualityComparer.cs
- MeasurementDCInfo.cs
- Privilege.cs
- AttributeExtensions.cs
- WindowsAuthenticationEventArgs.cs
- WindowVisualStateTracker.cs
- CheckPair.cs
- MouseActionConverter.cs
- WindowsSidIdentity.cs
- contentDescriptor.cs
- WebPartDescription.cs
- CodeEntryPointMethod.cs
- XPathSelectionIterator.cs
- ServiceOperationViewControl.cs
- MemberBinding.cs
- SocketException.cs
- oledbconnectionstring.cs
- Enum.cs
- SettingsPropertyCollection.cs
- SqlTrackingQuery.cs
- HtmlInputCheckBox.cs
- TouchesOverProperty.cs
- PackagePart.cs
- SplitterEvent.cs
- SqlCommandBuilder.cs
- HttpPostedFile.cs
- PathSegment.cs
- SvcMapFileLoader.cs
- PngBitmapDecoder.cs
- AdornerHitTestResult.cs
- Mapping.cs
- SafeSecurityHelper.cs
- EasingFunctionBase.cs
- WeakKeyDictionary.cs
- WeakReferenceKey.cs
- ApplicationFileCodeDomTreeGenerator.cs
- XmlSchemaCollection.cs
- RequestStatusBarUpdateEventArgs.cs
- Track.cs
- FreezableCollection.cs
- ParameterModifier.cs
- SqlTriggerContext.cs
- DesignerRegion.cs
- ReachPageContentSerializerAsync.cs
- XsdBuilder.cs
- SqlUDTStorage.cs
- Attribute.cs
- ObjectPropertyMapping.cs
- ColumnMapProcessor.cs
- ControlBuilder.cs
- ScrollPattern.cs
- ImageIndexConverter.cs