System.Security.Cryptography.RSAOpenSsl.ImportParameters C# (CSharp) Method

ImportParameters() public method

public ImportParameters ( System parameters ) : void
parameters System
return void
        public override void ImportParameters(System.Security.Cryptography.RSAParameters parameters)
        {
        }

Usage Example

Example #1
0
        private static unsafe RSA BuildRsaPublicKey(byte[] encodedData)
        {
            using (SafeRsaHandle rsaHandle = Interop.libcrypto.OpenSslD2I(Interop.libcrypto.d2i_RSAPublicKey, encodedData))
            {
                Interop.libcrypto.CheckValidOpenSslHandle(rsaHandle);

                RSAParameters rsaParameters = Interop.libcrypto.ExportRsaParameters(rsaHandle, false);
                RSA rsa = new RSAOpenSsl();
                rsa.ImportParameters(rsaParameters);
                return rsa;
            }
        }
All Usage Examples Of System.Security.Cryptography.RSAOpenSsl::ImportParameters