Chinaunix首页 | 论坛 | 博客
  • 博客访问: 15337204
  • 博文数量: 2005
  • 博客积分: 11986
  • 博客等级: 上将
  • 技术积分: 22535
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-17 13:56
文章分类

全部博文(2005)

文章存档

2014年(2)

2013年(2)

2012年(16)

2011年(66)

2010年(368)

2009年(743)

2008年(491)

2007年(317)

分类:

2010-02-07 17:13:48

openssl顶层Makefile中使用汇编crypto/aes/asm/aes-586.pl作为默认aes编解码程序
为了使用crypto/aes/aes_core.c和aes_cbc.c作为解码程序,需要将顶层Makefile中如下一行
AES_ENC= aes-586.o
改为
AES_ENC= aes_core.o aes_cbc.o #aes-586.o

2. 去掉-DAES_ASM
3. 去掉-O3,加上-g

其中-pass pass:123表示直接传入密码123
openssl aes-128-cbc -d -pass pass:123
其中-pass fd:1表示从fd句柄为1的文件读入数据,这里1在terminal中就是stdin
openssl aes-128-cbc -d -pass fd:1
其中-pass file:pass.bin表示密码存放在pass.bin文件中
openssl aes-128-cbc -d -pass file:pass.bin
阅读(4173) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~