Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA384.cs / 2 / HMACSHA384.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // HMACSHA384.cs // namespace System.Security.Cryptography { [System.Runtime.InteropServices.ComVisible(true)] public class HMACSHA384 : HMAC { private bool m_useLegacyBlockSize = Utils._ProduceLegacyHmacValues(); // // public constructors // public HMACSHA384 () : this (Utils.GenerateRandom(128)) {} public HMACSHA384 (byte[] key) { Utils._ShowLegacyHmacWarning(); m_hashName = "SHA384"; m_hash1 = new SHA384Managed(); m_hash2 = new SHA384Managed(); HashSizeValue = 384; BlockSizeValue = BlockSize; base.InitializeKey(key); } private int BlockSize { get { return m_useLegacyBlockSize ? 64 : 128; } } // See code:System.Security.Cryptography.HMACSHA512.ProduceLegacyHmacValues public bool ProduceLegacyHmacValues { get { return m_useLegacyBlockSize; } set { m_useLegacyBlockSize = value; BlockSizeValue = BlockSize; InitializeKey(KeyValue); } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ActiveXHost.cs
- DataBindEngine.cs
- SkewTransform.cs
- PenThread.cs
- HostAdapter.cs
- CqlParser.cs
- DataColumnCollection.cs
- JsonQueryStringConverter.cs
- BinaryUtilClasses.cs
- ParameterRetriever.cs
- HtmlLinkAdapter.cs
- SignatureHelper.cs
- DeclaredTypeElement.cs
- BidPrivateBase.cs
- BinaryFormatter.cs
- WebReferencesBuildProvider.cs
- HostExecutionContextManager.cs
- LinqTreeNodeEvaluator.cs
- ToolStripContentPanel.cs
- DbgCompiler.cs
- SecurityPermission.cs
- ProfileModule.cs
- ComboBox.cs
- URLIdentityPermission.cs
- FindCriteriaCD1.cs
- XmlObjectSerializerContext.cs
- SizeF.cs
- WebPartActionVerb.cs
- NonSerializedAttribute.cs
- BreakRecordTable.cs
- DataGridViewAdvancedBorderStyle.cs
- PseudoWebRequest.cs
- MediaContextNotificationWindow.cs
- ConstraintManager.cs
- BufferedOutputStream.cs
- TextTreeRootTextBlock.cs
- MenuStrip.cs
- AnnotationDocumentPaginator.cs
- PointCollection.cs
- WinFormsUtils.cs
- CodePageUtils.cs
- KeyboardEventArgs.cs
- glyphs.cs
- EntityContainerEmitter.cs
- PenCursorManager.cs
- PermissionToken.cs
- BaseDataList.cs
- KeySpline.cs
- XamlStyleSerializer.cs
- XmlSchemaSet.cs
- SystemIPv4InterfaceProperties.cs
- Effect.cs
- AssemblyLoader.cs
- Comparer.cs
- WebPartAuthorizationEventArgs.cs
- MissingManifestResourceException.cs
- AssemblyAttributes.cs
- BinaryReader.cs
- XmlAttributeCache.cs
- MemberInfoSerializationHolder.cs
- PrintEvent.cs
- SafeHandles.cs
- TaskFactory.cs
- AppDomainManager.cs
- TagPrefixCollection.cs
- CustomAttribute.cs
- DependencyPropertyDescriptor.cs
- SQLBytesStorage.cs
- WsatRegistrationHeader.cs
- HashAlgorithm.cs
- CodeDomConfigurationHandler.cs
- Bitmap.cs
- StaticSiteMapProvider.cs
- ClientRuntimeConfig.cs
- DataSourceUtil.cs
- IPCCacheManager.cs
- ZoneLinkButton.cs
- regiisutil.cs
- TagPrefixInfo.cs
- CompoundFileStreamReference.cs
- WindowsAltTab.cs
- XmlC14NWriter.cs
- OutputCacheProfileCollection.cs
- PipeStream.cs
- GenericEnumConverter.cs
- ModelItemKeyValuePair.cs
- SoapTransportImporter.cs
- OutputWindow.cs
- MimeTypeAttribute.cs
- XmlDataProvider.cs
- ProtectedConfigurationSection.cs
- MediaEntryAttribute.cs
- OdbcErrorCollection.cs
- MemoryFailPoint.cs
- ResolveNameEventArgs.cs
- SchemaObjectWriter.cs
- MappingSource.cs
- TableItemPatternIdentifiers.cs
- SafeNativeMemoryHandle.cs
- SqlDataSourceCommandEventArgs.cs