Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA256.cs / 1305376 / 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
- WindowsTreeView.cs
- TdsParserSessionPool.cs
- NetworkInformationException.cs
- ApplicationFileCodeDomTreeGenerator.cs
- DayRenderEvent.cs
- _NativeSSPI.cs
- WebPartConnectionsCancelEventArgs.cs
- SelectionEditor.cs
- PathFigure.cs
- WindowsProgressbar.cs
- TextEncodedRawTextWriter.cs
- InstanceStoreQueryResult.cs
- DesignerHelpers.cs
- NativeMethods.cs
- KeyInfo.cs
- KeyPressEvent.cs
- NavigateEvent.cs
- IndexedEnumerable.cs
- GenericRootAutomationPeer.cs
- FixedDocumentSequencePaginator.cs
- DbParameterCollectionHelper.cs
- WindowsPen.cs
- BitmapEffectInput.cs
- DataGridHeaderBorder.cs
- ModelEditingScope.cs
- TextSelectionHelper.cs
- DatagridviewDisplayedBandsData.cs
- PageSetupDialog.cs
- BasicCellRelation.cs
- AnnotationResourceChangedEventArgs.cs
- ViewStateAttachedPropertyFeature.cs
- AllMembershipCondition.cs
- DataSetSchema.cs
- DetailsViewInsertEventArgs.cs
- XmlChoiceIdentifierAttribute.cs
- DataBindingExpressionBuilder.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- InstancePersistenceEvent.cs
- ApplicationDirectoryMembershipCondition.cs
- CollectionView.cs
- CodeExporter.cs
- SourceChangedEventArgs.cs
- WebAdminConfigurationHelper.cs
- CaseStatement.cs
- HttpHandlersSection.cs
- TextUtf8RawTextWriter.cs
- ChtmlMobileTextWriter.cs
- MenuCommandService.cs
- _ListenerRequestStream.cs
- ConfigurationElementCollection.cs
- GatewayDefinition.cs
- OdbcCommandBuilder.cs
- BindableAttribute.cs
- SecurityPolicySection.cs
- WindowsListViewGroupHelper.cs
- HostDesigntimeLicenseContext.cs
- VerbConverter.cs
- MouseCaptureWithinProperty.cs
- OdbcConnectionStringbuilder.cs
- DoubleCollectionValueSerializer.cs
- SettingsAttributeDictionary.cs
- MsmqTransportSecurity.cs
- XmlDigitalSignatureProcessor.cs
- basemetadatamappingvisitor.cs
- HttpListenerResponse.cs
- EntityDataSourceWrapperCollection.cs
- WebPartEditorApplyVerb.cs
- SafeRegistryHandle.cs
- UnsafeNativeMethods.cs
- HttpCacheParams.cs
- ResourceAttributes.cs
- UdpContractFilterBehavior.cs
- ArrayWithOffset.cs
- ConstraintCollection.cs
- Random.cs
- UnsafeNativeMethods.cs
- XmlWellformedWriter.cs
- DataGridHeaderBorder.cs
- TempEnvironment.cs
- InvalidateEvent.cs
- TextRangeEditTables.cs
- WebBrowserPermission.cs
- SafeArchiveContext.cs
- DoubleUtil.cs
- ForwardPositionQuery.cs
- __Error.cs
- _IPv4Address.cs
- Select.cs
- ToolStripDropDownItem.cs
- StringComparer.cs
- WindowsPrincipal.cs
- CellCreator.cs
- CustomErrorCollection.cs
- PersonalizablePropertyEntry.cs
- HtmlDocument.cs
- SectionUpdates.cs
- ResourceDictionary.cs
- MediaPlayerState.cs
- TextDpi.cs
- RelatedPropertyManager.cs