RSA算法 :首先, 找出三個數(shù), p, q, r, 其中 p, q 是兩個相異的質數(shù), r 是與 (p-1)(q-1) 互質的數(shù)...... p, q, r 這三個數(shù)便是 person_key,接著, 找出 m, 使得 r^m == 1 mod (p-1)(q-1)..... 這個 m 一定存在, 因為 r 與 (p-1)(q-1) 互質, 用輾轉相除法就可以得到了..... 再來, 計算 n = pq....... m, n 這兩個數(shù)便是 public_key ,編碼過程是, 若資料為 a, 將其看成是一個大整數(shù), 假設 a < n.... 如果 a >= n 的話, 就將 a 表成 s 進位 (s
標簽: person_key RSA 算法
上傳時間: 2013-12-14
上傳用戶:zhuyibin
CharFilter_Class實例是對CharFilter實例的完善。在CharFilter實例中,我們定義了四個全局變量,這不符合WDM驅動程序的要求,它限制了IRP的可重入性,我們應該使用局部變量。 該實例定義了一個READ_COMPLETION_INFO結構,當有DeviceControl 調用時,就分配一個結構對象,參數(shù)設置完后,就將該結構對象地址指針放在I.FileObject()->FsContext中。
標簽: CharFilter CharFilter_Class
上傳時間: 2014-01-22
上傳用戶:watch100
科學發(fā)現(xiàn)的邏輯》是波珀的代表作,也是現(xiàn)代科學哲學頗享盛名的主要代表作之一。本書主要討論知識理論的兩個基本問題:劃界和歸納問題。作者論證科學與非科學的劃界標準不是可證實性而是可證偽性,科學的方法不是歸納法而是演繹檢驗法。書中提出的有關科學的性質和方法以及科學知識增長的獨創(chuàng)性論點,對科學哲學、認識論、邏輯學、方法論以及科學史、自然科學、醫(yī)學、設計理論、社會科學均有影響。一些著名科學家都認為他的方法符合科學研究的實際。
標簽: 發(fā)現(xiàn) 邏輯
上傳時間: 2014-01-09
上傳用戶:498732662
The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition
標簽: government streamline important alphabet
上傳時間: 2015-06-09
上傳用戶:weixiao99
電力系統(tǒng)在臺穩(wěn)定計算式電力系統(tǒng)不正常運行方式的一種計算。它的任務是已知電力系統(tǒng)某一正常運行狀態(tài)和受到某種擾動,計算電力系統(tǒng)所有發(fā)電機能否同步運行 1運行說明: 請輸入初始功率S0,形如a+bi 請輸入無限大系統(tǒng)母線電壓V0 請輸入系統(tǒng)等值電抗矩陣B 矩陣B有以下元素組成的行矩陣 1正常運行時的系統(tǒng)直軸等值電抗Xd 2故障運行時的系統(tǒng)直軸等值電抗X d 3故障切除后的系統(tǒng)直軸等值電抗 請輸入慣性時間常數(shù)Tj 請輸入時段數(shù)N 請輸入哪個時段發(fā)生故障Ni 請輸入每時段間隔的時間dt
標簽: 電力系統(tǒng) 正 計算 運行
上傳時間: 2015-06-13
上傳用戶:it男一枚
北京到廣州鐵路路線仿真,可用于完好性分析用
標簽: 仿真
上傳時間: 2013-12-20
上傳用戶:xuanjie
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
標簽: represented integers group items
上傳時間: 2016-01-17
上傳用戶:jeffery
JHotDraw是一個二維的GUI框架,主要用于支持用Java開發(fā)的圖形編輯器。JHotDraw基于兩大重要的技術:面向對象設計模式(Design Pattern)和應用框架(Application Framework),提高了JHotDraw的可復用性和可擴展性。研究JHotDraw,可以很好的學習設計模式和應用框架的應用
上傳時間: 2016-04-09
上傳用戶:陽光少年2016
基于嵌入式操作系統(tǒng)VxWorks的戰(zhàn)車虛擬儀表顯示技術研究.pdf 本文研究在嵌入式實時操作系統(tǒng)VxWorks及其圖形系統(tǒng)WindML上實現(xiàn)戰(zhàn)車虛擬儀表圖形系統(tǒng)的技術難點問題,并研究如何應用設計模式提高嵌入式計算機軟件代碼可復用性和系統(tǒng)可維護性
上傳時間: 2014-01-19
上傳用戶:小寶愛考拉
用C++寫的BP神經網絡的類,具有很好的可復用性!
標簽: BP神經網絡
上傳時間: 2014-02-27
上傳用戶:Divine