Code:
/ DotNET / DotNET / 8.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
- ConvertEvent.cs
- Win32Interop.cs
- ReadOnlyState.cs
- NullableConverter.cs
- StorageComplexPropertyMapping.cs
- DataControlFieldCell.cs
- ServiceDescriptionSerializer.cs
- DoubleKeyFrameCollection.cs
- CacheForPrimitiveTypes.cs
- Manipulation.cs
- DataPagerFieldCollection.cs
- AssociationType.cs
- CodeDOMUtility.cs
- EntityDataSourceWrapperCollection.cs
- PtsPage.cs
- XmlSerializerVersionAttribute.cs
- InfoCardCryptoHelper.cs
- invalidudtexception.cs
- DataTableMappingCollection.cs
- BitmapEncoder.cs
- AdornerDecorator.cs
- Ray3DHitTestResult.cs
- XmlUtil.cs
- CharKeyFrameCollection.cs
- TagMapCollection.cs
- SemaphoreFullException.cs
- XmlLangPropertyAttribute.cs
- CursorInteropHelper.cs
- TextEditorTyping.cs
- __FastResourceComparer.cs
- UserValidatedEventArgs.cs
- BrowserCapabilitiesCompiler.cs
- CountAggregationOperator.cs
- UnmanagedMarshal.cs
- Crypto.cs
- GACMembershipCondition.cs
- ResourceSetExpression.cs
- ClassImporter.cs
- AssociatedControlConverter.cs
- SapiAttributeParser.cs
- WSFederationHttpSecurity.cs
- TaskResultSetter.cs
- RealizedColumnsBlock.cs
- DbConvert.cs
- CheckBox.cs
- EventArgs.cs
- ImageFormat.cs
- CodeSnippetExpression.cs
- MultiByteCodec.cs
- NetMsmqSecurity.cs
- CompensationToken.cs
- CodeDirectionExpression.cs
- TextWriterTraceListener.cs
- AsymmetricKeyExchangeDeformatter.cs
- DesignerHelpers.cs
- AutoSizeComboBox.cs
- SchemaTypeEmitter.cs
- SuppressMessageAttribute.cs
- SystemTcpConnection.cs
- ServiceOperationDetailViewControl.cs
- CryptoStream.cs
- ZipIOLocalFileDataDescriptor.cs
- XmlSchemaAnnotation.cs
- PerformanceCounterPermissionEntryCollection.cs
- GenericTextProperties.cs
- ConnectionInterfaceCollection.cs
- DataGridViewHeaderCell.cs
- ManipulationLogic.cs
- SQLString.cs
- _ConnectStream.cs
- CategoryEditor.cs
- DesignerGenericWebPart.cs
- QfeChecker.cs
- DesignerDataColumn.cs
- Property.cs
- RC2.cs
- ValidateNames.cs
- BaseDataBoundControl.cs
- Walker.cs
- XmlWellformedWriter.cs
- TransferMode.cs
- Baml2006SchemaContext.cs
- ThrowOnMultipleAssignment.cs
- GestureRecognizer.cs
- ContentElementCollection.cs
- TimersDescriptionAttribute.cs
- Bits.cs
- RsaElement.cs
- UiaCoreTypesApi.cs
- LightweightEntityWrapper.cs
- CacheOutputQuery.cs
- FunctionGenerator.cs
- ReflectEventDescriptor.cs
- XappLauncher.cs
- Hashtable.cs
- WCFBuildProvider.cs
- RowsCopiedEventArgs.cs
- InvalidEnumArgumentException.cs
- Byte.cs
- CapabilitiesPattern.cs