Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
b3dfaaa1
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看板
提交
b3dfaaa1
编写于
2月 20, 2002
作者:
R
Richard Levitte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add AES support in the applications that support -des and -des3.
上级
5b7848a3
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
71 addition
and
8 deletion
+71
-8
STATUS
STATUS
+1
-4
apps/dsa.c
apps/dsa.c
+7
-0
apps/ecdsa.c
apps/ecdsa.c
+11
-4
apps/gendsa.c
apps/gendsa.c
+12
-0
apps/genrsa.c
apps/genrsa.c
+12
-0
apps/pkcs12.c
apps/pkcs12.c
+9
-0
apps/rsa.c
apps/rsa.c
+7
-0
apps/smime.c
apps/smime.c
+12
-0
未找到文件。
STATUS
浏览文件 @
b3dfaaa1
OpenSSL STATUS Last modified at
______________ $Date: 2002/02/20 1
4:07:07
$
______________ $Date: 2002/02/20 1
8:03:00
$
DEVELOPMENT STATE
...
...
@@ -61,9 +61,6 @@
weakness in SSL/TLS should be added; see
http://www.openssl.org/~bodo/tls-cbc.txt
o All 'openssl' subprograms taking '-des' and '-des3' options should
include AES support (0.9.7-dev)
o 'openssl speed' should include AES support (0.9.7-dev)
o apps/ca.c: "Sign the certificate?" - "n" creates empty certificate file
...
...
apps/dsa.c
浏览文件 @
b3dfaaa1
...
...
@@ -79,6 +79,9 @@
* -des - encrypt output if PEM format with DES in cbc mode
* -des3 - encrypt output if PEM format
* -idea - encrypt output if PEM format
* -aes128 - encrypt output if PEM format
* -aes192 - encrypt output if PEM format
* -aes256 - encrypt output if PEM format
* -text - print a text version
* -modulus - print the DSA public key
*/
...
...
@@ -188,6 +191,10 @@ bad:
BIO_printf
(
bio_err
,
" -des3 encrypt PEM output with ede cbc des using 168 bit key
\n
"
);
#ifndef OPENSSL_NO_IDEA
BIO_printf
(
bio_err
,
" -idea encrypt PEM output with cbc idea
\n
"
);
#endif
#ifndef OPENSSL_NO_AES
BIO_printf
(
bio_err
,
" -aes128, -aes192, -aes256
\n
"
);
BIO_printf
(
bio_err
,
" encrypt PEM output with cbc aes
\n
"
);
#endif
BIO_printf
(
bio_err
,
" -text print the key in text
\n
"
);
BIO_printf
(
bio_err
,
" -noout don't print key out
\n
"
);
...
...
apps/ecdsa.c
浏览文件 @
b3dfaaa1
...
...
@@ -132,6 +132,9 @@
* -des - encrypt output if PEM format with DES in cbc mode
* -des3 - encrypt output if PEM format
* -idea - encrypt output if PEM format
* -aes128 - encrypt output if PEM format
* -aes192 - encrypt output if PEM format
* -aes256 - encrypt output if PEM format
* -text - print a text version
* -pub - print the ECDSA public key
* -compressed - print the public key in compressed form ( default )
...
...
@@ -227,12 +230,12 @@ int MAIN(int argc, char **argv)
else
if
(
strcmp
(
*
argv
,
"-pub"
)
==
0
)
{
pub
=
1
;
buffer
=
(
*
(
argv
+
1
));
if
(
strcmp
(
buffer
,
"compressed"
)
==
0
)
buffer
=
(
unsigned
char
*
)(
*
(
argv
+
1
));
if
(
strcmp
(
(
char
*
)
buffer
,
"compressed"
)
==
0
)
point_form
=
POINT_CONVERSION_COMPRESSED
;
else
if
(
strcmp
(
buffer
,
"hybrid"
)
==
0
)
else
if
(
strcmp
(
(
char
*
)
buffer
,
"hybrid"
)
==
0
)
point_form
=
POINT_CONVERSION_HYBRID
;
else
if
(
strcmp
(
buffer
,
"uncompressed"
)
==
0
)
else
if
(
strcmp
(
(
char
*
)
buffer
,
"uncompressed"
)
==
0
)
point_form
=
POINT_CONVERSION_UNCOMPRESSED
;
if
(
point_form
)
{
...
...
@@ -270,6 +273,10 @@ bad:
BIO_printf
(
bio_err
,
" -des3 encrypt PEM output with ede cbc des using 168 bit key
\n
"
);
#ifndef OPENSSL_NO_IDEA
BIO_printf
(
bio_err
,
" -idea encrypt PEM output with cbc idea
\n
"
);
#endif
#ifndef OPENSSL_NO_AES
BIO_printf
(
bio_err
,
" -aes128, -aes192, -aes256
\n
"
);
BIO_printf
(
bio_err
,
" encrypt PEM output with cbc aes
\n
"
);
#endif
BIO_printf
(
bio_err
,
" -text print the key in text
\n
"
);
BIO_printf
(
bio_err
,
" -noout don't print key out
\n
"
);
...
...
apps/gendsa.c
浏览文件 @
b3dfaaa1
...
...
@@ -129,6 +129,14 @@ int MAIN(int argc, char **argv)
#ifndef OPENSSL_NO_IDEA
else
if
(
strcmp
(
*
argv
,
"-idea"
)
==
0
)
enc
=
EVP_idea_cbc
();
#endif
#ifndef OPENSSL_NO_AES
else
if
(
strcmp
(
*
argv
,
"-aes128"
)
==
0
)
enc
=
EVP_aes_128_cbc
();
else
if
(
strcmp
(
*
argv
,
"-aes192"
)
==
0
)
enc
=
EVP_aes_192_cbc
();
else
if
(
strcmp
(
*
argv
,
"-aes256"
)
==
0
)
enc
=
EVP_aes_256_cbc
();
#endif
else
if
(
**
argv
!=
'-'
&&
dsaparams
==
NULL
)
{
...
...
@@ -151,6 +159,10 @@ bad:
#endif
#ifndef OPENSSL_NO_IDEA
BIO_printf
(
bio_err
,
" -idea - encrypt the generated key with IDEA in cbc mode
\n
"
);
#endif
#ifndef OPENSSL_NO_AES
BIO_printf
(
bio_err
,
" -aes128, -aes192, -aes256
\n
"
);
BIO_printf
(
bio_err
,
" encrypt PEM output with cbc aes
\n
"
);
#endif
BIO_printf
(
bio_err
,
" -engine e - use engine e, possibly a hardware device.
\n
"
);
BIO_printf
(
bio_err
,
" -rand file%cfile%c...
\n
"
,
LIST_SEPARATOR_CHAR
,
LIST_SEPARATOR_CHAR
);
...
...
apps/genrsa.c
浏览文件 @
b3dfaaa1
...
...
@@ -138,6 +138,14 @@ int MAIN(int argc, char **argv)
#ifndef OPENSSL_NO_IDEA
else
if
(
strcmp
(
*
argv
,
"-idea"
)
==
0
)
enc
=
EVP_idea_cbc
();
#endif
#ifndef OPENSSL_NO_AES
else
if
(
strcmp
(
*
argv
,
"-aes128"
)
==
0
)
enc
=
EVP_aes_128_cbc
();
else
if
(
strcmp
(
*
argv
,
"-aes192"
)
==
0
)
enc
=
EVP_aes_192_cbc
();
else
if
(
strcmp
(
*
argv
,
"-aes256"
)
==
0
)
enc
=
EVP_aes_256_cbc
();
#endif
else
if
(
strcmp
(
*
argv
,
"-passout"
)
==
0
)
{
...
...
@@ -157,6 +165,10 @@ bad:
BIO_printf
(
bio_err
,
" -des3 encrypt the generated key with DES in ede cbc mode (168 bit key)
\n
"
);
#ifndef OPENSSL_NO_IDEA
BIO_printf
(
bio_err
,
" -idea encrypt the generated key with IDEA in cbc mode
\n
"
);
#endif
#ifndef OPENSSL_NO_AES
BIO_printf
(
bio_err
,
" -aes128, -aes192, -aes256
\n
"
);
BIO_printf
(
bio_err
,
" encrypt PEM output with cbc aes
\n
"
);
#endif
BIO_printf
(
bio_err
,
" -out file output the key to 'file
\n
"
);
BIO_printf
(
bio_err
,
" -passout arg output file pass phrase source
\n
"
);
...
...
apps/pkcs12.c
浏览文件 @
b3dfaaa1
...
...
@@ -151,6 +151,11 @@ int MAIN(int argc, char **argv)
else
if
(
!
strcmp
(
*
args
,
"-idea"
))
enc
=
EVP_idea_cbc
();
#endif
else
if
(
!
strcmp
(
*
args
,
"-des3"
))
enc
=
EVP_des_ede3_cbc
();
#ifndef OPENSSL_NO_AES
else
if
(
!
strcmp
(
*
argv
,
"-aes128"
))
enc
=
EVP_aes_128_cbc
();
else
if
(
!
strcmp
(
*
argv
,
"-aes192"
))
enc
=
EVP_aes_192_cbc
();
else
if
(
!
strcmp
(
*
argv
,
"-aes256"
))
enc
=
EVP_aes_256_cbc
();
#endif
else
if
(
!
strcmp
(
*
args
,
"-noiter"
))
iter
=
1
;
else
if
(
!
strcmp
(
*
args
,
"-maciter"
))
maciter
=
PKCS12_DEFAULT_ITER
;
...
...
@@ -279,6 +284,10 @@ int MAIN(int argc, char **argv)
BIO_printf
(
bio_err
,
"-des3 encrypt private keys with triple DES (default)
\n
"
);
#ifndef OPENSSL_NO_IDEA
BIO_printf
(
bio_err
,
"-idea encrypt private keys with idea
\n
"
);
#endif
#ifndef OPENSSL_NO_AES
BIO_printf
(
bio_err
,
"-aes128, -aes192, -aes256
\n
"
);
BIO_printf
(
bio_err
,
" encrypt PEM output with cbc aes
\n
"
);
#endif
BIO_printf
(
bio_err
,
"-nodes don't encrypt private keys
\n
"
);
BIO_printf
(
bio_err
,
"-noiter don't use encryption iteration
\n
"
);
...
...
apps/rsa.c
浏览文件 @
b3dfaaa1
...
...
@@ -79,6 +79,9 @@
* -des - encrypt output if PEM format with DES in cbc mode
* -des3 - encrypt output if PEM format
* -idea - encrypt output if PEM format
* -aes128 - encrypt output if PEM format
* -aes192 - encrypt output if PEM format
* -aes256 - encrypt output if PEM format
* -text - print a text version
* -modulus - print the RSA key modulus
* -check - verify key consistency
...
...
@@ -195,6 +198,10 @@ bad:
BIO_printf
(
bio_err
,
" -des3 encrypt PEM output with ede cbc des using 168 bit key
\n
"
);
#ifndef OPENSSL_NO_IDEA
BIO_printf
(
bio_err
,
" -idea encrypt PEM output with cbc idea
\n
"
);
#endif
#ifndef OPENSSL_NO_AES
BIO_printf
(
bio_err
,
" -aes128, -aes192, -aes256
\n
"
);
BIO_printf
(
bio_err
,
" encrypt PEM output with cbc aes
\n
"
);
#endif
BIO_printf
(
bio_err
,
" -text print the key in text
\n
"
);
BIO_printf
(
bio_err
,
" -noout don't print key out
\n
"
);
...
...
apps/smime.c
浏览文件 @
b3dfaaa1
...
...
@@ -128,6 +128,14 @@ int MAIN(int argc, char **argv)
cipher
=
EVP_rc2_cbc
();
else
if
(
!
strcmp
(
*
args
,
"-rc2-64"
))
cipher
=
EVP_rc2_64_cbc
();
#endif
#ifndef OPENSSL_NO_AES
else
if
(
!
strcmp
(
*
argv
,
"-aes128"
)
==
0
)
cipher
=
EVP_aes_128_cbc
();
else
if
(
!
strcmp
(
*
argv
,
"-aes192"
)
==
0
)
cipher
=
EVP_aes_192_cbc
();
else
if
(
!
strcmp
(
*
argv
,
"-aes256"
)
==
0
)
cipher
=
EVP_aes_256_cbc
();
#endif
else
if
(
!
strcmp
(
*
args
,
"-text"
))
flags
|=
PKCS7_TEXT
;
...
...
@@ -283,6 +291,10 @@ int MAIN(int argc, char **argv)
BIO_printf
(
bio_err
,
"-rc2-40 encrypt with RC2-40 (default)
\n
"
);
BIO_printf
(
bio_err
,
"-rc2-64 encrypt with RC2-64
\n
"
);
BIO_printf
(
bio_err
,
"-rc2-128 encrypt with RC2-128
\n
"
);
#endif
#ifndef OPENSSL_NO_AES
BIO_printf
(
bio_err
,
"-aes128, -aes192, -aes256
\n
"
);
BIO_printf
(
bio_err
,
" encrypt PEM output with cbc aes
\n
"
);
#endif
BIO_printf
(
bio_err
,
"-nointern don't search certificates in message for signer
\n
"
);
BIO_printf
(
bio_err
,
"-nosigs don't verify message signature
\n
"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录