Пример #1
0
    /// <summary>
    /// RSA加载JAVA  PrivateKey
    /// </summary>
    /// <param name="privateJavaKey">java提供的第三方私钥</param>
    /// <returns></returns>
    public static void FromPrivateKeyJavaString(this System.Security.Cryptography.RSA rsa, string privateJavaKey)
    {
        string xmlPrivateKey = rsa.ConvertToXmlPrivateKey(privateJavaKey);

        rsa.FromXmlString(xmlPrivateKey);
    }