一、RSA基本原理 對明文分組M和密文分組C,加密與解密過程如下: C = POW (M , e) mod n M = POW(C , d) mod n = POW(POW( M ,e), d) mod n=POW( M,e*d) 其中POW是指數函數,mod是求余數函數。 其中收發雙方均已知n,發送放已知e,只有接受方已知d,因此公鑰加密算法的公鑰為 KU={ e , n},私鑰為KR={d , n}。該算法要能用做公鑰加密,必須滿足下列條件: 1. 可以找到e ,d和n,使得對所有M<n ,POW(M ,e*d)=M mod n . 2. 對所有 M<n,計算POW (M , e)和POW(C , d)是比較容易的。 3. 由e 和n確定d是不可行的
上傳時間: 2014-08-04
上傳用戶:sevenbestfei
LZW壓縮和解壓縮程序 lzw.c 主要的功能模塊 bitio.c/bitio.h 一些支撐函數,支持以比特(bit)為單位的文件I/O 用法: 壓縮 lzw E <in-file> <out-file> 解壓縮 lzw D <in-file> <out-file> 壓縮時,讀入<in-file>中內容,壓縮后存入<out-file>中,得到壓縮文件。 解壓縮時,讀入<in-file>中內容,將結果存入<out-file>中,得到原文件。 本代碼在linux+gcc/windows+vc下經過測試,為了使讀者容易理解算法本身, 算法實現中僅采用了簡單的錯誤處理機制和優化。
上傳時間: 2015-06-08
上傳用戶:chenbhdt
本書第二部分講述的是在Wi n 3 2平臺上的Wi n s o c k編程。對于眾多的基層網絡協議, Wi n s o c k是訪問它們的首選接口。而且在每個Wi n 3 2平臺上,Wi n s o c k都以不同的形式存在著。 Wi n s o c k是網絡編程接口,而不是協議。它從U n i x平臺的B e r k e l e y(B S D)套接字方案借鑒了 許多東西,后者能訪問多種網絡協議。在Wi n 3 2環境中,Wi n s o c k接口最終成為一個真正的 “與協議無關”接口,尤其是在Winsock 2發布之后。
上傳時間: 2015-07-08
上傳用戶:thinode
本附錄按錯誤編號列出了所有Wi n s o c k錯誤代碼。但要注意的是,該列表沒有包括標記為 “B S D特有”的Wi n s o c k錯誤,也沒有包括那些尚未正式列入規范的錯誤。此外,與Wi n 3 2錯 誤有著直接對應關系的Wi n s o c k錯誤列在本附錄末尾。
上傳時間: 2014-01-11
上傳用戶:ghostparker
Computes the hafnian of a nonnegative integer matrix. Notes: Copy hafnian.c to main.c, in the same directory as Rothberg s code (see above). You can download the .tar directory with the code weighted-match.tar here. Then "make" the codes (this codes are in C, not C++). The program is then run by the command "wmatch".
標簽: hafnian nonnegative the Computes
上傳時間: 2013-12-23
上傳用戶:lmeeworm
加密算法 Test Driver for Crypto++, a C++ Class Library of Cryptographic Primitives: - To generate an RSA key cryptest g - To encrypt and decrypt a string using RSA cryptest r - To calculate MD5, SHS, and RIPEMD-160 message digests: cryptest m file - To encrypt and decrypt a string using DES-EDE in CBC mode: cryptest t - To encrypt or decrypt a file cryptest e|d input output - To share a file into shadows: cryptest s <pieces> <pieces-needed> file (make sure file has no extension, if you re running this under DOS) - To reconstruct a file from shadows: cryptest j output file1 file2 [....] - To gzip a file: cryptest z <compression-level> input output - To gunzip a file: cryptest u input output - To run validation tests: cryptest v - To run benchmarks: cryptest b [time for each benchmark in seconds]
標簽: Cryptographic Primitives generate Library
上傳時間: 2015-07-16
上傳用戶:wqxstar
he AutoMix package is a C program for Unix-like systems, implementing the automatic reversible jump MCMC sampler of the same name described in Chapters 4, 5, and 6 of David Hastie s Ph.D. thesis
標簽: implementing reversible Unix-like automatic
上傳時間: 2015-07-24
上傳用戶:集美慧
X-tree的C++源碼,對應文章S. Berchtold, D. A. Keim, H.-P. Kriegel: The X-tree : An Index Structure for High-Dimensional Data.
上傳時間: 2015-08-22
上傳用戶:1101055045
This section contains a brief introduction to the C language. It is intended as a tutorial on the language, and aims at getting a reader new to C started as quickly as possible. It is certainly not intended as a substitute for any of the numerous textbooks on C. 2. write a recursive function FIB (n) to find out the nth element in theFibanocci sequence number which is 1,1,2,3,5,8,13,21,34,55,…3. write the prefix and postfix form of the following infix expressiona + b – c / d + e * f – g * h / i ^ j4. write a function to count the number of nodes in a binary tr
標簽: introduction the contains intended
上傳時間: 2013-12-23
上傳用戶:liansi
30個典型的C語言應用實例:單片機實現7段數碼管顯示,基于MAX7219的8位數碼管顯示,MAX7219的工作時序和寄存器描述,單片機實現液晶顯示,單片機實現電子密碼鎖, 單片機實現簡單音樂發生器,單片機實現語音錄放,基于MAX197的并行A/D轉換,基于TLC549的串行A/D轉換,基于MAX517的串行D/A轉換,基于DS18B20的數字溫度計設計等等,例子超多 包括了書中所有的程序代碼和電路圖,稍加修改便可用于自己的設計中去
上傳時間: 2014-01-21
上傳用戶:shawvi