Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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); } } } // 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
- SqlCacheDependencyDatabaseCollection.cs
- TextContainerHelper.cs
- TrustLevel.cs
- StringConverter.cs
- FontDifferentiator.cs
- DisplayInformation.cs
- GeometryDrawing.cs
- Asn1IntegerConverter.cs
- SrgsOneOf.cs
- SqlClientWrapperSmiStreamChars.cs
- XmlSchemaSimpleType.cs
- XmlExtensionFunction.cs
- QuaternionAnimationBase.cs
- TextElementEnumerator.cs
- RoleService.cs
- Random.cs
- EventLogEntry.cs
- Thickness.cs
- ArglessEventHandlerProxy.cs
- BufferedWebEventProvider.cs
- embossbitmapeffect.cs
- TypeNameConverter.cs
- StateBag.cs
- SeekableReadStream.cs
- HtmlInputPassword.cs
- CodeVariableDeclarationStatement.cs
- ConfigurationSectionGroupCollection.cs
- XmlSchemaObjectCollection.cs
- RectAnimation.cs
- ConfigXmlSignificantWhitespace.cs
- TransactionInformation.cs
- DispatcherFrame.cs
- EntityContainerEntitySetDefiningQuery.cs
- GridViewRowCollection.cs
- TemplateBindingExpressionConverter.cs
- XmlDownloadManager.cs
- RangeValuePattern.cs
- IdnMapping.cs
- _NtlmClient.cs
- Ref.cs
- SymmetricSecurityProtocol.cs
- RegexCharClass.cs
- PathGeometry.cs
- StateWorkerRequest.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- FixedSOMLineRanges.cs
- HandledEventArgs.cs
- RegexWorker.cs
- XmlSchemaCompilationSettings.cs
- BeginStoryboard.cs
- DataGridViewCellCancelEventArgs.cs
- PackagePartCollection.cs
- PageRequestManager.cs
- ComplusEndpointConfigContainer.cs
- BitmapEffectGeneralTransform.cs
- ScriptManager.cs
- CodeAccessPermission.cs
- FormsAuthenticationConfiguration.cs
- UInt32.cs
- DataPagerField.cs
- MsmqTransportElement.cs
- HtmlProps.cs
- PersistenceTypeAttribute.cs
- PaintEvent.cs
- Command.cs
- PrivilegeNotHeldException.cs
- querybuilder.cs
- DataGridLinkButton.cs
- TextServicesDisplayAttribute.cs
- EntityDataSourceMemberPath.cs
- GetRecipientRequest.cs
- SimpleLine.cs
- SslStream.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- OleTxTransaction.cs
- UInt64Storage.cs
- ColorInterpolationModeValidation.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- SqlBuilder.cs
- LayoutEditorPart.cs
- PersonalizationState.cs
- AnnouncementClient.cs
- SqlDataSourceConfigureFilterForm.cs
- UTF7Encoding.cs
- ProtocolsConfiguration.cs
- VectorCollectionValueSerializer.cs
- Propagator.cs
- MissingFieldException.cs
- XhtmlCssHandler.cs
- ValidationErrorInfo.cs
- CultureTableRecord.cs
- CryptographicAttribute.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- CodeArgumentReferenceExpression.cs
- WebPermission.cs
- DataView.cs
- NotifyIcon.cs
- SubstitutionList.cs
- SubMenuStyleCollection.cs
- NullableLongSumAggregationOperator.cs