Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA1.cs / 1 / HMACSHA1.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // HMACSHA1.cs // namespace System.Security.Cryptography { [System.Runtime.InteropServices.ComVisible(true)] public class HMACSHA1 : HMAC { // // public constructors // public HMACSHA1 () : this (Utils.GenerateRandom(64)) {} public HMACSHA1 (byte[] key) : this (key, false) {} public HMACSHA1 (byte[] key, bool useManagedSha1) { m_hashName = "SHA1"; if (useManagedSha1) { m_hash1 = new SHA1Managed(); m_hash2 = new SHA1Managed(); } else { m_hash1 = new SHA1CryptoServiceProvider(); m_hash2 = new SHA1CryptoServiceProvider(); } HashSizeValue = 160; base.InitializeKey(key); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartConnectionsConnectVerb.cs
- XmlSchemaAll.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- Ray3DHitTestResult.cs
- WebExceptionStatus.cs
- ByteStream.cs
- DebugView.cs
- ISAPIWorkerRequest.cs
- localization.cs
- CompiledIdentityConstraint.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- ActivationArguments.cs
- ToolBarPanel.cs
- RotationValidation.cs
- SqlRowUpdatingEvent.cs
- activationcontext.cs
- UrlMapping.cs
- AsyncResult.cs
- webclient.cs
- RequiredAttributeAttribute.cs
- ViewBox.cs
- IntSecurity.cs
- CacheSection.cs
- MsmqInputMessagePool.cs
- DbXmlEnabledProviderManifest.cs
- InternalDispatchObject.cs
- XhtmlConformanceSection.cs
- PackageStore.cs
- FixedSOMContainer.cs
- ToolStripItemTextRenderEventArgs.cs
- ClrProviderManifest.cs
- SchemaRegistration.cs
- _UncName.cs
- RegionData.cs
- StorageComplexTypeMapping.cs
- SHA512Cng.cs
- WindowsTitleBar.cs
- brushes.cs
- SocketException.cs
- LogEntrySerialization.cs
- ObjectDataSourceSelectingEventArgs.cs
- RemoteWebConfigurationHostServer.cs
- SmtpReplyReaderFactory.cs
- NavigationCommands.cs
- SqlTopReducer.cs
- WebPartZone.cs
- ProviderConnectionPoint.cs
- ProviderMetadataCachedInformation.cs
- SHA256.cs
- CodeExpressionCollection.cs
- Mutex.cs
- MeasureItemEvent.cs
- InkCanvasFeedbackAdorner.cs
- MenuStrip.cs
- XPathNodePointer.cs
- Msec.cs
- Configuration.cs
- ECDiffieHellmanCng.cs
- ObjectStateFormatter.cs
- ToolStripMenuItemDesigner.cs
- AsmxEndpointPickerExtension.cs
- MenuItem.cs
- TypedTableBaseExtensions.cs
- PropertyKey.cs
- SizeIndependentAnimationStorage.cs
- MethodBuilder.cs
- EntityProviderFactory.cs
- TextPointer.cs
- CriticalFinalizerObject.cs
- DBCSCodePageEncoding.cs
- XamlReaderHelper.cs
- GridLength.cs
- CallbackHandler.cs
- SafeMemoryMappedFileHandle.cs
- SByteStorage.cs
- AssertFilter.cs
- MultiBindingExpression.cs
- CrossAppDomainChannel.cs
- HtmlHistory.cs
- AddInController.cs
- RenamedEventArgs.cs
- TreeView.cs
- HtmlTableCellCollection.cs
- DESCryptoServiceProvider.cs
- CommandEventArgs.cs
- GridItemPattern.cs
- GraphicsContainer.cs
- SqlDuplicator.cs
- HtmlLiteralTextAdapter.cs
- AnnotationHighlightLayer.cs
- EntityClientCacheEntry.cs
- FormatConvertedBitmap.cs
- ValidatorCompatibilityHelper.cs
- _RegBlobWebProxyDataBuilder.cs
- RegionIterator.cs
- Empty.cs
- TimeSpanValidatorAttribute.cs
- SingleKeyFrameCollection.cs
- Repeater.cs
- HttpDebugHandler.cs