Exemplo n.º 1
0
    /// <summary>
    /// RSA加载JAVA  publicJavaKey
    /// </summary>
    /// <param name="privateKey">java提供的第三方公钥</param>
    /// <returns></returns>
    public static void FromPublicKeyJavaString(this System.Security.Cryptography.RSA rsa, string publicJavaKey)
    {
        string xmlpublicKey = rsa.ConvertToXmlPublicJavaKey(publicJavaKey);

        rsa.FromXmlString(xmlpublicKey);
    }