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
- SQLStringStorage.cs
- WindowsToolbar.cs
- PropertyItem.cs
- ValidationUtility.cs
- UniqueEventHelper.cs
- ConfigXmlDocument.cs
- DataGridViewBand.cs
- MulticastIPAddressInformationCollection.cs
- odbcmetadatacolumnnames.cs
- RelativeSource.cs
- CommandField.cs
- METAHEADER.cs
- NativeCompoundFileAPIs.cs
- ThreadAbortException.cs
- HyperlinkAutomationPeer.cs
- CqlLexerHelpers.cs
- TypeElement.cs
- QilExpression.cs
- Facet.cs
- DisplayInformation.cs
- ContentDisposition.cs
- BuildProviderAppliesToAttribute.cs
- SqlConnectionPoolGroupProviderInfo.cs
- FontInfo.cs
- DrawingContext.cs
- Accessible.cs
- UrlMappingsSection.cs
- EasingKeyFrames.cs
- OciEnlistContext.cs
- OpCopier.cs
- Margins.cs
- MimeObjectFactory.cs
- ConfigXmlCDataSection.cs
- BindingNavigator.cs
- BindingMemberInfo.cs
- ISessionStateStore.cs
- GridEntry.cs
- TextRange.cs
- OdbcDataReader.cs
- KnowledgeBase.cs
- NameSpaceExtractor.cs
- ThousandthOfEmRealDoubles.cs
- DocumentGridPage.cs
- ByteStreamBufferedMessageData.cs
- ScriptComponentDescriptor.cs
- InvokePattern.cs
- Error.cs
- ThreadAttributes.cs
- XmlSerializerSection.cs
- SafeViewOfFileHandle.cs
- ContourSegment.cs
- RuntimeEnvironment.cs
- propertytag.cs
- CallbackValidator.cs
- XmlBoundElement.cs
- DisplayInformation.cs
- SystemTcpConnection.cs
- RecommendedAsConfigurableAttribute.cs
- ChannelServices.cs
- XmlILTrace.cs
- SystemParameters.cs
- TimerEventSubscriptionCollection.cs
- SmiConnection.cs
- ColorTypeConverter.cs
- QueryCacheManager.cs
- ReflectionUtil.cs
- ProcessManager.cs
- ACE.cs
- _LocalDataStoreMgr.cs
- GroupBox.cs
- LinkButton.cs
- sqlcontext.cs
- FederatedMessageSecurityOverHttp.cs
- SocketAddress.cs
- SqlConnectionHelper.cs
- CookieProtection.cs
- FilePresentation.cs
- SetterBase.cs
- EntityDesignerDataSourceView.cs
- EventMap.cs
- TimeSpanValidatorAttribute.cs
- XamlReader.cs
- SafeArrayTypeMismatchException.cs
- SiteMapHierarchicalDataSourceView.cs
- WaveHeader.cs
- TitleStyle.cs
- Pair.cs
- FixedSOMTableRow.cs
- EdmEntityTypeAttribute.cs
- BoundPropertyEntry.cs
- QuotaThrottle.cs
- TextRunProperties.cs
- ListMarkerLine.cs
- TrustManager.cs
- HtmlElementCollection.cs
- SchemaTypeEmitter.cs
- XPathBuilder.cs
- AuthenticationSection.cs
- RadioButtonFlatAdapter.cs
- SortedDictionary.cs