Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
a8a00498
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a8a00498
编写于
8月 18, 2001
作者:
B
Ben Laurie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add AES tests.
上级
0e360199
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
28 addition
and
4 deletion
+28
-4
crypto/evp/evp_test.c
crypto/evp/evp_test.c
+4
-4
crypto/evp/evptests.txt
crypto/evp/evptests.txt
+24
-0
未找到文件。
crypto/evp/evp_test.c
浏览文件 @
a8a00498
...
...
@@ -206,7 +206,7 @@ int main(int argc,char **argv)
for
(
;
;
)
{
char
acL
ine
[
4096
];
char
l
ine
[
4096
];
char
*
p
;
char
*
cipher
;
unsigned
char
*
iv
,
*
key
,
*
plaintext
,
*
ciphertext
;
...
...
@@ -214,11 +214,11 @@ int main(int argc,char **argv)
int
kn
,
in
,
pn
,
cn
;
ENGINE
*
e
;
if
(
!
fgets
((
char
*
)
acLine
,
sizeof
acL
ine
,
f
))
if
(
!
fgets
((
char
*
)
line
,
sizeof
l
ine
,
f
))
break
;
if
(
acLine
[
0
]
==
'#
'
)
if
(
line
[
0
]
==
'#'
||
line
[
0
]
==
'\n
'
)
continue
;
p
=
acL
ine
;
p
=
l
ine
;
cipher
=
strsep
(
&
p
,
":"
);
key
=
ustrsep
(
&
p
,
":"
);
iv
=
ustrsep
(
&
p
,
":"
);
...
...
crypto/evp/evptests.txt
浏览文件 @
a8a00498
#cipher:key:iv:input:output
# AES 128 ECB tests (from NIST test vectors, encrypt)
AES-128-ECB:00000000000000000000000000000000::00000000000000000000000000000000:C34C052CC0DA8D73451AFE5F03BE297F
# AES 128 ECB tests (from NIST test vectors, decrypt)
#AES-128-ECB:00000000000000000000000000000000::44416AC2D1F53C583303917E6BE9EBE0:00000000000000000000000000000000
# AES 192 ECB tests (from NIST test vectors, decrypt)
#AES-192-ECB:000000000000000000000000000000000000000000000000::48E31E9E256718F29229319C19F15BA4:00000000000000000000000000000000
# AES 256 ECB tests (from NIST test vectors, decrypt)
#AES-256-ECB:0000000000000000000000000000000000000000000000000000000000000000::058CCFFDBBCB382D1F6F56585D8A4ADE:00000000000000000000000000000000
# AES 128 CBC tests (from NIST test vectors, encrypt)
#AES-128-CBC:00000000000000000000000000000000:00000000000000000000000000000000:00000000000000000000000000000000:8A05FC5E095AF4848A08D328D3688E3D
# AES 128 CBC tests (from NIST test vectors, decrypt)
#AES-128-CBC:00000000000000000000000000000000:00000000000000000000000000000000:FACA37E0B0C85373DF706E73F7C9AF86:00000000000000000000000000000000
# DES ECB tests (from destest)
DES-ECB:0000000000000000::0000000000000000:8CA64DE9C1B123A7
# DES EDE3 CBC tests (from destest)
DES-EDE3-CBC:0123456789abcdeff1e0d3c2b5a49786fedcba9876543210:fedcba9876543210:37363534333231204E6F77206973207468652074696D6520666F722000000000:3FE301C962AC01D02213763C1CBD4CDC799657C064ECF5D41C673812CFDE9675
# RC4 tests (from rc4test)
RC4:0123456789abcdef0123456789abcdef::0123456789abcdef:75b7878099e0c596
RC4:0123456789abcdef0123456789abcdef::0000000000000000:7494c2e7104b0879
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录