Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Security / Cryptography / ECDiffieHellmanPublicKey.cs / 1305376 / ECDiffieHellmanPublicKey.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System; using System.Runtime.Serialization; using System.Diagnostics.Contracts; namespace System.Security.Cryptography { ////// Wrapper for public key material passed between parties during Diffie-Hellman key material generation /// [Serializable] [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] public abstract class ECDiffieHellmanPublicKey : IDisposable { private byte[] m_keyBlob; protected ECDiffieHellmanPublicKey(byte[] keyBlob) { Contract.Ensures(m_keyBlob != null); if (keyBlob == null) { throw new ArgumentNullException("keyBlob"); } m_keyBlob = keyBlob.Clone() as byte[]; } public void Dispose() { Dispose(true); } protected virtual void Dispose(bool disposing) { return; } public virtual byte[] ToByteArray() { Contract.Assert(m_keyBlob != null); return m_keyBlob.Clone() as byte[]; } public abstract string ToXmlString(); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System; using System.Runtime.Serialization; using System.Diagnostics.Contracts; namespace System.Security.Cryptography { ////// Wrapper for public key material passed between parties during Diffie-Hellman key material generation /// [Serializable] [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] public abstract class ECDiffieHellmanPublicKey : IDisposable { private byte[] m_keyBlob; protected ECDiffieHellmanPublicKey(byte[] keyBlob) { Contract.Ensures(m_keyBlob != null); if (keyBlob == null) { throw new ArgumentNullException("keyBlob"); } m_keyBlob = keyBlob.Clone() as byte[]; } public void Dispose() { Dispose(true); } protected virtual void Dispose(bool disposing) { return; } public virtual byte[] ToByteArray() { Contract.Assert(m_keyBlob != null); return m_keyBlob.Clone() as byte[]; } public abstract string ToXmlString(); } } // 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
- RelationshipEndMember.cs
- ResourceReader.cs
- OpenTypeLayoutCache.cs
- ToolStripSettings.cs
- ValidatorCompatibilityHelper.cs
- EventListenerClientSide.cs
- SqlBinder.cs
- HwndProxyElementProvider.cs
- PtsHost.cs
- SqlConnectionPoolProviderInfo.cs
- SamlAssertion.cs
- NumericUpDown.cs
- CodeTypeParameter.cs
- SqlDataSourceConfigureFilterForm.cs
- SoapAttributeAttribute.cs
- X509UI.cs
- BooleanStorage.cs
- HttpHandlersInstallComponent.cs
- ProcessModuleCollection.cs
- SafeCoTaskMem.cs
- XmlUtilWriter.cs
- DeclarationUpdate.cs
- DataColumnMapping.cs
- XmlHierarchicalDataSourceView.cs
- TabItemAutomationPeer.cs
- ArgIterator.cs
- RegexFCD.cs
- ElementHostAutomationPeer.cs
- TrustSection.cs
- RegexRunner.cs
- RequiredAttributeAttribute.cs
- DropSource.cs
- Stopwatch.cs
- TraceXPathNavigator.cs
- ExtensionFile.cs
- MetafileHeaderWmf.cs
- Parser.cs
- MetadataProperty.cs
- XmlNamespaceManager.cs
- Delegate.cs
- ButtonChrome.cs
- DataGridViewButtonColumn.cs
- GradientStop.cs
- ListBindingHelper.cs
- SimpleWebHandlerParser.cs
- Win32KeyboardDevice.cs
- DiscriminatorMap.cs
- OpenTypeCommon.cs
- PropertyPathWorker.cs
- ResourceDescriptionAttribute.cs
- DatatypeImplementation.cs
- CdpEqualityComparer.cs
- TypeDescriptionProviderAttribute.cs
- TileModeValidation.cs
- EventDescriptorCollection.cs
- BulletChrome.cs
- BitmapEffect.cs
- DictionaryGlobals.cs
- CurrencyWrapper.cs
- PerformanceCounterPermissionAttribute.cs
- OdbcHandle.cs
- QuaternionAnimationBase.cs
- ResourceDisplayNameAttribute.cs
- HashCodeCombiner.cs
- dataobject.cs
- QilReference.cs
- PasswordBoxAutomationPeer.cs
- EntityViewGenerationConstants.cs
- LinqDataSourceContextEventArgs.cs
- ResourceContainer.cs
- ExpressionList.cs
- ISAPIRuntime.cs
- _SslState.cs
- EnumerableCollectionView.cs
- AppDomainUnloadedException.cs
- ConnectionStringsExpressionBuilder.cs
- TextElementAutomationPeer.cs
- CaseCqlBlock.cs
- PagedControl.cs
- UniqueTransportManagerRegistration.cs
- ContractComponent.cs
- CodeVariableReferenceExpression.cs
- XmlDataSourceView.cs
- BrushValueSerializer.cs
- Vector3DCollectionConverter.cs
- Rectangle.cs
- StylusEventArgs.cs
- CreateUserWizard.cs
- LogicalExpressionTypeConverter.cs
- BufferedReceiveManager.cs
- _NestedSingleAsyncResult.cs
- COM2Properties.cs
- TakeQueryOptionExpression.cs
- handlecollector.cs
- ModelTreeEnumerator.cs
- KoreanCalendar.cs
- ThreadExceptionEvent.cs
- ChangePassword.cs
- OdbcError.cs
- XmlSchemaCompilationSettings.cs