Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
43f9391b
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看板
提交
43f9391b
编写于
7月 03, 2001
作者:
L
Lutz Jänicke
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
When only the key is given to "enc", the IV is undefined
(found by Andy Brown <logic@warthog.com>).
上级
c1c97165
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
20 addition
and
2 deletion
+20
-2
CHANGES
CHANGES
+4
-0
apps/enc.c
apps/enc.c
+8
-0
doc/apps/enc.pod
doc/apps/enc.pod
+8
-2
未找到文件。
CHANGES
浏览文件 @
43f9391b
...
...
@@ -11,6 +11,10 @@
*) applies to 0.9.6a (/0.9.6b) and 0.9.7
+) applies to 0.9.7 only
*) When only the key is given to "enc", the IV is undefined. Print out
an error message in this case.
[Lutz Jaenicke]
+) Added the OS2-EMX target.
["Brian Havard" <brianh@kheldar.apana.org.au> and Richard Levitte]
...
...
apps/enc.c
浏览文件 @
43f9391b
...
...
@@ -488,6 +488,14 @@ bad:
BIO_printf
(
bio_err
,
"invalid hex iv value
\n
"
);
goto
end
;
}
if
((
hiv
==
NULL
)
&&
(
str
==
NULL
))
{
/* No IV was explicitly set and no IV was generated
* during EVP_BytesToKey. Hence the IV is undefined,
* making correct decryption impossible. */
BIO_printf
(
bio_err
,
"iv undefined
\n
"
);
goto
end
;
}
if
((
hkey
!=
NULL
)
&&
!
set_hex
(
hkey
,
key
,
sizeof
key
))
{
BIO_printf
(
bio_err
,
"invalid hex key value
\n
"
);
...
...
doc/apps/enc.pod
浏览文件 @
43f9391b
...
...
@@ -97,12 +97,18 @@ of hex digits.
=item B<-K key>
the actual key to use: this must be represented as a string comprised only
of hex digits.
of hex digits. If only the key is specified, the IV must additionally specified
using the B<-iv> option. When both a key and a password are specified, the
key given with the B<-K> option will be used and the IV generated from the
password will be taken. It probably does not make much sense to specify
both key and password.
=item B<-iv IV>
the actual IV to use: this must be represented as a string comprised only
of hex digits.
of hex digits. When only the key is specified using the B<-K> option, the
IV must explicitly be defined. When a password is being specified using
one of the other options, the IV is generated from this password.
=item B<-p>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录