加密算法代码文档,包括DES,LOKI91,IDEA,GOST,BLOWFISH,3-WAY,RC5,A5,SEAL-encryption algorithm code files, including DES, LOKI91, IDEA, GOST, BLOWFISH 3 items of article number-WAY, RC5, A5, SEAL 下载
|
RC5-CTS模式加密解密算法C++程序实现。 解压之后运行main.dsw.在VC++下面打开,执行之后根据显示首先输入密钥(随便输入不超过16字节的字符串),之后提示输入需要加密的plaintext文件,输入plaintext1.txt,这个文件在压缩包里已经存在,(注意一定要写清楚文件类型名,是个文本文件),然后根据提示输入加密文件名,可随便输入一个文件名,但是别忘记了类型名.txt,如ciphertext1.txt。因为不输入类型名将来无法打开。之后输入解密之后的文件名,可输入decrypted.txt 结束。 之后打开生成的ciphertext1.txt和decrypted.txt,还有原来的明文文件plaintext1.txt,可以看出decrypted.txt和plaintext1.txt内容一致。ciphertext1.txt由plaintext1.txt加密得到,而decrypted.txt由ciphertext1.txt解密得到-RC5 - CTS mode encryption and decryption algorithm C program. After running main.dsw decompression. The VC Below opened, after the implementation of the first to suggest that the importation of key (casual importing more than 16 byte string), followed by the need to import suggest encrypted plaintext documents, the importation of plaintext1.txt, this document compression bag already exists. (Note that certain types of documents to write clearly, is the text document), then prompted to input encrypted file name, could easily enter a file name, but not forget the type name. txt, as ciphertext1.txt. Because we do not import the type who could not open the future. After following the importation of declassified documents, and can import decrypted.txt end. After opening generated ciphertext1.tx 下载
|
内核加解密算法 加解密函数库及其使用说明,详见附件。 find_cipher_by_name中参数ciphername可取的值为下面的组合,对应不同的模式: (des,des_ede3,aes,blowfish,cast5,dfc,idea,mars,rc5,rc6,serpent,twofish)-ecb (des,des_ede3,aes,blowfish,cast5,dfc,idea,mars,rc5,rc6,serpent,twofish)-cbc (des,des_ede3,aes,blowfish,cast5,dfc,idea,mars,rc6,serpent,twofish)-cfb struct cipher_implementation* ci中对应的可调用的method:encrypt_iv decrypt_iv encrypt decrypt 比如以des-cbc为find_cipher_by_name的参数得到的ci调用encrypt_iv,decrypt_iv. find_digest_by_name中参数digestname可取的值: sha1 md5 struct digest_implementation* di中对应的可调用的method:open update digest close hmac 计算digest时调用di->digest,计算hmac时调用di->hmac. 注意:加载我们需要的cipher-*.o和digest-*.o之前需先加载cryptoapi.o。 -core encryption and decryption algorithm encryption and decryption functions and their use, as detailed in the annex. Find_cipher_by_name cipher desirable parameter values to the following portfolio, dealing with different modes : (des, des_ede3, Aes, blowfish, cast5, DFC, the idea, mars, RC5, production, serpent, twofish) - ecb ( des, des_ede3, Aes, blowfish, cast5, DFC, the idea, mars, RC5, production, serpent, twofish) - cbc (des, des_ede3, Aes, blowfish, cast5, DFC, the idea, mars, production, the serpent , twofish) - Sample struct cipher_implementation ci * corresponding the available method : encrypt_iv decrypt_iv encrypt decrypt such as a des-cbc find_cipher_by_name parameters for the ci call encrypt_iv, decrypt_iv. find_digest_by_name digestname desirable parameter values : sha1 md 下载
|