Rsa Class |
The Rsa type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | CheckKey(String) | Check the validity of an "internal" RSA public or private key. |
![]() ![]() | CheckKey(StringBuilder) | Check the validity of an "internal" RSA public or private key. |
![]() ![]() | DecodeDigestForSignature | Decode an encoded message for signature. |
![]() ![]() | DecodeMsgForEncryption | Decode a message for encryption. |
![]() ![]() | DecodeMsgIso9796 | Decode a message padded using ISO/IEC 9796-1 formatting. |
![]() ![]() | Decrypt | Decrypt a message encrypted using an RSA encryption scheme. |
![]() ![]() | EncodeDigestForSignature | Encode a message digest for signature. |
![]() ![]() | EncodeMsgForEncryption | Encode a message for encryption. |
![]() ![]() | EncodeMsgForSignature | Encode a message for signature. |
![]() ![]() | EncodeMsgIso9796 | Encode a message using ISO/IEC 9796-1 formatting. |
![]() ![]() | Encrypt | Encrypt a short message using RSA encryption. |
![]() ![]() | FromXMLString(String) | Create an RSA key string in internal format from an XML string. |
![]() ![]() | FromXMLString(String, RsaXmlOptions) | Create an RSA key string in internal format from an XML string with options. |
![]() ![]() | FromXMLString(String, Boolean) | Create an RSA key string in internal format from an XML string with flag to exclude private key details. |
![]() ![]() | GetPrivateKeyFromPFX | Extract an encrypted private key from a PKCS-12 PKCS8ShroudedKeyBag, saving the output directly as a new file. |
![]() ![]() | GetPublicKeyFromCert | Obsolete. Read public key from X.509 certificate into internal string format. |
![]() ![]() | KeyBits(String) | Return number of significant bits in RSA key modulus. |
![]() ![]() | KeyBits(StringBuilder) | Return number of significant bits in RSA key modulus. |
![]() ![]() | KeyBytes(String) | Return number of bytes (octets) in RSA key modulus. |
![]() ![]() | KeyBytes(StringBuilder) | Return number of bytes (octets) in RSA key modulus. |
![]() ![]() | KeyHashCode(String) | Compute the hash code of an "internal" RSA public or private key string. |
![]() ![]() | KeyHashCode(StringBuilder) | Compute the hash code of an "internal" RSA public or private key string. |
![]() ![]() | KeyMatch(String, String) | Verify that a pair of "internal" RSA private and public key strings are matched. |
![]() ![]() | KeyMatch(StringBuilder, StringBuilder) | Verify that a pair of "internal" RSA private and public key strings are matched. |
![]() ![]() | KeyValue | Extract a base64-encoded RSA key value from internal key string |
![]() ![]() | MakeKeys(String, String, Int32, RsaPublicExponent, Int32, String, RsaPbeOptions, Boolean, Byte) | Obsolete. Generate an RSA public/private key pair [DEPRECATED]. |
![]() ![]() | MakeKeys(String, String, String, Int32, RsaPublicExponent, RsaPbeOptions, String, RsaFormat, Boolean) | Generate an RSA public/private key pair. |
![]() ![]() | MakeKeys(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]. |
![]() ![]() | PublicKeyFromPrivate | Convert an internal private key string into a public one. |
![]() ![]() | RawPrivate(Byte, String) | Carry out RSA transformation using private key. |
![]() ![]() | RawPrivate(Byte, String, Int32) | Carry out RSA transformation using private key (with specialist options). |
![]() ![]() | RawPublic(Byte, String) | Carry out RSA transformation using public key. |
![]() ![]() | RawPublic(Byte, String, Int32) | Carry out RSA transformation using public key (with specialist options). |
![]() ![]() | ReadEncPrivateKey | Obsolete. Read encrypted private key file into internal string format. |
![]() ![]() | ReadPrivateKey | Read from a file or string containing a private key into an "internal" private key string. |
![]() ![]() | ReadPrivateKeyFromPFX | Obsolete. Read a private key directly from an encrypted PFX/PKCS-12 file into an "internal" private key string. |
![]() ![]() | ReadPrivateKeyInfo | Obsolete. Read from an (unencrypted) PKCS-8 private key info file into a private key string. |
![]() ![]() | ReadPublicKey | Read from a file or string containing a public key into an "internal" public key string. |
![]() ![]() | SaveEncKey | Save an internal RSA key string to an encrypted key file. |
![]() ![]() | SaveEncPrivateKey(String, String, Int32, String, RsaPbeOptions, RsaFormat) | Save a private key string to a PKCS-8 EncryptedPrivateKeyInfo file [DEPRECATED]. |
![]() ![]() | SaveEncPrivateKey(String, String, Int32, String, CipherAlgorithm, HashAlgorithm, RsaFormat) | Save a private key string to a PKCS-8 EncryptedPrivateKeyInfo file using PBES2 algorithm [DEPRECATED]. |
![]() ![]() | SavePrivateKeyInfo | Save a private key string to an (unencrypted) PKCS-8 private key info file. |
![]() ![]() | SavePublicKey | Save a public key string to PKCS-1 public key file. |
![]() ![]() | ToXMLString(String, RsaXmlOptions) | Create an XML string representation of an RSA internal key string. |
![]() ![]() | ToXMLString(String, String, RsaXmlOptions) | Create an XML string representation of an RSA internal key string with option to add a namespace prefix. |