Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
ce15d5a9
O
openssl
项目概览
btwise
/
openssl
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ce15d5a9
编写于
10月 25, 2001
作者:
R
Richard Levitte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove DES_random_seed() but retain des_random_seed() for now. Change
the docs to reflect this change and correct libeay.num.
上级
ba1c6022
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
63 addition
and
69 deletion
+63
-69
crypto/des/Makefile.ssl
crypto/des/Makefile.ssl
+3
-0
crypto/des/des.h
crypto/des/des.h
+0
-1
crypto/des/des_old.c
crypto/des/des_old.c
+1
-1
crypto/des/rand_key.c
crypto/des/rand_key.c
+0
-5
doc/crypto/des.pod
doc/crypto/des.pod
+9
-7
util/libeay.num
util/libeay.num
+50
-55
未找到文件。
crypto/des/Makefile.ssl
浏览文件 @
ce15d5a9
...
...
@@ -153,6 +153,9 @@ cfb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
cfb_enc.o
:
../../include/openssl/opensslconf.h cfb_enc.c des_locl.h
des_enc.o
:
../../include/openssl/des.h ../../include/openssl/e_os2.h
des_enc.o
:
../../include/openssl/opensslconf.h des_enc.c des_locl.h ncbc_enc.c
des_old.o
:
../../include/openssl/des.h ../../include/openssl/des_old.h
des_old.o
:
../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
des_old.o
:
../../include/openssl/symhacks.h des_old.c
ecb3_enc.o
:
../../include/openssl/des.h ../../include/openssl/e_os2.h
ecb3_enc.o
:
../../include/openssl/opensslconf.h des_locl.h ecb3_enc.c
ecb_enc.o
:
../../include/openssl/des.h ../../include/openssl/e_os2.h
...
...
crypto/des/des.h
浏览文件 @
ce15d5a9
...
...
@@ -198,7 +198,6 @@ void DES_pcbc_encrypt(const unsigned char *input,unsigned char *output,
int
enc
);
DES_LONG
DES_quad_cksum
(
const
unsigned
char
*
input
,
DES_cblock
output
[],
long
length
,
int
out_count
,
DES_cblock
*
seed
);
void
DES_random_seed
(
DES_cblock
*
key
);
int
DES_random_key
(
DES_cblock
*
ret
);
void
DES_set_odd_parity
(
DES_cblock
*
key
);
int
DES_check_key_parity
(
const_DES_cblock
*
key
);
...
...
crypto/des/des_old.c
浏览文件 @
ce15d5a9
...
...
@@ -217,7 +217,7 @@ DES_LONG des_quad_cksum(des_cblock *input,des_cblock *output,
}
void
des_random_seed
(
des_cblock
key
)
{
DES_random_seed
((
DES_cblock
*
)
key
);
RAND_seed
(
key
,
sizeof
(
des_cblock
)
);
}
void
des_random_key
(
des_cblock
ret
)
{
...
...
crypto/des/rand_key.c
浏览文件 @
ce15d5a9
...
...
@@ -56,11 +56,6 @@
#include <openssl/des.h>
#include <openssl/rand.h>
void
DES_random_seed
(
DES_cblock
*
key
)
{
RAND_seed
(
key
,
sizeof
(
DES_cblock
));
}
int
DES_random_key
(
DES_cblock
*
ret
)
{
do
...
...
doc/crypto/des.pod
浏览文件 @
ce15d5a9
...
...
@@ -122,11 +122,9 @@ each byte is the parity bit. The key schedule is an expanded form of
the key; it is used to speed the encryption process.
DES_random_key() generates a random key. The PRNG must be seeded
prior to using this function (see L<rand(3)|rand(3)>; for backward
compatibility the function DES_random_seed() is available as well).
If the PRNG could not generate a secure key, 0 is returned. In
earlier versions of the library, DES_random_key() did not generate
secure keys.
prior to using this function (see L<rand(3)|rand(3)>). If the PRNG
could not generate a secure key, 0 is returned. In earlier versions
of the library, DES_random_key() did not generate secure keys.
Before a DES key can be used, it must be converted into the
architecture dependent I<DES_key_schedule> via the
...
...
@@ -348,9 +346,13 @@ crypt(3), L<des_modes(7)|des_modes(7)>, L<evp(3)|evp(3)>, L<rand(3)|rand(3)>
=head1 HISTORY
In OpenSSL 0.9.7,
A
ll des_ functions were renamed to DES_ to avoid
In OpenSSL 0.9.7,
a
ll des_ functions were renamed to DES_ to avoid
clashes with older versions of libdes. Compatibility des_ functions
are provided for a short while, as well as crypt().
are provided for a short while, as well as crypt(). des_random_seed()
is were not kept as DES_ variants. This will happen to other functions
as well if they are deemed redundant (des_random_seed() just calls
RAND_seed() and is present for backward compatibility only), buggy or
already scheduled for removal.
des_cbc_cksum(), des_cbc_encrypt(), des_ecb_encrypt(),
des_is_weak_key(), des_key_sched(), des_pcbc_encrypt(),
...
...
util/libeay.num
浏览文件 @
ce15d5a9
...
...
@@ -793,11 +793,12 @@ DES_options 799 EXIST::FUNCTION:DES
DES_pcbc_encrypt 800 EXIST::FUNCTION:DES
DES_quad_cksum 801 EXIST::FUNCTION:DES
DES_random_key 802 EXIST::FUNCTION:DES
DES_random_seed 803 EXIST::FUNCTION:DES
DES_read_2passwords 804 NOEXIST::FUNCTION:
DES_read_password 805 NOEXIST::FUNCTION:
DES_read_pw 806 NOEXIST::FUNCTION:
DES_read_pw_string 807 NOEXIST::FUNCTION:
des_random_seed 803 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_random_seed 803 EXIST:VMS,WIN16:FUNCTION:DES
des_read_2passwords 804 EXIST::FUNCTION:DES
des_read_password 805 EXIST::FUNCTION:DES
des_read_pw 806 EXIST::FUNCTION:
des_read_pw_string 807 EXIST::FUNCTION:
DES_set_key 808 EXIST::FUNCTION:DES
DES_set_odd_parity 809 EXIST::FUNCTION:DES
DES_string_to_2keys 810 EXIST::FUNCTION:DES
...
...
@@ -2726,53 +2727,47 @@ des_enc_read 3163 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_enc_read 3163 EXIST:VMS,WIN16:FUNCTION:DES
des_decrypt3 3164 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_decrypt3 3164 EXIST:VMS,WIN16:FUNCTION:DES
des_read_password 3165 EXIST::FUNCTION:DES
des_string_to_2keys 3166 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_string_to_2keys 3166 EXIST:VMS,WIN16:FUNCTION:DES
des_ede3_cbc_encrypt 3167 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_ede3_cbc_encrypt 3167 EXIST:VMS,WIN16:FUNCTION:DES
des_cbc_cksum 3168 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_cbc_cksum 3168 EXIST:VMS,WIN16:FUNCTION:DES
des_ede3_cfb64_encrypt 3169 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_ede3_cfb64_encrypt 3169 EXIST:VMS,WIN16:FUNCTION:DES
des_string_to_key 3170 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_string_to_key 3170 EXIST:VMS,WIN16:FUNCTION:DES
des_set_odd_parity 3171 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_set_odd_parity 3171 EXIST:VMS,WIN16:FUNCTION:DES
des_fcrypt 3172 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_fcrypt 3172 EXIST:VMS,WIN16:FUNCTION:DES
des_ecb3_encrypt 3173 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_ecb3_encrypt 3173 EXIST:VMS,WIN16:FUNCTION:DES
des_read_pw_string 3174 EXIST::FUNCTION:
des_cbc_encrypt 3175 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_cbc_encrypt 3175 EXIST:VMS,WIN16:FUNCTION:DES
des_cfb_encrypt 3176 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_cfb_encrypt 3176 EXIST:VMS,WIN16:FUNCTION:DES
des_quad_cksum 3177 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_quad_cksum 3177 EXIST:VMS,WIN16:FUNCTION:DES
des_read_2passwords 3178 EXIST::FUNCTION:DES
des_encrypt2 3179 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_encrypt2 3179 EXIST:VMS,WIN16:FUNCTION:DES
des_encrypt3 3180 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_encrypt3 3180 EXIST:VMS,WIN16:FUNCTION:DES
des_ede3_ofb64_encrypt 3181 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_ede3_ofb64_encrypt 3181 EXIST:VMS,WIN16:FUNCTION:DES
des_enc_write 3182 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_enc_write 3182 EXIST:VMS,WIN16:FUNCTION:DES
des_ncbc_encrypt 3183 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_ncbc_encrypt 3183 EXIST:VMS,WIN16:FUNCTION:DES
des_pcbc_encrypt 3184 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_pcbc_encrypt 3184 EXIST:VMS,WIN16:FUNCTION:DES
des_set_key 3185 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_set_key 3185 EXIST:VMS,WIN16:FUNCTION:DES
des_random_seed 3186 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_random_seed 3186 EXIST:VMS,WIN16:FUNCTION:DES
des_cfb64_encrypt 3187 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_cfb64_encrypt 3187 EXIST:VMS,WIN16:FUNCTION:DES
des_ofb_encrypt 3188 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_ofb_encrypt 3188 EXIST:VMS,WIN16:FUNCTION:DES
des_read_pw 3189 EXIST::FUNCTION:
des_xcbc_encrypt 3190 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_xcbc_encrypt 3190 EXIST:VMS,WIN16:FUNCTION:DES
des_ecb_encrypt 3191 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_ecb_encrypt 3191 EXIST:VMS,WIN16:FUNCTION:DES
des_string_to_2keys 3165 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_string_to_2keys 3165 EXIST:VMS,WIN16:FUNCTION:DES
des_ede3_cbc_encrypt 3166 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_ede3_cbc_encrypt 3166 EXIST:VMS,WIN16:FUNCTION:DES
des_cbc_cksum 3167 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_cbc_cksum 3167 EXIST:VMS,WIN16:FUNCTION:DES
des_ede3_cfb64_encrypt 3168 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_ede3_cfb64_encrypt 3168 EXIST:VMS,WIN16:FUNCTION:DES
des_string_to_key 3169 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_string_to_key 3169 EXIST:VMS,WIN16:FUNCTION:DES
des_set_odd_parity 3170 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_set_odd_parity 3170 EXIST:VMS,WIN16:FUNCTION:DES
des_fcrypt 3171 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_fcrypt 3171 EXIST:VMS,WIN16:FUNCTION:DES
des_ecb3_encrypt 3172 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_ecb3_encrypt 3172 EXIST:VMS,WIN16:FUNCTION:DES
des_cbc_encrypt 3173 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_cbc_encrypt 3173 EXIST:VMS,WIN16:FUNCTION:DES
des_cfb_encrypt 3174 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_cfb_encrypt 3174 EXIST:VMS,WIN16:FUNCTION:DES
des_quad_cksum 3175 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_quad_cksum 3175 EXIST:VMS,WIN16:FUNCTION:DES
des_encrypt2 3176 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_encrypt2 3176 EXIST:VMS,WIN16:FUNCTION:DES
des_encrypt3 3177 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_encrypt3 3177 EXIST:VMS,WIN16:FUNCTION:DES
des_ede3_ofb64_encrypt 3178 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_ede3_ofb64_encrypt 3178 EXIST:VMS,WIN16:FUNCTION:DES
des_enc_write 3179 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_enc_write 3179 EXIST:VMS,WIN16:FUNCTION:DES
des_ncbc_encrypt 3180 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_ncbc_encrypt 3180 EXIST:VMS,WIN16:FUNCTION:DES
des_pcbc_encrypt 3181 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_pcbc_encrypt 3181 EXIST:VMS,WIN16:FUNCTION:DES
des_set_key 3182 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_set_key 3182 EXIST:VMS,WIN16:FUNCTION:DES
des_cfb64_encrypt 3183 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_cfb64_encrypt 3183 EXIST:VMS,WIN16:FUNCTION:DES
des_ofb_encrypt 3184 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_ofb_encrypt 3184 EXIST:VMS,WIN16:FUNCTION:DES
des_xcbc_encrypt 3185 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_xcbc_encrypt 3185 EXIST:VMS,WIN16:FUNCTION:DES
des_ecb_encrypt 3186 EXIST:!VMS,!WIN16:FUNCTION:DES
odes_ecb_encrypt 3186 EXIST:VMS,WIN16:FUNCTION:DES
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录