C# Class System.Security.Cryptography.RSAOpenSsl

Inheritance: RSA
Show file Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
Decrypt ( byte data, System padding ) : byte[]
DuplicateKeyHandle ( ) : System.Security.Cryptography.SafeEvpPKeyHandle
Encrypt ( byte data, System padding ) : byte[]
ExportParameters ( bool includePrivateParameters ) : System.Security.Cryptography.RSAParameters
ImportParameters ( System parameters ) : void
RSAOpenSsl ( )
RSAOpenSsl ( System handle )
RSAOpenSsl ( int keySize )
SignHash ( byte hash, System hashAlgorithm, System padding ) : byte[]
VerifyHash ( byte hash, byte signature, System hashAlgorithm, System padding ) : bool

Protected Methods

Method Description
Dispose ( bool disposing ) : void
HashData ( System data, System hashAlgorithm ) : byte[]
HashData ( byte data, int offset, int count, System hashAlgorithm ) : byte[]

Method Details

Decrypt() public method

public Decrypt ( byte data, System padding ) : byte[]
data byte
padding System
return byte[]

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DuplicateKeyHandle() public method

public DuplicateKeyHandle ( ) : System.Security.Cryptography.SafeEvpPKeyHandle
return System.Security.Cryptography.SafeEvpPKeyHandle

Encrypt() public method

public Encrypt ( byte data, System padding ) : byte[]
data byte
padding System
return byte[]

ExportParameters() public method

public ExportParameters ( bool includePrivateParameters ) : System.Security.Cryptography.RSAParameters
includePrivateParameters bool
return System.Security.Cryptography.RSAParameters

HashData() protected method

protected HashData ( System data, System hashAlgorithm ) : byte[]
data System
hashAlgorithm System
return byte[]

HashData() protected method

protected HashData ( byte data, int offset, int count, System hashAlgorithm ) : byte[]
data byte
offset int
count int
hashAlgorithm System
return byte[]

ImportParameters() public method

public ImportParameters ( System parameters ) : void
parameters System
return void

RSAOpenSsl() public method

public RSAOpenSsl ( )

RSAOpenSsl() public method

public RSAOpenSsl ( System handle )
handle System

RSAOpenSsl() public method

public RSAOpenSsl ( int keySize )
keySize int

SignHash() public method

public SignHash ( byte hash, System hashAlgorithm, System padding ) : byte[]
hash byte
hashAlgorithm System
padding System
return byte[]

VerifyHash() public method

public VerifyHash ( byte hash, byte signature, System hashAlgorithm, System padding ) : bool
hash byte
signature byte
hashAlgorithm System
padding System
return bool