#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include"Rc4.h"
main(int argc, char **argv)
{
int counter = 0;
/* Init the array to all zero values */
printf("Taking a 0 value Array : \n\n");
bzero(s, 10);
PrintArray();
/* Init the array to identitiy values */
printf("\n\nPress Enter to Initialize the Array: \n");
getchar();
printf("Initializing the Array with identity values : \n\n");
InitRC4();
PrintArray();
/* Do the KSA */
printf("\n\nPress Enter to start the KSA: ");
getchar();
DoKSA((unsigned char *)argv[1], strlen(argv[1]));
printf("\n\nKSA Done. \n\nAbout to Generate Keystream\n\n");
/* Generate PRGA sequence indefinitely till killed */
while(1) // Add signal handling here
{
printf("Please Enter to generate PRGA output %d:\n", ++counter);
printf("Keystream byte %d = 0x%.2X\n\n",counter, GetPRGAOutput());
getchar();
}
}
rc4.rar_ana
版权申诉
200 浏览量
2022-09-22
19:43:33
上传
评论
收藏 1KB RAR 举报
邓凌佳
- 粉丝: 65
- 资源: 1万+
最新资源
- 驱动代码驱动代码驱动代码驱动代码
- SVID_20240523_141155_1.mp4
- Code for the complete guide to tkinter tutorial
- 关于百货中心供应链管理系统.zip
- SimpleFolderIcon-master 修改Unity的Project下的文件夹图标
- A python Tkinter widget to display tile based maps
- A pure Python library for adding tables to a Tkinter application
- Vector资源文件.zip
- MobaXterm-Installer
- MicroMsg.xlsx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈