Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Cryptography / KeyedHashAlgorithm.cs / 1305376 / KeyedHashAlgorithm.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //[....] // // // KeyedHashAlgorithm.cs // namespace System.Security.Cryptography { [System.Runtime.InteropServices.ComVisible(true)] public abstract class KeyedHashAlgorithm : HashAlgorithm { protected byte[] KeyValue; protected KeyedHashAlgorithm() {} // IDisposable methods protected override void Dispose(bool disposing) { // For keyed hash algorithms, we always want to zero out the key value if (disposing) { if (KeyValue != null) Array.Clear(KeyValue, 0, KeyValue.Length); KeyValue = null; } base.Dispose(disposing); } // // public properties // public virtual byte[] Key { get { return (byte[]) KeyValue.Clone(); } set { if (State != 0) throw new CryptographicException(Environment.GetResourceString("Cryptography_HashKeySet")); KeyValue = (byte[]) value.Clone(); } } // // public methods // [System.Security.SecuritySafeCritical] // auto-generated new static public KeyedHashAlgorithm Create() { return Create("System.Security.Cryptography.KeyedHashAlgorithm"); } [System.Security.SecuritySafeCritical] // auto-generated new static public KeyedHashAlgorithm Create(String algName) { return (KeyedHashAlgorithm) CryptoConfig.CreateFromName(algName); } } } // 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
- ContainerParaClient.cs
- OverlappedAsyncResult.cs
- ContentValidator.cs
- InvokePattern.cs
- CachedRequestParams.cs
- SocketAddress.cs
- EdmFunctionAttribute.cs
- MeasureData.cs
- Wizard.cs
- WebBrowserNavigatingEventHandler.cs
- Documentation.cs
- ServerIdentity.cs
- XmlBoundElement.cs
- TypeSource.cs
- ToolStripItem.cs
- TextTreeInsertUndoUnit.cs
- SecurityElementBase.cs
- FontUnit.cs
- Control.cs
- AttachmentService.cs
- WorkflowServiceNamespace.cs
- QueueProcessor.cs
- Trace.cs
- SizeAnimation.cs
- StylusPointProperty.cs
- HttpException.cs
- Geometry.cs
- EntityObject.cs
- ColorConverter.cs
- Iis7Helper.cs
- ArithmeticException.cs
- cryptoapiTransform.cs
- StructuredTypeEmitter.cs
- Compilation.cs
- MoveSizeWinEventHandler.cs
- HostProtectionPermission.cs
- ACL.cs
- _KerberosClient.cs
- StylusCollection.cs
- BreakRecordTable.cs
- CqlLexerHelpers.cs
- Activity.cs
- IndentedTextWriter.cs
- ControlUtil.cs
- DesignSurfaceEvent.cs
- SerializationSectionGroup.cs
- AlternateView.cs
- InArgument.cs
- EntityDesignerBuildProvider.cs
- CodeComment.cs
- ClrProviderManifest.cs
- EventRoute.cs
- ThreadStartException.cs
- ObjectParameter.cs
- TableFieldsEditor.cs
- TrackingRecord.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- GuidConverter.cs
- AsymmetricSignatureDeformatter.cs
- TableColumnCollectionInternal.cs
- BaseAsyncResult.cs
- CreatingCookieEventArgs.cs
- DbBuffer.cs
- HostingPreferredMapPath.cs
- EventLogPermission.cs
- FileVersion.cs
- DataGridViewEditingControlShowingEventArgs.cs
- Policy.cs
- errorpatternmatcher.cs
- SpecularMaterial.cs
- TraceSection.cs
- SerialReceived.cs
- RadioButtonFlatAdapter.cs
- Rect3D.cs
- LicFileLicenseProvider.cs
- FormViewInsertEventArgs.cs
- PolyLineSegmentFigureLogic.cs
- BooleanAnimationBase.cs
- TextRangeSerialization.cs
- SelectionRange.cs
- QuaternionConverter.cs
- OleDbFactory.cs
- FileEnumerator.cs
- RecognizedPhrase.cs
- XNodeValidator.cs
- EncodingInfo.cs
- SizeChangedEventArgs.cs
- XmlElementCollection.cs
- precedingquery.cs
- ChooseAction.cs
- DesignOnlyAttribute.cs
- IsolatedStorageFile.cs
- DefaultBindingPropertyAttribute.cs
- ObjectAnimationUsingKeyFrames.cs
- Frame.cs
- SuspendDesigner.cs
- DbReferenceCollection.cs
- InstanceDataCollectionCollection.cs
- SmtpLoginAuthenticationModule.cs
- BaseParser.cs