Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / MsmqSecureHashAlgorithm.cs / 1 / MsmqSecureHashAlgorithm.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel { using System.ServiceModel.Channels; public enum MsmqSecureHashAlgorithm { MD5, Sha1, Sha256, Sha512 } static class MsmqSecureHashAlgorithmHelper { public static bool IsDefined(MsmqSecureHashAlgorithm algorithm) { return algorithm == MsmqSecureHashAlgorithm.MD5 || algorithm == MsmqSecureHashAlgorithm.Sha1 || algorithm == MsmqSecureHashAlgorithm.Sha256 || algorithm == MsmqSecureHashAlgorithm.Sha512; } public static int ToInt32(MsmqSecureHashAlgorithm algorithm) { switch (algorithm) { case MsmqSecureHashAlgorithm.MD5: return UnsafeNativeMethods.CALG_MD5; case MsmqSecureHashAlgorithm.Sha1: return UnsafeNativeMethods.CALG_SHA1; case MsmqSecureHashAlgorithm.Sha256: return UnsafeNativeMethods.CALG_SHA_256; case MsmqSecureHashAlgorithm.Sha512: return UnsafeNativeMethods.CALG_SHA_512; default: return -1; } } } } // 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
- HMACRIPEMD160.cs
- XmlQueryContext.cs
- PreviewPageInfo.cs
- LoaderAllocator.cs
- XmlNodeList.cs
- Logging.cs
- WorkflowShape.cs
- Itemizer.cs
- OdbcError.cs
- Transform3D.cs
- ACL.cs
- QuaternionValueSerializer.cs
- StringArrayConverter.cs
- DataGridViewImageCell.cs
- FixedSOMGroup.cs
- XmlHierarchicalDataSourceView.cs
- SrgsItemList.cs
- SynchronizedDispatch.cs
- XamlSerializationHelper.cs
- LogFlushAsyncResult.cs
- XmlArrayItemAttributes.cs
- WebBrowserNavigatedEventHandler.cs
- DispatcherEventArgs.cs
- FontFamily.cs
- ApplicationProxyInternal.cs
- ViewBox.cs
- ColumnWidthChangedEvent.cs
- Semaphore.cs
- RecommendedAsConfigurableAttribute.cs
- CancellationHandler.cs
- XmlIlVisitor.cs
- XmlSchemaType.cs
- WeakHashtable.cs
- ConnectionPoolManager.cs
- ConnectorDragDropGlyph.cs
- linebase.cs
- SetIterators.cs
- SQlBooleanStorage.cs
- FormatterServices.cs
- AudioBase.cs
- ToolStripRenderer.cs
- WorkflowTransactionOptions.cs
- CompositeDataBoundControl.cs
- DataPagerFieldItem.cs
- XamlDesignerSerializationManager.cs
- DataMemberFieldConverter.cs
- EditorZoneBase.cs
- ControlPager.cs
- ContextMenu.cs
- HtmlSelectionListAdapter.cs
- ExcCanonicalXml.cs
- WebPartEditorCancelVerb.cs
- InheritedPropertyDescriptor.cs
- BindingOperations.cs
- ColorPalette.cs
- _BufferOffsetSize.cs
- XmlWrappingWriter.cs
- Atom10ItemFormatter.cs
- SecurityRuntime.cs
- CachedRequestParams.cs
- CounterNameConverter.cs
- CipherData.cs
- WebPartChrome.cs
- ToolBarButton.cs
- TraceUtility.cs
- ObjectList.cs
- AttachedPropertyMethodSelector.cs
- EventSetter.cs
- HttpConfigurationContext.cs
- Misc.cs
- ParallelEnumerable.cs
- ConfigPathUtility.cs
- StringUtil.cs
- UshortList2.cs
- DataGridViewColumnCollectionEditor.cs
- HasCopySemanticsAttribute.cs
- XmlILModule.cs
- PrintController.cs
- CodeExpressionCollection.cs
- AddingNewEventArgs.cs
- Table.cs
- DockAndAnchorLayout.cs
- Localizer.cs
- GrabHandleGlyph.cs
- StaticDataManager.cs
- ObjectIDGenerator.cs
- RectAnimationClockResource.cs
- DocumentsTrace.cs
- SmiEventStream.cs
- DiscoveryReferences.cs
- SHA1Managed.cs
- XPathChildIterator.cs
- EventLevel.cs
- WindowsGraphics2.cs
- PassportPrincipal.cs
- Button.cs
- IgnoreDataMemberAttribute.cs
- OdbcConnectionOpen.cs
- AssemblyAttributesGoHere.cs
- AsyncPostBackTrigger.cs