Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Security / Cryptography / SHA384CryptoServiceProvider.cs / 1305376 / SHA384CryptoServiceProvider.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System; using System.Diagnostics.Contracts; namespace System.Security.Cryptography { ////// Wrapper around the CAPI implementation of the SHA-384 hashing algorithm /// [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] public sealed class SHA384CryptoServiceProvider : SHA384 { private CapiHashAlgorithm m_hashAlgorithm; //// [System.Security.SecurityCritical] public SHA384CryptoServiceProvider() { Contract.Ensures(m_hashAlgorithm != null); m_hashAlgorithm = new CapiHashAlgorithm(CapiNative.ProviderNames.MicrosoftEnhancedRsaAes, CapiNative.ProviderType.RsaAes, CapiNative.AlgorithmId.Sha384); } //// // [System.Security.SecurityCritical] protected override void Dispose(bool disposing) { try { if (disposing) { m_hashAlgorithm.Dispose(); } } finally { base.Dispose(disposing); } } ///// /// Reset the hash algorithm to begin hashing a new set of data /// //// [System.Security.SecurityCritical] public override void Initialize() { Contract.Assert(m_hashAlgorithm != null); m_hashAlgorithm.Initialize(); } ///// /// Hash a block of data /// //// [System.Security.SecurityCritical] protected override void HashCore(byte[] array, int ibStart, int cbSize) { Contract.Assert(m_hashAlgorithm != null); m_hashAlgorithm.HashCore(array, ibStart, cbSize); } ///// /// Complete the hash, returning its value /// //// [System.Security.SecurityCritical] protected override byte[] HashFinal() { Contract.Assert(m_hashAlgorithm != null); return m_hashAlgorithm.HashFinal(); } } } // 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
- MetafileHeaderWmf.cs
- uribuilder.cs
- JournalEntry.cs
- PieceNameHelper.cs
- CompModHelpers.cs
- DependencyPropertyDescriptor.cs
- MetafileEditor.cs
- Compress.cs
- ADConnectionHelper.cs
- CompressStream.cs
- Component.cs
- KeyConstraint.cs
- HttpCookiesSection.cs
- XmlDocumentFragment.cs
- StyleSheetDesigner.cs
- ToolStripArrowRenderEventArgs.cs
- BulletedListDesigner.cs
- UnitySerializationHolder.cs
- StoreContentChangedEventArgs.cs
- ChtmlCommandAdapter.cs
- WebPartDisplayModeCancelEventArgs.cs
- RoutedEventConverter.cs
- TextEffectCollection.cs
- DnsEndPoint.cs
- SafeBuffer.cs
- ToolStripInSituService.cs
- ReferencedCollectionType.cs
- AspProxy.cs
- Int64KeyFrameCollection.cs
- ConfigXmlCDataSection.cs
- AllMembershipCondition.cs
- TransformDescriptor.cs
- PageParserFilter.cs
- PropertyTabAttribute.cs
- WebConvert.cs
- ModifierKeysConverter.cs
- NetworkCredential.cs
- TaskFileService.cs
- ResponseBodyWriter.cs
- OdbcTransaction.cs
- EpmCustomContentDeSerializer.cs
- HeaderedItemsControl.cs
- ControlHelper.cs
- TableLayoutRowStyleCollection.cs
- SHA512.cs
- Symbol.cs
- PeerNameResolver.cs
- QueryAsyncResult.cs
- ConnectionManagementElement.cs
- DependencyObjectPropertyDescriptor.cs
- PermissionAttributes.cs
- BitmapSourceSafeMILHandle.cs
- EdmValidator.cs
- SystemIPGlobalProperties.cs
- X509Utils.cs
- AggregateNode.cs
- CompressedStack.cs
- SecurityContext.cs
- DataColumnMapping.cs
- XmlNamedNodeMap.cs
- XmlDataImplementation.cs
- StringAnimationUsingKeyFrames.cs
- SemanticResolver.cs
- FixedPosition.cs
- EventLogTraceListener.cs
- WindowsFormsSynchronizationContext.cs
- PrincipalPermission.cs
- TextEndOfSegment.cs
- TextFragmentEngine.cs
- ListBindingHelper.cs
- XsltConvert.cs
- ThreadAbortException.cs
- _NestedSingleAsyncResult.cs
- DbReferenceCollection.cs
- TableItemStyle.cs
- DoubleAnimationBase.cs
- ElementProxy.cs
- List.cs
- PackageFilter.cs
- RequestCacheValidator.cs
- RuntimeConfigLKG.cs
- BulletedListEventArgs.cs
- Grid.cs
- IntegerValidatorAttribute.cs
- basevalidator.cs
- LoadWorkflowByKeyAsyncResult.cs
- Timer.cs
- CollectionViewGroupRoot.cs
- ActivityBindForm.cs
- DataControlImageButton.cs
- InstalledFontCollection.cs
- XPathMessageFilterElementCollection.cs
- EvidenceTypeDescriptor.cs
- Geometry3D.cs
- ToolZone.cs
- ThumbButtonInfo.cs
- FormsAuthenticationUser.cs
- SystemGatewayIPAddressInformation.cs
- CacheHelper.cs
- PersonalizableAttribute.cs