硬汉嵌入式论坛

 找回密码
 立即注册
查看: 1291|回复: 1
收起左侧

[技术讨论] rsa加密的应用规则发生变化了吗?

[复制链接]

14

主题

62

回帖

104

积分

初级会员

积分
104
发表于 2021-9-29 21:40:57 | 显示全部楼层 |阅读模式
看mbedtls的加密库,早期的rsa加密支持双向加密解密,现在只有公匙加密,私匙解密了,是使用规则变了吗?
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106431
QQ
发表于 2021-9-30 08:40:22 | 显示全部楼层
rsa的应用不太清楚,没关注过,看了下他的源版本,这个rsa.c还是几年前的版本,没升级过

  1. /*
  2. *  The RSA public-key cryptosystem
  3. *
  4. *  Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
  5. *  SPDX-License-Identifier: Apache-2.0
  6. *
  7. *  Licensed under the Apache License, Version 2.0 (the "License"); you may
  8. *  not use this file except in compliance with the License.
  9. *  You may obtain a copy of the License at
  10. *
  11. *  http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. *  Unless required by applicable law or agreed to in writing, software
  14. *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  15. *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. *  See the License for the specific language governing permissions and
  17. *  limitations under the License.
  18. *
  19. *  This file is part of mbed TLS (https://tls.mbed.org)
  20. */

  21. /*
  22. *  The following sources were referenced in the design of this implementation
  23. *  of the RSA algorithm:
  24. *
  25. *  [1] A method for obtaining digital signatures and public-key cryptosystems
  26. *      R Rivest, A Shamir, and L Adleman
  27. *      http://people.csail.mit.edu/rivest/pubs.html#RSA78
  28. *
  29. *  [2] Handbook of Applied Cryptography - 1997, Chapter 8
  30. *      Menezes, van Oorschot and Vanstone
  31. *
  32. *  [3] Malware Guard Extension: Using SGX to Conceal Cache Attacks
  33. *      Michael Schwarz, Samuel Weiser, Daniel Gruss, Clémentine Maurice and
  34. *      Stefan Mangard
  35. *      https://arxiv.org/abs/1702.08719v2
  36. *
  37. */
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-4-20 09:52 , Processed in 0.232112 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表