久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<i id='d9SXY'><tr id='d9SXY'><dt id='d9SXY'><q id='d9SXY'><span id='d9SXY'><b id='d9SXY'><form id='d9SXY'><ins id='d9SXY'></ins><ul id='d9SXY'></ul><sub id='d9SXY'></sub></form><legend id='d9SXY'></legend><bdo id='d9SXY'><pre id='d9SXY'><center id='d9SXY'></center></pre></bdo></b><th id='d9SXY'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='d9SXY'><tfoot id='d9SXY'></tfoot><dl id='d9SXY'><fieldset id='d9SXY'></fieldset></dl></div>
    <legend id='d9SXY'><style id='d9SXY'><dir id='d9SXY'><q id='d9SXY'></q></dir></style></legend>
  • <small id='d9SXY'></small><noframes id='d9SXY'>

        <bdo id='d9SXY'></bdo><ul id='d9SXY'></ul>
      1. <tfoot id='d9SXY'></tfoot>

        .NET 中的 RSA 密鑰指數有限制嗎?

        Is there a limit for RSA key exponents in .NET?(.NET 中的 RSA 密鑰指數有限制嗎?)
        <i id='mPd2n'><tr id='mPd2n'><dt id='mPd2n'><q id='mPd2n'><span id='mPd2n'><b id='mPd2n'><form id='mPd2n'><ins id='mPd2n'></ins><ul id='mPd2n'></ul><sub id='mPd2n'></sub></form><legend id='mPd2n'></legend><bdo id='mPd2n'><pre id='mPd2n'><center id='mPd2n'></center></pre></bdo></b><th id='mPd2n'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='mPd2n'><tfoot id='mPd2n'></tfoot><dl id='mPd2n'><fieldset id='mPd2n'></fieldset></dl></div>
        <tfoot id='mPd2n'></tfoot>

        <small id='mPd2n'></small><noframes id='mPd2n'>

            <tbody id='mPd2n'></tbody>
          <legend id='mPd2n'><style id='mPd2n'><dir id='mPd2n'><q id='mPd2n'></q></dir></style></legend>

                  <bdo id='mPd2n'></bdo><ul id='mPd2n'></ul>

                  本文介紹了.NET 中的 RSA 密鑰指數有限制嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  使用 C# 我無法導入指數為 {1, 0, 0, 0, 15} 的公共 RSA 密鑰:有一個例外:

                  Using C# I cannot import a public RSA key with an exponent of {1, 0, 0, 0, 15}: There is an exception:

                  System.Security.Cryptography.CryptographicException was caught
                    HResult=-2146893819
                    Message=Bad Data.
                  
                    Source=mscorlib
                    StackTrace:
                         at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
                         at System.Security.Cryptography.Utils._ImportKey(SafeProvHandle hCSP, Int32 keyNumber, CspProviderFlags flags, Object cspObject, SafeKeyHandle& hKey)
                         at System.Security.Cryptography.RSACryptoServiceProvider.ImportParameters(RSAParameters parameters)
                         at TestRSA.Form1.buttonTest_Click(Object sender, EventArgs e) in c:UsersThomasDocumentsVisual Studio 2010ProjectsModulesTestRSAForm1.cs:line 32
                  

                  使用代碼:

                  RSACryptoServiceProvider rsaAlg = new RSACryptoServiceProvider();
                  RSAParameters key = new RSAParameters();
                  key.Exponent = new byte[5] { 1, 0, 0, 0, 15 };
                  key.Modulus = GetModulus(); // byte Array with length 256...
                  rsaAlg.ImportParameters(key); // <<== this call will throw the exception
                  

                  .NET 中的 RSA 密鑰指數有限制嗎?(使用 Exponent == { 1, 0, 1 } 導入將成功.

                  Is there a limit for RSA key exponents in .NET? (With Exponent == { 1, 0, 1 } the import will succeed.

                  問候托馬斯

                  推薦答案

                  微軟默認提供者只支持特定大小的公鑰指數,CodesInChaos 認為:

                  The default provider by Microsoft only supports public key exponents of a specific size, as CodesInChaos mused:

                  CNG 在 RSA 密鑰對方面更加靈活.例如,CNG 支持長度大于 32 位的公共指數,并且支持 p 和 q 長度不同的密鑰.

                  CNG is more flexible with regard to RSA key pairs. For example, CNG supports public exponents larger than 32-bits in length, and it supports keys in which p and q are different lengths.

                  請注意,4 字節指數的限制僅適用于 MS CSP.如果使用第三方 CSP,CryptoAPI 應該能夠使用 5 字節指數.

                  Please, note that the restriction of 4 byte exponents are for MS CSPs only. CryptoAPI should be able to work with 5 byte exponents if using a third-party CSP.

                  來源:

                  • http://blogs.msdn.com/b/alejacma/archive/2010/07/28/cryptoapi-and-5-bytes-exponent-public-keys.aspx
                  • 來源:http://msdn.microsoft.com/en-us/library/bb204778%28VS.85%29.aspx

                  這篇關于.NET 中的 RSA 密鑰指數有限制嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  What are good algorithms for vehicle license plate detection?(車牌檢測有哪些好的算法?)
                  onClick event for Image in Unity(Unity中圖像的onClick事件)
                  Running Total C#(運行總 C#)
                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時突出顯示行)
                  Calling A Button OnClick from a function(從函數調用按鈕 OnClick)

                  1. <small id='yRxRP'></small><noframes id='yRxRP'>

                      <legend id='yRxRP'><style id='yRxRP'><dir id='yRxRP'><q id='yRxRP'></q></dir></style></legend><tfoot id='yRxRP'></tfoot>

                          <bdo id='yRxRP'></bdo><ul id='yRxRP'></ul>
                          <i id='yRxRP'><tr id='yRxRP'><dt id='yRxRP'><q id='yRxRP'><span id='yRxRP'><b id='yRxRP'><form id='yRxRP'><ins id='yRxRP'></ins><ul id='yRxRP'></ul><sub id='yRxRP'></sub></form><legend id='yRxRP'></legend><bdo id='yRxRP'><pre id='yRxRP'><center id='yRxRP'></center></pre></bdo></b><th id='yRxRP'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='yRxRP'><tfoot id='yRxRP'></tfoot><dl id='yRxRP'><fieldset id='yRxRP'></fieldset></dl></div>
                            <tbody id='yRxRP'></tbody>
                          • 主站蜘蛛池模板: 亚洲精品无人区 | 青青青伊人 | 欧美激情一区 | 国产成人a亚洲精品 | 国内精品成人 | 亚洲人在线播放 | 欧美黄色片 | 欧美片网站免费 | 91精品国产91久久久久久最新 | 青青草亚洲 | 精品一区二区三区四区视频 | 国产视频一区二区在线观看 | 欧美一区免费在线观看 | 欧美精品片 | 成人午夜影院 | 一区二区中文字幕 | 中文字幕97| 午夜免费网站 | 精品一区二区久久久久久久网站 | 久久久av一区 | 久久久久免费观看 | 日韩视频精品在线 | 免费在线黄| 久久成人久久 | 久久久久国产精品一区三寸 | 国产精品视频一区二区三区 | 在线中文字幕亚洲 | 欧美成人一级 | 国产99久久 | 国产精品久久久久一区二区三区 | 中国毛片免费 | 日韩久久综合网 | 亚洲91精品| 一级毛片在线看 | 中文字幕一区二区三区在线视频 | 午夜精品久久久久久不卡欧美一级 | 一区二区三区网站 | 在线国产一区二区 | 女朋友的闺蜜3韩国三级 | 日本在线中文 | 日韩av一区二区在线观看 |