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
- BitmapEffectGroup.cs
- ConstructorNeedsTagAttribute.cs
- XmlWellformedWriter.cs
- MessageAction.cs
- namescope.cs
- MetadataHelper.cs
- SoapFaultCodes.cs
- ResetableIterator.cs
- FontFamilyValueSerializer.cs
- FormClosedEvent.cs
- SurrogateEncoder.cs
- NeutralResourcesLanguageAttribute.cs
- DataSourceControl.cs
- EnumUnknown.cs
- WebPartDescriptionCollection.cs
- GetLastErrorDetailsRequest.cs
- AccessedThroughPropertyAttribute.cs
- XmlC14NWriter.cs
- DbgUtil.cs
- SelectionEditor.cs
- RegexCode.cs
- CultureInfoConverter.cs
- WeakReferenceEnumerator.cs
- objectresult_tresulttype.cs
- RemotingServices.cs
- SimpleTypeResolver.cs
- InstanceKeyView.cs
- Roles.cs
- BaseCollection.cs
- XmlSecureResolver.cs
- DataGridColumnReorderingEventArgs.cs
- ColumnReorderedEventArgs.cs
- DataSourceCollectionBase.cs
- SlipBehavior.cs
- DllHostInitializer.cs
- InputScopeManager.cs
- Vector3DCollectionConverter.cs
- MimeMultiPart.cs
- CalendarSelectionChangedEventArgs.cs
- TraceListeners.cs
- SpecialTypeDataContract.cs
- EndOfStreamException.cs
- CannotUnloadAppDomainException.cs
- RuntimeCompatibilityAttribute.cs
- HttpsTransportElement.cs
- EncoderParameter.cs
- TrustSection.cs
- propertytag.cs
- BoundsDrawingContextWalker.cs
- XamlTypeMapper.cs
- XmlCustomFormatter.cs
- ConfigurationManagerInternalFactory.cs
- MarshalByRefObject.cs
- ByteAnimationBase.cs
- IssuanceTokenProviderState.cs
- Parameter.cs
- PrivateFontCollection.cs
- DeflateStream.cs
- SqlCrossApplyToCrossJoin.cs
- SequentialWorkflowHeaderFooter.cs
- StateChangeEvent.cs
- PlainXmlWriter.cs
- MD5HashHelper.cs
- TileModeValidation.cs
- BitmapFrameDecode.cs
- WebConvert.cs
- UiaCoreProviderApi.cs
- CaretElement.cs
- FontDriver.cs
- ActivityDesigner.cs
- ScriptManager.cs
- Stackframe.cs
- SchemaObjectWriter.cs
- TypedElement.cs
- TdsParserStateObject.cs
- AxisAngleRotation3D.cs
- SharedHttpsTransportManager.cs
- AccessDataSource.cs
- HtmlInputCheckBox.cs
- EdmSchemaError.cs
- FilteredSchemaElementLookUpTable.cs
- FileVersionInfo.cs
- ProxyWebPartConnectionCollection.cs
- StylusPointPropertyInfo.cs
- TableCellsCollectionEditor.cs
- BaseCAMarshaler.cs
- CollectionViewSource.cs
- ToolStripContentPanelRenderEventArgs.cs
- StructuredProperty.cs
- ComplexTypeEmitter.cs
- Stack.cs
- HMACSHA1.cs
- Rotation3DAnimationUsingKeyFrames.cs
- Compiler.cs
- FieldBuilder.cs
- FixedTextView.cs
- UpdateException.cs
- PeerApplication.cs
- Base64Decoder.cs
- Visitor.cs