C# Class MonoTests.System.Security.Cryptography.RSACryptoServiceProviderTest

Show file Open project: kumpera/mono

Protected Properties

Property Type Description
disposed System.Security.Cryptography.RSACryptoServiceProvider
rsa System.Security.Cryptography.RSACryptoServiceProvider

Public Methods

Method Description
AssertEquals ( string message, RSAParameters expectedKey, RSAParameters actualKey, bool checkPrivateKey ) : void
AssertEquals ( string msg, byte array1, byte array2 ) : void

Protected Methods

Method Description
SignHash ( string name, int size ) : void

Private Methods

Method Description
Bug79269 ( ) : void
Bug79320_OAEP ( ) : void
Bug79320_PKCS1 ( ) : void
CapiSignature ( ) : void
CapiVerify ( ) : void
CapiXmlImportExport ( ) : void
CapiXmlImportWithoutCRT ( ) : void
ConstructorCspParameters ( ) : void
ConstructorEmpty ( ) : void
ConstructorKeySize ( ) : void
ConstructorKeySizeCspParameters ( ) : void
CspKeyContainerInfo_ImportedKeypair ( ) : void
CspKeyContainerInfo_ImportedPublicKey ( ) : void
CspKeyContainerInfo_NewKeypair ( ) : void
DecryptDisposed ( ) : void
EncryptDisposed ( ) : void
ExportCspBlob_Full ( ) : void
ExportCspBlob_MissingPrivateKey ( ) : void
ExportCspBlob_MissingPrivateKey_PublicOnly ( ) : void
ExportCspBlob_PublicKey ( ) : void
ExportCspBlob_PublicOnly ( ) : void
ExportDisposed ( ) : void
ExportWithoutCRT ( ) : void
FixtureSetUp ( ) : void
ImportCspBlob_Bad ( ) : void
ImportCspBlob_Keypair ( ) : void
ImportCspBlob_Null ( ) : void
ImportDisposed ( ) : void
KeyGeneration ( ) : void
LimitedKeyGeneration ( ) : void
MonoSignature ( ) : void
MonoVerify ( ) : void
MonoXmlImportExport ( ) : void
MonoXmlImportWithoutCRT ( ) : void
OAEP ( ) : void
PKCS1 ( ) : void
Persistence_Delete ( ) : void
Persistence_PersistKeyInCsp_False ( ) : void
Persistence_PersistKeyInCsp_True ( ) : void
Properties ( ) : void
RSAImportMissingExponent ( ) : void
RSAImportMissingModulus ( ) : void
Setup ( ) : void
SignAndVerify ( string msg, RSACryptoServiceProvider rsa ) : void
SignDataByteArrayNull ( ) : void
SignDataDisposed ( ) : void
SignDataStreamNull ( ) : void
SignHashDisposed ( ) : void
SignHashInvalidLength ( ) : void
SignHashMD5 ( ) : void
SignHashNullOID ( ) : void
SignHashNullValue ( ) : void
SignHashRIPEMD160 ( ) : void
SignHashSHA1 ( ) : void
SignHashSHA256 ( ) : void
SignHashSHA384 ( ) : void
SignHashSHA512 ( ) : void
SignatureWithoutCRT ( ) : void
TearDown ( ) : void
TooBigKeyPair ( ) : void
TooSmallKeyPair ( ) : void
UseMachineKeyStore ( ) : void
UseMachineKeyStore_Default ( ) : void
VerifyDataDisposed ( ) : void
VerifyDataNullData ( ) : void
VerifyDataNullSignature ( ) : void
VerifyHashDisposed ( ) : void
VerifyHashInvalidHashLength ( ) : void
VerifyHashNullHash ( ) : void
VerifyHashNullSignature ( ) : void

Method Details

AssertEquals() public method

public AssertEquals ( string message, RSAParameters expectedKey, RSAParameters actualKey, bool checkPrivateKey ) : void
message string
expectedKey System.Security.Cryptography.RSAParameters
actualKey System.Security.Cryptography.RSAParameters
checkPrivateKey bool
return void

AssertEquals() public method

public AssertEquals ( string msg, byte array1, byte array2 ) : void
msg string
array1 byte
array2 byte
return void

SignHash() protected method

protected SignHash ( string name, int size ) : void
name string
size int
return void

Property Details

disposed protected property

protected RSACryptoServiceProvider,System.Security.Cryptography disposed
return System.Security.Cryptography.RSACryptoServiceProvider

rsa protected property

protected RSACryptoServiceProvider,System.Security.Cryptography rsa
return System.Security.Cryptography.RSACryptoServiceProvider