Click or drag to resize

Rsa Class

RSA Encryption and Public Key Functions
Inheritance Hierarchy
SystemObject
  CryptoSysPKIRsa

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public class Rsa

The Rsa type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCheckKey(String) Check the validity of an "internal" RSA public or private key.
Public methodStatic memberCheckKey(StringBuilder) Check the validity of an "internal" RSA public or private key.
Public methodStatic memberDecodeDigestForSignature Decode an encoded message for signature.
Public methodStatic memberDecodeMsgForEncryption Decode a message for encryption.
Public methodStatic memberDecodeMsgIso9796 Decode a message padded using ISO/IEC 9796-1 formatting.
Public methodStatic memberDecrypt Decrypt a message encrypted using an RSA encryption scheme.
Public methodStatic memberEncodeDigestForSignature Encode a message digest for signature.
Public methodStatic memberEncodeMsgForEncryption Encode a message for encryption.
Public methodStatic memberEncodeMsgForSignature Encode a message for signature.
Public methodStatic memberEncodeMsgIso9796 Encode a message using ISO/IEC 9796-1 formatting.
Public methodStatic memberEncrypt Encrypt a short message using RSA encryption.
Public methodStatic memberFromXMLString(String) Create an RSA key string in internal format from an XML string.
Public methodStatic memberFromXMLString(String, RsaXmlOptions) Create an RSA key string in internal format from an XML string with options.
Public methodStatic memberFromXMLString(String, Boolean) Create an RSA key string in internal format from an XML string with flag to exclude private key details.
Public methodStatic memberGetPrivateKeyFromPFX Extract an encrypted private key from a PKCS-12 PKCS8ShroudedKeyBag, saving the output directly as a new file.
Public methodStatic memberGetPublicKeyFromCertObsolete.
Read public key from X.509 certificate into internal string format.
Public methodStatic memberKeyBits(String) Return number of significant bits in RSA key modulus.
Public methodStatic memberKeyBits(StringBuilder) Return number of significant bits in RSA key modulus.
Public methodStatic memberKeyBytes(String) Return number of bytes (octets) in RSA key modulus.
Public methodStatic memberKeyBytes(StringBuilder) Return number of bytes (octets) in RSA key modulus.
Public methodStatic memberKeyHashCode(String) Compute the hash code of an "internal" RSA public or private key string.
Public methodStatic memberKeyHashCode(StringBuilder) Compute the hash code of an "internal" RSA public or private key string.
Public methodStatic memberKeyMatch(String, String) Verify that a pair of "internal" RSA private and public key strings are matched.
Public methodStatic memberKeyMatch(StringBuilder, StringBuilder) Verify that a pair of "internal" RSA private and public key strings are matched.
Public methodStatic memberKeyValue Extract a base64-encoded RSA key value from internal key string
Public methodStatic memberMakeKeys(String, String, Int32, RsaPublicExponent, Int32, String, RsaPbeOptions, Boolean, Byte)Obsolete.
Generate an RSA public/private key pair [DEPRECATED].
Public methodStatic memberMakeKeys(String, String, String, Int32, RsaPublicExponent, RsaPbeOptions, String, RsaFormat, Boolean) Generate an RSA public/private key pair.
Public methodStatic memberMakeKeys(String, String, Int32, RsaPublicExponent, Int32, String, CipherAlgorithm, HashAlgorithm, RsaFormat, Boolean)Obsolete.
Generate an RSA public/private key pair with extended options for encrypting private key [DEPRECATED].
Public methodStatic memberPublicKeyFromPrivate Convert an internal private key string into a public one.
Public methodStatic memberRawPrivate(Byte, String) Carry out RSA transformation using private key.
Public methodStatic memberRawPrivate(Byte, String, Int32) Carry out RSA transformation using private key (with specialist options).
Public methodStatic memberRawPublic(Byte, String) Carry out RSA transformation using public key.
Public methodStatic memberRawPublic(Byte, String, Int32) Carry out RSA transformation using public key (with specialist options).
Public methodStatic memberReadEncPrivateKeyObsolete.
Read encrypted private key file into internal string format.
Public methodStatic memberReadPrivateKey Read from a file or string containing a private key into an "internal" private key string.
Public methodStatic memberReadPrivateKeyFromPFXObsolete.
Read a private key directly from an encrypted PFX/PKCS-12 file into an "internal" private key string.
Public methodStatic memberReadPrivateKeyInfoObsolete.
Read from an (unencrypted) PKCS-8 private key info file into a private key string.
Public methodStatic memberReadPublicKey Read from a file or string containing a public key into an "internal" public key string.
Public methodStatic memberSaveEncKey Save an internal RSA key string to an encrypted key file.
Public methodStatic memberSaveEncPrivateKey(String, String, Int32, String, RsaPbeOptions, RsaFormat) Save a private key string to a PKCS-8 EncryptedPrivateKeyInfo file [DEPRECATED].
Public methodStatic memberSaveEncPrivateKey(String, String, Int32, String, CipherAlgorithm, HashAlgorithm, RsaFormat) Save a private key string to a PKCS-8 EncryptedPrivateKeyInfo file using PBES2 algorithm [DEPRECATED].
Public methodStatic memberSavePrivateKeyInfo Save a private key string to an (unencrypted) PKCS-8 private key info file.
Public methodStatic memberSavePublicKey Save a public key string to PKCS-1 public key file.
Public methodStatic memberToXMLString(String, RsaXmlOptions) Create an XML string representation of an RSA internal key string.
Public methodStatic memberToXMLString(String, String, RsaXmlOptions) Create an XML string representation of an RSA internal key string with option to add a namespace prefix.
Top
See Also