Cypher for .net

PGPBase Members

The PGPBase type exposes the following members.

Constructors


  Name Description
Public method PGPBase
Initializes a new instance of the PGPBase class.

Methods


  Name Description
Public method Decrypt(array<Byte>[]()[][], RSAEncryptionPadding)
When overridden in a derived class, decrypts the input data using the specified padding mode.
Public method DecryptValue
When overridden in a derived class, decrypts the input data using the private key.
Public method Encrypt(array<Byte>[]()[][], RSAEncryptionPadding)
When overridden in a derived class, encrypts the input data using the specified padding mode.
Public method EncryptValue
Encrypts the value.
Public method ExportParameters
Exports the parameters is not permitted.
Public method FromXmlString
Initializes an RSA object from the key information from an XML string.
Public method ImportParameters
Imports the parameters is not permitted.
Public method SignData(array<Byte>[]()[][], Int32, Int32, HashAlgorithmName, RSASignaturePadding)
Computes the hash value of a portion of the specified byte array using the specified hash algorithm and padding mode, and signs the resulting hash value.
Public method SignData(Stream, HashAlgorithmName, RSASignaturePadding)
Computes the hash value of the specified stream using the specified hash algorithm and padding mode, and signs the resulting hash value.
Public method SignHash
When overridden in a derived class, computes the signature for the specified hash value by encrypting it with the private key using the specified padding.
Public method VerifyData
Verifies that a digital signature is valid by calculating the hash value of the data in a portion of a byte array using the specified hash algorithm and padding, and comparing it to the provided signature.
Public method VerifyHash
Verifies that a digital signature is valid by determining the hash value in the signature using the specified hash algorithm and padding, and comparing it to the provided hash value.

Properties


  Name Description
Public property KeyExchangeAlgorithm
Gets the name of the key exchange algorithm available with this implementation of RSA.
Public property KeySize
Gets or sets the size, in bits, of the key modulus used by the asymmetric algorithm.
Public property LegalKeySizes
Gets the key sizes that are supported by the asymmetric algorithm.
Public property SignatureAlgorithm
Gets the name of the signature algorithm available with this implementation of RSA.