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
- GeneralTransform3DTo2D.cs
- ListDictionaryInternal.cs
- CellQuery.cs
- ObjectDataSourceWizardForm.cs
- StickyNote.cs
- userdatakeys.cs
- CalendarKeyboardHelper.cs
- DebugManager.cs
- DispatchWrapper.cs
- WmpBitmapDecoder.cs
- TextEditorTables.cs
- Hash.cs
- CodeCatchClause.cs
- LabelDesigner.cs
- OutputCacheProfile.cs
- ValidationException.cs
- TemplatedWizardStep.cs
- ListItemCollection.cs
- ButtonBaseAutomationPeer.cs
- FieldToken.cs
- ReadWriteControlDesigner.cs
- ChangePassword.cs
- TypedOperationInfo.cs
- XomlCompilerResults.cs
- Switch.cs
- LayoutExceptionEventArgs.cs
- ResolveNameEventArgs.cs
- StateChangeEvent.cs
- DataGrid.cs
- SpellerInterop.cs
- PersonalizationStateQuery.cs
- ScriptReferenceBase.cs
- StylusPointPropertyInfo.cs
- DateTimeValueSerializer.cs
- UnsafeNativeMethods.cs
- RootProfilePropertySettingsCollection.cs
- CTreeGenerator.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- SchemaTypeEmitter.cs
- AsmxEndpointPickerExtension.cs
- TableLayoutStyle.cs
- EdmValidator.cs
- AsyncOperationLifetimeManager.cs
- MatchingStyle.cs
- EventLog.cs
- RC2.cs
- StateMachineHelpers.cs
- ReadOnlyDataSource.cs
- KeyMatchBuilder.cs
- _DigestClient.cs
- Paragraph.cs
- DataGridViewLinkColumn.cs
- TreeViewAutomationPeer.cs
- HtmlTableCell.cs
- BufferedGraphicsContext.cs
- ArithmeticException.cs
- TableRow.cs
- Queue.cs
- CommunicationObject.cs
- parserscommon.cs
- DecimalAnimationUsingKeyFrames.cs
- TypeReference.cs
- SafeCoTaskMem.cs
- SmtpDigestAuthenticationModule.cs
- KeyFrames.cs
- RecordManager.cs
- SqlRewriteScalarSubqueries.cs
- SuppressMessageAttribute.cs
- WebConfigurationManager.cs
- DrawingDrawingContext.cs
- TrackingStringDictionary.cs
- TypedDataSourceCodeGenerator.cs
- CachedBitmap.cs
- Win32PrintDialog.cs
- ToolStripItemRenderEventArgs.cs
- CallTemplateAction.cs
- DataColumnPropertyDescriptor.cs
- Polygon.cs
- Utils.cs
- PieceDirectory.cs
- ForeignKeyConstraint.cs
- DBDataPermission.cs
- AssertSection.cs
- ViewCellSlot.cs
- ListViewItem.cs
- XmlValidatingReaderImpl.cs
- StylusPointProperty.cs
- MenuItemStyleCollection.cs
- safex509handles.cs
- BasicSecurityProfileVersion.cs
- SqlConnectionFactory.cs
- Timer.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- TemplateParser.cs
- GlobalizationSection.cs
- Switch.cs
- ControlPropertyNameConverter.cs
- PrtTicket_Editor.cs
- InstanceData.cs
- ToolStripLabel.cs