C# Class Mono.Security.Cryptography.PKCS1

Afficher le fichier Open project: runefs/Marvin Class Usage Examples

Méthodes publiques

Méthode Description
Decrypt_OAEP ( RSA rsa, HashAlgorithm hash, byte C ) : byte[]
Decrypt_v15 ( RSA rsa, byte C ) : byte[]
Encode_v15 ( HashAlgorithm hash, byte hashValue, int emLength ) : byte[]
Encrypt_OAEP ( RSA rsa, HashAlgorithm hash, RandomNumberGenerator rng, byte M ) : byte[]
Encrypt_v15 ( RSA rsa, RandomNumberGenerator rng, byte M ) : byte[]
I2OSP ( byte x, int size ) : byte[]
I2OSP ( int x, int size ) : byte[]
MGF1 ( HashAlgorithm hash, byte mgfSeed, int maskLen ) : byte[]
OS2IP ( byte x ) : byte[]
RSADP ( RSA rsa, byte c ) : byte[]
RSAEP ( RSA rsa, byte m ) : byte[]
RSASP1 ( RSA rsa, byte m ) : byte[]
RSAVP1 ( RSA rsa, byte s ) : byte[]
Sign_v15 ( RSA rsa, HashAlgorithm hash, byte hashValue ) : byte[]
Verify_v15 ( RSA rsa, HashAlgorithm hash, byte hashValue, byte signature ) : bool
Verify_v15 ( RSA rsa, HashAlgorithm hash, byte hashValue, byte signature, bool tryNonStandardEncoding ) : bool

Private Methods

Méthode Description
Compare ( byte array1, byte array2 ) : bool
GetEmptyHash ( HashAlgorithm hash ) : byte[]
PKCS1 ( ) : System
xor ( byte array1, byte array2 ) : byte[]

Method Details

Decrypt_OAEP() public static méthode

public static Decrypt_OAEP ( RSA rsa, HashAlgorithm hash, byte C ) : byte[]
rsa System.Security.Cryptography.RSA
hash HashAlgorithm
C byte
Résultat byte[]

Decrypt_v15() public static méthode

public static Decrypt_v15 ( RSA rsa, byte C ) : byte[]
rsa System.Security.Cryptography.RSA
C byte
Résultat byte[]

Encode_v15() public static méthode

public static Encode_v15 ( HashAlgorithm hash, byte hashValue, int emLength ) : byte[]
hash HashAlgorithm
hashValue byte
emLength int
Résultat byte[]

Encrypt_OAEP() public static méthode

public static Encrypt_OAEP ( RSA rsa, HashAlgorithm hash, RandomNumberGenerator rng, byte M ) : byte[]
rsa System.Security.Cryptography.RSA
hash HashAlgorithm
rng System.Security.Cryptography.RandomNumberGenerator
M byte
Résultat byte[]

Encrypt_v15() public static méthode

public static Encrypt_v15 ( RSA rsa, RandomNumberGenerator rng, byte M ) : byte[]
rsa System.Security.Cryptography.RSA
rng System.Security.Cryptography.RandomNumberGenerator
M byte
Résultat byte[]

I2OSP() public static méthode

public static I2OSP ( byte x, int size ) : byte[]
x byte
size int
Résultat byte[]

I2OSP() public static méthode

public static I2OSP ( int x, int size ) : byte[]
x int
size int
Résultat byte[]

MGF1() public static méthode

public static MGF1 ( HashAlgorithm hash, byte mgfSeed, int maskLen ) : byte[]
hash HashAlgorithm
mgfSeed byte
maskLen int
Résultat byte[]

OS2IP() public static méthode

public static OS2IP ( byte x ) : byte[]
x byte
Résultat byte[]

RSADP() public static méthode

public static RSADP ( RSA rsa, byte c ) : byte[]
rsa System.Security.Cryptography.RSA
c byte
Résultat byte[]

RSAEP() public static méthode

public static RSAEP ( RSA rsa, byte m ) : byte[]
rsa System.Security.Cryptography.RSA
m byte
Résultat byte[]

RSASP1() public static méthode

public static RSASP1 ( RSA rsa, byte m ) : byte[]
rsa System.Security.Cryptography.RSA
m byte
Résultat byte[]

RSAVP1() public static méthode

public static RSAVP1 ( RSA rsa, byte s ) : byte[]
rsa System.Security.Cryptography.RSA
s byte
Résultat byte[]

Sign_v15() public static méthode

public static Sign_v15 ( RSA rsa, HashAlgorithm hash, byte hashValue ) : byte[]
rsa System.Security.Cryptography.RSA
hash HashAlgorithm
hashValue byte
Résultat byte[]

Verify_v15() public static méthode

public static Verify_v15 ( RSA rsa, HashAlgorithm hash, byte hashValue, byte signature ) : bool
rsa System.Security.Cryptography.RSA
hash HashAlgorithm
hashValue byte
signature byte
Résultat bool

Verify_v15() public static méthode

public static Verify_v15 ( RSA rsa, HashAlgorithm hash, byte hashValue, byte signature, bool tryNonStandardEncoding ) : bool
rsa System.Security.Cryptography.RSA
hash HashAlgorithm
hashValue byte
signature byte
tryNonStandardEncoding bool
Résultat bool