C# Class avt.DynamicFlashRotator.Net.RegCore.Cryptography.EZRSA

Inheritance: System.Security.Cryptography.RSA
Show file Open project: dnnsharp/DynamicRotator Class Usage Examples

Public Methods

Method Description
CheckPrivateKey ( ) : bool
Decrypt ( byte input, bool fOAEP ) : byte[]
DecryptValue ( byte rgb ) : byte[]
DoPrivate ( byte input ) : byte[]
DoPublic ( byte input ) : byte[]
EZRSA ( int keylen ) : System
Encrypt ( byte input, bool fOAEP ) : byte[]
EncryptValue ( byte rgb ) : byte[]
ExportParameters ( bool includePrivateParameters ) : RSAParameters
FromXmlString ( string xmlString ) : void
GenerateKeyPair ( int exponent ) : void
ImportParameters ( RSAParameters parameters ) : void
MapHashAlgorithmOID ( string hash_algorithm_oid ) : HASH_ALGORITHM
SignData ( byte data, HashAlgorithm hasher ) : byte[]
SignHash ( byte sign_me, HASH_ALGORITHM hash_algorithm ) : byte[]
SignHash ( byte sign_me, string hash_algorithm_oid ) : byte[]
ToXmlString ( bool includePrivateParameters ) : string
VerifyData ( byte data, HashAlgorithm hasher, byte signature ) : bool
VerifyHash ( byte hash, byte signature, HASH_ALGORITHM hash_algorithm ) : bool
VerifyHash ( byte hash, string hash_algorithm_oid, byte signature ) : bool

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
bigint_to_b64 ( BigInteger bi ) : string
check_XML_element ( XmlReader reader, string element_name, string element_name_required, BigInteger &bi_out ) : bool
compare_bytes ( byte b1, int i1, byte b2, int i2, int n ) : bool
map_hash_algorithm ( HashAlgorithm hasher ) : HASH_ALGORITHM
pad_bytes ( byte b, int n ) : byte[]

Method Details

CheckPrivateKey() public method

public CheckPrivateKey ( ) : bool
return bool

Decrypt() public method

public Decrypt ( byte input, bool fOAEP ) : byte[]
input byte
fOAEP bool
return byte[]

DecryptValue() public method

public DecryptValue ( byte rgb ) : byte[]
rgb byte
return byte[]

Dispose() protected method

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

DoPrivate() public method

public DoPrivate ( byte input ) : byte[]
input byte
return byte[]

DoPublic() public method

public DoPublic ( byte input ) : byte[]
input byte
return byte[]

EZRSA() public method

public EZRSA ( int keylen ) : System
keylen int
return System

Encrypt() public method

public Encrypt ( byte input, bool fOAEP ) : byte[]
input byte
fOAEP bool
return byte[]

EncryptValue() public method

public EncryptValue ( byte rgb ) : byte[]
rgb byte
return byte[]

ExportParameters() public method

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

FromXmlString() public method

public FromXmlString ( string xmlString ) : void
xmlString string
return void

GenerateKeyPair() public method

public GenerateKeyPair ( int exponent ) : void
exponent int
return void

ImportParameters() public method

public ImportParameters ( RSAParameters parameters ) : void
parameters System.Security.Cryptography.RSAParameters
return void

MapHashAlgorithmOID() public method

public MapHashAlgorithmOID ( string hash_algorithm_oid ) : HASH_ALGORITHM
hash_algorithm_oid string
return HASH_ALGORITHM

SignData() public method

public SignData ( byte data, HashAlgorithm hasher ) : byte[]
data byte
hasher System.Security.Cryptography.HashAlgorithm
return byte[]

SignHash() public method

public SignHash ( byte sign_me, HASH_ALGORITHM hash_algorithm ) : byte[]
sign_me byte
hash_algorithm HASH_ALGORITHM
return byte[]

SignHash() public method

public SignHash ( byte sign_me, string hash_algorithm_oid ) : byte[]
sign_me byte
hash_algorithm_oid string
return byte[]

ToXmlString() public method

public ToXmlString ( bool includePrivateParameters ) : string
includePrivateParameters bool
return string

VerifyData() public method

public VerifyData ( byte data, HashAlgorithm hasher, byte signature ) : bool
data byte
hasher System.Security.Cryptography.HashAlgorithm
signature byte
return bool

VerifyHash() public method

public VerifyHash ( byte hash, byte signature, HASH_ALGORITHM hash_algorithm ) : bool
hash byte
signature byte
hash_algorithm HASH_ALGORITHM
return bool

VerifyHash() public method

public VerifyHash ( byte hash, string hash_algorithm_oid, byte signature ) : bool
hash byte
hash_algorithm_oid string
signature byte
return bool