加密算法
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]
Program to simulate Rayleigh fading using a p-th order autoregressive model AR(p) according to
% Baddour s work: "Autoregressive modeling for fading channel simulation"
1、 了解系統(tǒng)調(diào)用pipe()的功能和實(shí)際原理
2、 編寫(xiě)一段程序,使用管道實(shí)現(xiàn)父子進(jìn)程之間的通信
a) 使用系統(tǒng)調(diào)用fork()創(chuàng)建一個(gè)子進(jìn)程
b) 子進(jìn)程調(diào)用函數(shù)write()向父進(jìn)程發(fā)送自己的進(jìn)程ID和字符串” s sending a message to parent.\n”。
c) 父進(jìn)程調(diào)用函數(shù)read()通過(guò)管道讀出子進(jìn)程發(fā)來(lái)的消息,將消息輸出屏幕,然后終止