Imports an encrypted RFC 7468 PEM-encoded private key, replacing the keys for this object. ImportFromEncryptedPem(ReadOnlySpan, ReadOnlySpan) Imports the public/private keypair from a PKCS#8 EncryptedPrivateKeyInfo structure after decrypting with a char-based password, replacing the keys for this object. Imports the public/private keypair from a PKCS#8 EncryptedPrivateKeyInfo structure after decrypting with a byte-based password, replacing the keys for this object. ImportEncryptedPkcs8PrivateKey(ReadOnlySpan, ReadOnlySpan, Int32) When overridden in a derived class, computes the hash value of a specified binary stream by using a specified hashing algorithm. When overridden in a derived class, computes the hash value of a specified portion of a byte array by using a specified hashing algorithm. HashData(Byte, Int32, Int32, HashAlgorithmName) Initializes an RSA object from the key information from an XML string. When overridden in a derived class, encrypts the input data using the public key.ĭetermines whether the specified object is equal to the current object.ĮxportEncryptedPkcs8PrivateKey(ReadOnlySpan, PbeParameters)Įxports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a byte-based password.Įxports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a char-based password.ĮxportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan, PbeParameters)Įxports the current key in the PKCS#8 EncryptedPrivateKeyInfo format with a char-based password, PEM encoded.Įxports the current key in the PKCS#8 PrivateKeyInfo format.Įxports the current key in the PKCS#8 PrivateKeyInfo format, PEM encoded.Įxports the current key in the PKCS#1 RSAPrivateKey format.Įxports the current key in the PKCS#1 RSAPrivateKey format, PEM encoded.Įxports the public-key portion of the current key in the PKCS#1 RSAPublicKey format.Įxports the public-key portion of the current key in the PKCS#1 RSAPublicKey format, PEM encoded.Įxports the public-key portion of the current key in the X.509 SubjectPublicKeyInfo format.Įxports the public-key portion of the current key in the X.509 SubjectPublicKeyInfo format, PEM encoded. When overridden in a derived class, encrypts the input data using the specified padding mode.Įncrypt(ReadOnlySpan, RSAEncryptionPadding)Įncrypt(ReadOnlySpan, Span, RSAEncryptionPadding) ![]() Gets a SafeEvpPKeyHandle representation of the cryptographic key.Įncrypts the input data using the specified padding mode. Releases the unmanaged resources used by the AsymmetricAlgorithm class and optionally releases the managed resources. ![]() Releases all resources used by the current instance of the AsymmetricAlgorithm class. When overridden in a derived class, decrypts the input data using the private key. When overridden in a derived class, decrypts the input data using the specified padding mode.ĭecrypt(ReadOnlySpan, RSAEncryptionPadding)ĭecrypt(ReadOnlySpan, Span, RSAEncryptionPadding) Releases all resources used by the AsymmetricAlgorithm class.ĭecrypts the input data using the specified padding mode. Gets the name of the signature algorithm available with this implementation of RSA. Gets the key sizes that are supported by the asymmetric algorithm. Gets the key sizes, in bits, that are supported by this implementation of RSA. Gets or sets the size, in bits, of the key modulus used by the asymmetric algorithm. Gets the name of the key exchange algorithm available with this implementation of RSA. Specifies the key sizes that are supported by the asymmetric algorithm. Represents the size, in bits, of the key modulus used by the asymmetric algorithm. Initializes a new instance of the RSAOpenSsl class from an existing OpenSSL key represented as an EVP_PKEY*. Initializes a new instance of the RSAOpenSsl class using specified key parameters. Initializes a new instance of the RSAOpenSsl class from an existing OpenSSL key represented as an RSA*. Initializes a new instance of the RSAOpenSsl class with a randomly generated key of the specified size. ![]() Initializes a new instance of the RSAOpenSsl class with a random 2048-bit key pair. ![]() For applications which aren't doing OpenSSL-specific interop, you're encouraged to use RSA.Create instead of referencing this type directly. It isn't available on Windows and is only available on other operating systems when OpenSSL is installed. The RSAOpenSsl class is an implementation of the RSA algorithm using OpenSSL.
0 Comments
Leave a Reply. |