Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Security / Cryptography / KeyedHashAlgorithm.cs / 1 / 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 // new static public KeyedHashAlgorithm Create() { return Create("System.Security.Cryptography.KeyedHashAlgorithm"); } new static public KeyedHashAlgorithm Create(String algName) { return (KeyedHashAlgorithm) CryptoConfig.CreateFromName(algName); } } } // 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
- ColumnHeader.cs
- ParsedAttributeCollection.cs
- Comparer.cs
- BooleanProjectedSlot.cs
- StringResourceManager.cs
- XmlWriterSettings.cs
- StandardTransformFactory.cs
- LayoutSettings.cs
- CrossSiteScriptingValidation.cs
- DataGridViewRowPostPaintEventArgs.cs
- BreakRecordTable.cs
- ByteStream.cs
- precedingquery.cs
- TdsParserStateObject.cs
- ProtectedConfiguration.cs
- XmlnsDictionary.cs
- TemplateBamlTreeBuilder.cs
- SpellerHighlightLayer.cs
- UTF7Encoding.cs
- Brush.cs
- XmlUnspecifiedAttribute.cs
- Visual.cs
- Intellisense.cs
- CookielessHelper.cs
- ImageUrlEditor.cs
- GregorianCalendarHelper.cs
- BindingExpression.cs
- DynamicQueryStringParameter.cs
- SystemEvents.cs
- LicFileLicenseProvider.cs
- HyperLink.cs
- QueryContinueDragEvent.cs
- SessionStateModule.cs
- Wizard.cs
- SignatureDescription.cs
- mediapermission.cs
- PointConverter.cs
- GridViewUpdateEventArgs.cs
- HandleCollector.cs
- DataErrorValidationRule.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- OutputCacheProfileCollection.cs
- IncomingWebResponseContext.cs
- ByteAnimation.cs
- Crc32.cs
- ReaderWriterLock.cs
- BaseUriHelper.cs
- Typography.cs
- EasingQuaternionKeyFrame.cs
- ColorConvertedBitmap.cs
- TreeViewHitTestInfo.cs
- Match.cs
- CodeSnippetStatement.cs
- RegexNode.cs
- HostingEnvironmentWrapper.cs
- StringConverter.cs
- SignerInfo.cs
- DataGridViewColumnTypeEditor.cs
- InterleavedZipPartStream.cs
- DataContractSerializerOperationBehavior.cs
- TaskSchedulerException.cs
- ADMembershipUser.cs
- FixedSOMPageElement.cs
- GenerateHelper.cs
- WindowsEditBoxRange.cs
- WindowsButton.cs
- TracePayload.cs
- RegexWorker.cs
- HttpStaticObjectsCollectionWrapper.cs
- SymbolType.cs
- AdCreatedEventArgs.cs
- HostedHttpContext.cs
- Subtree.cs
- List.cs
- XmlArrayAttribute.cs
- DataPager.cs
- RenderTargetBitmap.cs
- Hex.cs
- CapacityStreamGeometryContext.cs
- DispatcherHookEventArgs.cs
- WindowsListViewItemStartMenu.cs
- RenderOptions.cs
- ButtonStandardAdapter.cs
- CompoundFileIOPermission.cs
- ContentPosition.cs
- SrgsGrammar.cs
- ToolbarAUtomationPeer.cs
- ParentUndoUnit.cs
- AvTraceDetails.cs
- EventMappingSettings.cs
- WebPartVerbsEventArgs.cs
- ProvideValueServiceProvider.cs
- SmtpSection.cs
- SafeFileMapViewHandle.cs
- XmlEventCache.cs
- InstanceData.cs
- PEFileEvidenceFactory.cs
- PKCS1MaskGenerationMethod.cs
- ClipboardData.cs
- MenuCommandService.cs