Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA256.cs / 1 / HMACSHA256.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
//
// HMACSHA256.cs
//
namespace System.Security.Cryptography {
[System.Runtime.InteropServices.ComVisible(true)]
public class HMACSHA256 : HMAC {
//
// public constructors
//
public HMACSHA256 () : this (Utils.GenerateRandom(64)) {}
public HMACSHA256 (byte[] key) {
m_hashName = "SHA256";
m_hash1 = new SHA256Managed();
m_hash2 = new SHA256Managed();
HashSizeValue = 256;
base.InitializeKey(key);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
//
// HMACSHA256.cs
//
namespace System.Security.Cryptography {
[System.Runtime.InteropServices.ComVisible(true)]
public class HMACSHA256 : HMAC {
//
// public constructors
//
public HMACSHA256 () : this (Utils.GenerateRandom(64)) {}
public HMACSHA256 (byte[] key) {
m_hashName = "SHA256";
m_hash1 = new SHA256Managed();
m_hash2 = new SHA256Managed();
HashSizeValue = 256;
base.InitializeKey(key);
}
}
}
// 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
- BufferedStream.cs
- XmlAnyElementAttribute.cs
- SqlCommandBuilder.cs
- ProcessThreadCollection.cs
- DataGridViewCellStyle.cs
- XmlReflectionImporter.cs
- StringCollection.cs
- LinqDataSource.cs
- HttpCacheVaryByContentEncodings.cs
- ValidationSummaryDesigner.cs
- SqlNamer.cs
- DataGridViewTextBoxCell.cs
- ToolStripItemTextRenderEventArgs.cs
- Label.cs
- ToolStripActionList.cs
- ListBase.cs
- ExtensionFile.cs
- xml.cs
- EventLogTraceListener.cs
- Message.cs
- DrawingGroup.cs
- InfoCardX509Validator.cs
- MsmqTransportSecurity.cs
- SqlDataAdapter.cs
- XLinq.cs
- LocalizableAttribute.cs
- FlowDecisionLabelFeature.cs
- TimeSpanConverter.cs
- CodeIndexerExpression.cs
- ListViewInsertEventArgs.cs
- WebPartEditorCancelVerb.cs
- webclient.cs
- Marshal.cs
- HttpResponseWrapper.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- LassoSelectionBehavior.cs
- UnionCodeGroup.cs
- DrawListViewItemEventArgs.cs
- ResizeGrip.cs
- XmlNotation.cs
- DefaultPropertyAttribute.cs
- LOSFormatter.cs
- ClientUrlResolverWrapper.cs
- ReadOnlyCollection.cs
- XamlBrushSerializer.cs
- SafeMemoryMappedViewHandle.cs
- SimpleBitVector32.cs
- DnsEndPoint.cs
- XmlUtil.cs
- ProtocolsConfiguration.cs
- ScrollPatternIdentifiers.cs
- SeekStoryboard.cs
- ColorMatrix.cs
- WebConfigManager.cs
- ParallelEnumerableWrapper.cs
- DragDropManager.cs
- DefaultDialogButtons.cs
- WebSysDefaultValueAttribute.cs
- SyntaxCheck.cs
- TrackingServices.cs
- SqlProvider.cs
- ConnectionConsumerAttribute.cs
- GraphicsPath.cs
- FlowLayout.cs
- ConnectionManagementElement.cs
- ActivityTypeCodeDomSerializer.cs
- tooltip.cs
- ToolStripGripRenderEventArgs.cs
- FileEnumerator.cs
- DateTimePicker.cs
- EndpointDiscoveryMetadata.cs
- VideoDrawing.cs
- StylusOverProperty.cs
- FactoryGenerator.cs
- ActivityDesignerHelper.cs
- ExceptionWrapper.cs
- MessageQueuePermission.cs
- SQLInt64.cs
- XmlSchemaComplexContentRestriction.cs
- AndCondition.cs
- SoapObjectInfo.cs
- SqlBooleanMismatchVisitor.cs
- PhonemeConverter.cs
- WinInetCache.cs
- Endpoint.cs
- NumericUpDownAcceleration.cs
- ZipIOExtraFieldZip64Element.cs
- ToolboxItemFilterAttribute.cs
- Zone.cs
- Run.cs
- TextFindEngine.cs
- IdentityReference.cs
- AppSettingsReader.cs
- ControlsConfig.cs
- UpdateManifestForBrowserApplication.cs
- TraceSource.cs
- DataGridViewRowPrePaintEventArgs.cs
- Base64WriteStateInfo.cs
- GenericsInstances.cs
- TTSEngineTypes.cs