Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
4101054a
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看板
提交
4101054a
编写于
2月 25, 2000
作者:
U
Ulf Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
*** empty log message ***
上级
fea217f9
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
6 deletion
+6
-6
doc/crypto/RSA_public_encrypt.pod
doc/crypto/RSA_public_encrypt.pod
+5
-5
doc/crypto/RSA_sign.pod
doc/crypto/RSA_sign.pod
+1
-1
未找到文件。
doc/crypto/RSA_public_encrypt.pod
浏览文件 @
4101054a
...
@@ -18,7 +18,7 @@ RSA_public_encrypt, RSA_private_decrypt - RSA public key cryptography
...
@@ -18,7 +18,7 @@ RSA_public_encrypt, RSA_private_decrypt - RSA public key cryptography
RSA_public_encrypt() encrypts the B<flen> bytes at B<from> (usually a
RSA_public_encrypt() encrypts the B<flen> bytes at B<from> (usually a
session key) using the public key B<rsa> and stores the ciphertext in
session key) using the public key B<rsa> and stores the ciphertext in
B<to>. B<to> must point to
B<RSA_size(rsa)>
bytes of memory.
B<to>. B<to> must point to
RSA_size(B<rsa>)
bytes of memory.
B<padding> denotes one of the following modes:
B<padding> denotes one of the following modes:
...
@@ -46,21 +46,21 @@ Encrypting user data directly with RSA is insecure.
...
@@ -46,21 +46,21 @@ Encrypting user data directly with RSA is insecure.
=back
=back
B<flen> must be less than RSA_size(
rsa
) - 11 for the PKCS #1 v1.5
B<flen> must be less than RSA_size(
B<rsa>
) - 11 for the PKCS #1 v1.5
based padding modes, and less than RSA_size(
rsa
) - 21 for
based padding modes, and less than RSA_size(
B<rsa>
) - 21 for
RSA_PKCS1_OAEP_PADDING. The random number generator must be seeded
RSA_PKCS1_OAEP_PADDING. The random number generator must be seeded
prior to calling RSA_public_encrypt().
prior to calling RSA_public_encrypt().
RSA_private_decrypt() decrypts the B<flen> bytes at B<from> using the
RSA_private_decrypt() decrypts the B<flen> bytes at B<from> using the
private key B<rsa> and stores the plaintext in B<to>. B<to> must point
private key B<rsa> and stores the plaintext in B<to>. B<to> must point
to a memory section large enough to hold the decrypted data (which is
to a memory section large enough to hold the decrypted data (which is
smaller than
B<RSA_size(rsa)>
). B<padding> is the padding mode that
smaller than
RSA_size(B<rsa>)
). B<padding> is the padding mode that
was used to encrypt the data.
was used to encrypt the data.
=head1 RETURN VALUES
=head1 RETURN VALUES
RSA_public_encrypt() returns the size of the encrypted data (i.e.,
RSA_public_encrypt() returns the size of the encrypted data (i.e.,
RSA_size(
rsa
)). RSA_private_decrypt() returns the size of the
RSA_size(
B<rsa>
)). RSA_private_decrypt() returns the size of the
recovered plaintext.
recovered plaintext.
On error, -1 is returned; the error codes can be
On error, -1 is returned; the error codes can be
...
...
doc/crypto/RSA_sign.pod
浏览文件 @
4101054a
...
@@ -19,7 +19,7 @@ RSA_sign, RSA_verify - RSA signatures
...
@@ -19,7 +19,7 @@ RSA_sign, RSA_verify - RSA signatures
RSA_sign() signs the message digest B<m> of size B<m_len> using the
RSA_sign() signs the message digest B<m> of size B<m_len> using the
private key B<rsa> as specified in PKCS #1 v2.0. It stores the
private key B<rsa> as specified in PKCS #1 v2.0. It stores the
signature in B<sigret> and the signature size in B<siglen>. B<sigret>
signature in B<sigret> and the signature size in B<siglen>. B<sigret>
must point to
B<RSA_size(rsa)>
bytes of memory.
must point to
RSA_size(B<rsa>)
bytes of memory.
B<type> denotes the message digest algorithm that was used to generate
B<type> denotes the message digest algorithm that was used to generate
B<m>. It usually is one of B<NID_sha1>, B<NID_ripemd160> and B<NID_md5>;
B<m>. It usually is one of B<NID_sha1>, B<NID_ripemd160> and B<NID_md5>;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录