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
- ObjectHelper.cs
- UnmanagedMemoryStream.cs
- WindowsTitleBar.cs
- OleDbEnumerator.cs
- Int32AnimationBase.cs
- Vector.cs
- LogicalExpr.cs
- StubHelpers.cs
- BookmarkList.cs
- NetworkCredential.cs
- baseaxisquery.cs
- TextServicesContext.cs
- RayHitTestParameters.cs
- CodeDirectionExpression.cs
- WebCategoryAttribute.cs
- AuthenticationModuleElementCollection.cs
- DataGridTextBox.cs
- DesignerTextViewAdapter.cs
- CachedPathData.cs
- CellNormalizer.cs
- InkCanvasAutomationPeer.cs
- EntityDesignerBuildProvider.cs
- PageAsyncTaskManager.cs
- TextMetrics.cs
- PropertyChangeTracker.cs
- WindowsButton.cs
- RuntimeConfig.cs
- GridToolTip.cs
- ComponentResourceManager.cs
- ListChangedEventArgs.cs
- OdbcPermission.cs
- ToggleButton.cs
- PrimitiveType.cs
- SqlRowUpdatedEvent.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ParallelDesigner.cs
- Membership.cs
- Currency.cs
- SmtpReplyReaderFactory.cs
- DesignerObjectListAdapter.cs
- TimeIntervalCollection.cs
- CheckPair.cs
- EventDescriptor.cs
- NullPackagingPolicy.cs
- EventLogEntryCollection.cs
- RowType.cs
- wgx_render.cs
- DateTimePicker.cs
- DocumentPageTextView.cs
- FormViewModeEventArgs.cs
- M3DUtil.cs
- UIPermission.cs
- BamlRecordReader.cs
- Hex.cs
- PackWebRequest.cs
- PageCatalogPart.cs
- Executor.cs
- ProxyGenerator.cs
- TypeUtil.cs
- RectConverter.cs
- ChannelOptions.cs
- WinEventHandler.cs
- Point3DAnimationBase.cs
- XmlElementAttribute.cs
- Ipv6Element.cs
- ISFClipboardData.cs
- Select.cs
- StreamInfo.cs
- HttpListenerResponse.cs
- _RequestLifetimeSetter.cs
- Token.cs
- TextTreeRootTextBlock.cs
- StateRuntime.cs
- counter.cs
- WebPart.cs
- AssemblyBuilder.cs
- ToolStripItemCollection.cs
- DummyDataSource.cs
- ExtendedPropertyInfo.cs
- FormatSettings.cs
- SamlAssertionKeyIdentifierClause.cs
- BitmapMetadataBlob.cs
- DependencyObjectProvider.cs
- OperationFormatter.cs
- FtpCachePolicyElement.cs
- CodeArrayIndexerExpression.cs
- DbConnectionOptions.cs
- RemotingSurrogateSelector.cs
- SponsorHelper.cs
- SecurityPolicySection.cs
- HierarchicalDataSourceControl.cs
- UnsafeNativeMethods.cs
- XmlValueConverter.cs
- Helpers.cs
- EntityCommand.cs
- ProviderIncompatibleException.cs
- SingleResultAttribute.cs
- WmfPlaceableFileHeader.cs
- DesignerForm.cs
- SafeProcessHandle.cs