﻿<?xml version="1.0" encoding="utf-8"?><Type Name="Hash" FullName="System.Security.Policy.Hash"><TypeSignature Maintainer="auto" Language="C#" Value="public sealed class Hash : System.Security.Policy.EvidenceBase, System.Runtime.Serialization.ISerializable, System.Security.Policy.IBuiltInEvidence" /><TypeSignature Language="ILAsm" Value=".class public auto ansi serializable sealed beforefieldinit Hash extends System.Security.Policy.EvidenceBase implements class System.Runtime.Serialization.ISerializable, class System.Security.Policy.IBuiltInEvidence" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement><Base><BaseTypeName>System.Security.Policy.EvidenceBase</BaseTypeName></Base><Interfaces><Interface><InterfaceName>System.Runtime.Serialization.ISerializable</InterfaceName></Interface><Interface><InterfaceName>System.Security.Policy.IBuiltInEvidence</InterfaceName></Interface></Interfaces><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>A hash value represents a unique value that corresponds to a particular set of bytes. Rather than referring to an assembly by name, version, or other designation, a hash value designates the assembly without ambiguity. Names are subject to collisions in rare cases where the same name is given to completely different code. Different variations of code can accidentally be marked with the same version. However, even changing a single bit results in a very different hash value.</para><para>Hash values are a cryptographically secure way to refer to specific assemblies in policy without the use of digital signatures. A secure hash algorithm is designed so that it is computationally infeasible to construct a different assembly with the identical hash value by either an accidental or malicious attempt. By default, evidence from the <see cref="T:System.Security.Cryptography.SHA1" /> and <see cref="T:System.Security.Cryptography.MD5" /> hash algorithms is supported, although any hash algorithm can be used through <see cref="M:System.Security.Policy.Hash.GenerateHash(System.Security.Cryptography.HashAlgorithm)" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Provides evidence about the hash value for an assembly. This class cannot be inherited.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public Hash (System.Reflection.Assembly assembly);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Reflection.Assembly assembly) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue /><Parameters><Parameter Name="assembly" Type="System.Reflection.Assembly" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The hash value computation is not performed until one of the properties or methods is called.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Security.Policy.Hash" /> class.</para></summary><param name="assembly"><attribution license="cc4" from="Microsoft" modified="false" />The assembly for which to compute the hash value. </param></Docs></Member><Member MemberName="CreateMD5"><MemberSignature Language="C#" Value="public static System.Security.Policy.Hash CreateMD5 (byte[] md5);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Security.Policy.Hash CreateMD5(unsigned int8[] md5) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Security.Policy.Hash</ReturnType></ReturnValue><Parameters><Parameter Name="md5" Type="System.Byte[]" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Security.Policy.Hash" /> object contains only the <see cref="P:System.Security.Policy.Hash.MD5" /> property.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a <see cref="T:System.Security.Policy.Hash" /> object that contains an <see cref="T:System.Security.Cryptography.MD5" /> hash value.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An object that contains the hash value provided by the <paramref name="md5" /> parameter.</para></returns><param name="md5"><attribution license="cc4" from="Microsoft" modified="false" />A byte array that contains an <see cref="T:System.Security.Cryptography.MD5" /> hash value.</param></Docs></Member><Member MemberName="CreateSHA1"><MemberSignature Language="C#" Value="public static System.Security.Policy.Hash CreateSHA1 (byte[] sha1);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Security.Policy.Hash CreateSHA1(unsigned int8[] sha1) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Security.Policy.Hash</ReturnType></ReturnValue><Parameters><Parameter Name="sha1" Type="System.Byte[]" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The returned <see cref="T:System.Security.Policy.Hash" /> object contains only the <see cref="P:System.Security.Policy.Hash.SHA1" /> property.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a <see cref="T:System.Security.Policy.Hash" /> object that contains a <see cref="T:System.Security.Cryptography.SHA1" /> hash value.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An object that contains the hash value provided by the <paramref name="sha1" /> parameter.</para></returns><param name="sha1"><attribution license="cc4" from="Microsoft" modified="false" />A byte array that contains a <see cref="T:System.Security.Cryptography.SHA1" /> hash value.</param></Docs></Member><Member MemberName="GenerateHash"><MemberSignature Language="C#" Value="public byte[] GenerateHash (System.Security.Cryptography.HashAlgorithm hashAlg);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance unsigned int8[] GenerateHash(class System.Security.Cryptography.HashAlgorithm hashAlg) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Byte[]</ReturnType></ReturnValue><Parameters><Parameter Name="hashAlg" Type="System.Security.Cryptography.HashAlgorithm" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The assembly specified in the class constructor provides the bytes for computing the hash value. The <paramref name="hashAlg" /> parameter is an object derived from a specific <see cref="T:System.Security.Cryptography.HashAlgorithm" />. The returned hash value is of the type identified by <paramref name="hashAlg" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Computes the hash value for the assembly using the specified hash algorithm.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A byte array that represents the hash value for the assembly.</para></returns><param name="hashAlg"><attribution license="cc4" from="Microsoft" modified="false" />The hash algorithm to use to compute the hash value for the assembly. </param></Docs></Member><Member MemberName="GetObjectData"><MemberSignature Language="C#" Value="public void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void GetObjectData(class System.Runtime.Serialization.SerializationInfo info, valuetype System.Runtime.Serialization.StreamingContext context) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="info" Type="System.Runtime.Serialization.SerializationInfo" /><Parameter Name="context" Type="System.Runtime.Serialization.StreamingContext" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method is provided to support inheritance of the <see cref="T:System.Runtime.Serialization.ISerializable" /> interface.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with the parameter name and additional exception information.</para></summary><param name="info"><attribution license="cc4" from="Microsoft" modified="false" />The object that holds the serialized object data. </param><param name="context"><attribution license="cc4" from="Microsoft" modified="false" />The contextual information about the source or destination. </param></Docs></Member><Member MemberName="MD5"><MemberSignature Language="C#" Value="public byte[] MD5 { get; }" /><MemberSignature Language="ILAsm" Value=".property instance unsigned int8[] MD5" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Byte[]</ReturnType></ReturnValue><Docs><value>To be added: an object of type 'byte []'</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The assembly specified in the class constructor provides the bytes for the hash computation.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the <see cref="T:System.Security.Cryptography.MD5" /> hash value for the assembly.</para></summary></Docs></Member><Member MemberName="SHA1"><MemberSignature Language="C#" Value="public byte[] SHA1 { get; }" /><MemberSignature Language="ILAsm" Value=".property instance unsigned int8[] SHA1" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Byte[]</ReturnType></ReturnValue><Docs><value>To be added: an object of type 'byte []'</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The assembly specified in the constructor provides the bytes for the hash computation.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the <see cref="T:System.Security.Cryptography.SHA1" /> hash value for the assembly.</para></summary></Docs></Member><Member MemberName="System.Security.Policy.IBuiltInEvidence.GetRequiredSize"><MemberSignature Language="C#" Value="int IBuiltInEvidence.GetRequiredSize (bool verbose);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance int32 System.Security.Policy.IBuiltInEvidence.GetRequiredSize(bool verbose) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="verbose" Type="System.Boolean" /></Parameters><Docs><param name="verbose">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks></Docs></Member><Member MemberName="System.Security.Policy.IBuiltInEvidence.InitFromBuffer"><MemberSignature Language="C#" Value="int IBuiltInEvidence.InitFromBuffer (char[] buffer, int position);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance int32 System.Security.Policy.IBuiltInEvidence.InitFromBuffer(char[] buffer, int32 position) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="buffer" Type="System.Char[]" /><Parameter Name="position" Type="System.Int32" /></Parameters><Docs><param name="buffer">To be added.</param><param name="position">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks></Docs></Member><Member MemberName="System.Security.Policy.IBuiltInEvidence.OutputToBuffer"><MemberSignature Language="C#" Value="int IBuiltInEvidence.OutputToBuffer (char[] buffer, int position, bool verbose);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance int32 System.Security.Policy.IBuiltInEvidence.OutputToBuffer(char[] buffer, int32 position, bool verbose) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="buffer" Type="System.Char[]" /><Parameter Name="position" Type="System.Int32" /><Parameter Name="verbose" Type="System.Boolean" /></Parameters><Docs><param name="buffer">To be added.</param><param name="position">To be added.</param><param name="verbose">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks></Docs></Member><Member MemberName="ToString"><MemberSignature Language="C#" Value="public override string ToString ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance string ToString() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method is useful during debugging to get an easy-to-read representation of the object.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a string representation of the current <see cref="T:System.Security.Policy.Hash" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A representation of the current <see cref="T:System.Security.Policy.Hash" />.</para></returns></Docs></Member></Members></Type>