RSA加长分段解密算法,界面操作。算法步骤如下:1. 读取私钥d和n,作解密之用。 2. 从EncText中读取一大段密文,再把该大段密文分成若干小段密文。 3. 使用d和n把所有小段密文进行解密成对应的小段密文sectBYTE[],再合成一大段明文字节数组BYTE[],并转化成大段明文添加到DecText。 4. 读取下一大段密文,若密文为空,完成解密;否则转2
上传时间: 2015-03-25
上传用户:稀世之宝039
A collection of math routines including 8-bit, 16-bit, 32-bit signed and unsigned addition, subtraction, multiplication, and division. Very nice code library with heavy in-line documentation! Been looking for multi-BYTE divide? Here it is.
标签: bit collection including addition
上传时间: 2015-05-17
上传用户:cursor
51串行令牌格式 a51编译 Read data from serial port and write into buffer DPTR pointed in XRAM if a data frame is received and calculate the check sum if a information frame is received return control BYTE only
标签: data pointed buffer serial
上传时间: 2015-06-14
上传用户:极客
用C51实现的拼音输入法,这是改写的网友 embuffalo、独步上载在www.21ic.com自由发布区的由张凯原作的51上的拼音输入法程序。 原作使用了一个二维数组用以查表,我认为这样比较的浪费空间,而且每个字表的索引地址要手工输入,效率不高。所以我用结构体将其改写了一下。就是大家现在看到的这个。 因为代码比较的大,共有6,000多汉字,这样就得要12,000 BYTE来存放GB内码,所以也是没办法的 :-( 编译结果约为3000h,因为大部分是索引表,代码优化几乎无效。 在Keil C里仿真芯片选用的是华邦的W77E58,它有32k ROM, 256B on-chip RAM, 1K on-chip SRAM (用DPTR1指针寻址,相当于有1K的片上xdata)。条件有限,没有上片试验,仿真而已。 打算将其移植到AVR上,但CodeAVRC与IAR EC++在结构体、指针的定义使用上似乎与C51不太一样,现在还未搞定。还希望在这方面有经验的网友能给予指导。
上传时间: 2014-01-26
上传用户:semi1981
可以将以bit为单位进行处理的算法扩展到8位,即以BYTE为单位进行处理。由于有8个bit,所以有2^8种选择。这样明显会使运行时 间大为减少,速度明显更快,但是也有它的缺点,即,占用资源太大,所以综合考虑速度和 资源两点,采用半字节查表法。即以半 BYTE为单位进行处理。由于有4个bit,所以有2^4种选择。
上传时间: 2014-12-20
上传用户:小宝爱考拉
This example shows how to transmit and receive packets with packet length up to 255 BYTEs. The status BYTE is polled every 200 us in a timer1 int.
标签: transmit example receive packets
上传时间: 2014-01-26
上传用户:zhuimenghuadie
This a two node test, requires a Coordinator and an RFD. The coordinator and node simply ping-pong a packet back and forth, and print out the RSSI BYTE. The RFD waits before bouncing it back, while the coordinator responds immediately.
标签: node Coordinator coordinator and
上传时间: 2013-12-24
上传用户:ardager
This unit uses an array of BYTEs to represent a LARGE number. The number is binairy-stored in the array, with the Least Significant BYTE (LSB) first and the Most Significant BYTE (MSB) last, like all Intel-integer types.
标签: number binairy-stored represent LARGE
上传时间: 2015-10-08
上传用户:xieguodong1234
What Does the code DO? Sometimes we may desire to hide our file contents from others.One of the possible way is encrypting these files.Here a simple encryption technique is used(In VB - The same technique can be implemented in "c" also.) Program flow Explained * Open the File to be encrypted for Binary Access Read(Say Source File) * Open a temparory file where encrypted data is stored for Binary Access Write(Say Destination File) * Loop through the Source File BYTE by BYTE * For each BYTE read from the file, Complement the data. (Using Not operator (in C we have to use "~" operator) * Write Complemented Data to Destination File * Delete the Source File * Rename Destination file as Source File(Now Encryption is over)
标签: Sometimes the contents desire
上传时间: 2013-12-25
上传用户:playboys0
#include "pch.h" #include "base64.h" NAMESPACE_BEGIN(CryptoPP) static const int MAX_LINE_LENGTH = 72 static const BYTE vec[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" static const BYTE padding = = Base64Encoder::Base64Encoder(BufferedTransformation *outQueue, bool insertLineBreak) : insertLineBreak(insertLineBreak), Filter(outQueue) { inBufSize=0
标签: include NAMESPACE_BEGIN MAX_LINE_LENG CryptoPP
上传时间: 2015-12-07
上传用户:古谷仁美