C# Class Mono.Security.StrongName

Datei anzeigen Open project: runefs/Marvin Class Usage Examples

Public Methods

Method Description
GetBytes ( ) : byte[]
Hash ( string fileName ) : byte[]
IsAssemblyStrongnamed ( string assemblyName ) : bool
Sign ( string fileName ) : bool
StrongName ( ) : System
StrongName ( RSA rsa ) : System
StrongName ( byte data ) : System
StrongName ( int keySize ) : System
Verify ( Stream stream ) : bool
Verify ( string fileName ) : bool
VerifySignature ( byte publicKey, int algorithm, byte hash, byte signature ) : bool

Private Methods

Method Description
InvalidateCache ( ) : void
RVAtoPosition ( UInt32 r, int sections, byte headers ) : UInt32
StrongHash ( Stream stream, StrongNameOptions options ) : StrongNameSignature
Verify ( RSA rsa, AssemblyHashAlgorithm algorithm, byte hash, byte signature ) : bool

Method Details

GetBytes() public method

public GetBytes ( ) : byte[]
return byte[]

Hash() public method

public Hash ( string fileName ) : byte[]
fileName string
return byte[]

IsAssemblyStrongnamed() static public method

static public IsAssemblyStrongnamed ( string assemblyName ) : bool
assemblyName string
return bool

Sign() public method

public Sign ( string fileName ) : bool
fileName string
return bool

StrongName() public method

public StrongName ( ) : System
return System

StrongName() public method

public StrongName ( RSA rsa ) : System
rsa RSA
return System

StrongName() public method

public StrongName ( byte data ) : System
data byte
return System

StrongName() public method

public StrongName ( int keySize ) : System
keySize int
return System

Verify() public method

public Verify ( Stream stream ) : bool
stream Stream
return bool

Verify() public method

public Verify ( string fileName ) : bool
fileName string
return bool

VerifySignature() static public method

static public VerifySignature ( byte publicKey, int algorithm, byte hash, byte signature ) : bool
publicKey byte
algorithm int
hash byte
signature byte
return bool