我们从2011年坚守至今,只想做存粹的技术论坛,记录你的技术足迹,有空就回来看看。  由于网站在外面,点击附件后可能要20秒才弹出下载,请耐心等待,勿重复点击

 找回密码
 立即注册
搜索
查看: 1790|回复: 6

[技术文章] RSA算法特点及应用简述

[复制链接]
  • TA的每日心情

    昨天 17:10
  • 签到天数: 22 天

    [LV.4]偶尔看看III

    1万

    主题

    8130

    回帖

    4万

    积分

    三级逆天

    积分
    43819

    终身成就奖特殊贡献奖原创先锋奖金点子奖优秀斑竹奖宣传大使奖

    发表于 2018-2-6 13:23:11 | 显示全部楼层 |阅读模式
    <div style='margin: 0px 0px 10px; padding: 0px; text-align: justify; color: rgb(100, 100, 100); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: myFont, "Microsoft YaHei"; font-size: 16px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' align="justify" .="MsoNormal"><span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="mso-spacerun:'yes';font-family:微软雅黑;font-size:12.0000pt;mso-font-kerning:1.0000pt;">加密算法分为对称算法和非对称算法两种,RSA属于应用最为广泛的非对称加密算法。其基本安全原理<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="font-family: 微软雅黑; color: rgb(51, 51, 51); letter-spacing: 0pt; font-size: 12pt; background: rgb(255, 255, 255);">是建立在大素数因子<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="font-family: 微软雅黑; color: rgb(51, 51, 51); letter-spacing: 0pt; font-size: 12pt; background: rgb(255, 255, 255);">很难<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="font-family: 微软雅黑; color: rgb(51, 51, 51); letter-spacing: 0pt; font-size: 12pt; background: rgb(255, 255, 255);">分解的<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="font-family: 微软雅黑; color: rgb(51, 51, 51); letter-spacing: 0pt; font-size: 12pt; background: rgb(255, 255, 255);">基础<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="font-family: 微软雅黑; color: rgb(51, 51, 51); letter-spacing: 0pt; font-size: 12pt; background: rgb(255, 255, 255);">上,属于分组密码体制。简单的说:知道两个质数,求出它们的乘积,很容易;但知道一个整数,分解成两个质数就很复杂了。<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="font-family: 微软雅黑; color: rgb(51, 51, 51); letter-spacing: 0pt; font-size: 12pt; background: rgb(255, 255, 255);"><div style='margin: 0px 0px 10px; padding: 0px; text-align: justify; color: rgb(100, 100, 100); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: myFont, "Microsoft YaHei"; font-size: 16px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' align="justify" .="MsoNormal"><span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="font-family: 微软雅黑; color: rgb(51, 51, 51); letter-spacing: 0pt; font-size: 12pt; background: rgb(255, 255, 255);">RSA是非对称加密算法,加密与解密的密钥不同,<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="font-family: 微软雅黑; color: rgb(51, 51, 51); letter-spacing: 0pt; font-size: 12pt; background: rgb(255, 255, 255);">有别于<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="font-family: 微软雅黑; color: rgb(51, 51, 51); letter-spacing: 0pt; font-size: 12pt; background: rgb(255, 255, 255);">DES<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="font-family: 微软雅黑; color: rgb(51, 51, 51); letter-spacing: 0pt; font-size: 12pt; background: rgb(255, 255, 255);">这类对称<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="font-family: 微软雅黑; color: rgb(51, 51, 51); letter-spacing: 0pt; font-size: 12pt; background: rgb(255, 255, 255);">算法。RSA主要缺点是产生密钥受到素数产生技术的限制;密钥分组长度较长,运算速度较低。<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="font-family: 微软雅黑; color: rgb(51, 51, 51); letter-spacing: 0pt; font-size: 12pt; background: rgb(255, 255, 255);"><div style='margin: 0px 0px 10px; padding: 0px; text-align: justify; color: rgb(100, 100, 100); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: myFont, "Microsoft YaHei"; font-size: 16px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' align="justify" .="MsoNormal"><span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="font-family: 微软雅黑; color: rgb(51, 51, 51); letter-spacing: 0pt; font-size: 12pt; background: rgb(255, 255, 255);">RSA算法也分为两种模式,<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="mso-spacerun:'yes';font-family:微软雅黑;font-size:12.0000pt;mso-font-kerning:1.0000pt;">ND<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="mso-spacerun:'yes';font-family:微软雅黑;font-size:12.0000pt;mso-font-kerning:1.0000pt;">E<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="mso-spacerun:'yes';font-family:微软雅黑;font-size:12.0000pt;mso-font-kerning:1.0000pt;">模式<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="mso-spacerun:'yes';font-family:微软雅黑;font-size:12.0000pt;mso-font-kerning:1.0000pt;">和<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="mso-spacerun:'yes';font-family:微软雅黑;font-size:12.0000pt;mso-font-kerning:1.0000pt;">CRT模式<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="mso-spacerun:'yes';font-family:微软雅黑;font-size:12.0000pt;mso-font-kerning:1.0000pt;"><div style='margin: 0px 0px 10px; padding: 0px; text-align: justify; color: rgb(100, 100, 100); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: myFont, "Microsoft YaHei"; font-size: 16px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' align="justify" .="MsoNormal"><span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="mso-spacerun:'yes';font-family:微软雅黑;font-size:12.0000pt;mso-font-kerning:1.0000pt;">1、通常使用公钥的运算,速度是比较快的。因为E我们一般选取的都比较小,无论是0x010001还是0x03。<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="mso-spacerun:'yes';font-family:微软雅黑;font-size:12.0000pt;mso-font-kerning:1.0000pt;">
    <span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="mso-spacerun:'yes';font-family:微软雅黑;font-size:12.0000pt;mso-font-kerning:1.0000pt;">    2、通常私钥的运算是比较慢的,因为私钥中的D比较大,长度和模长相同,比如1024bit。为了提高私钥运算的速度,才有了CRT模式,所以在加密芯片里,我们都采用CRT模式来做私钥的运算。即便如此,私钥的运算速度还是比公钥的计算要慢一些。<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="mso-spacerun:'yes';font-family:微软雅黑;font-size:12.0000pt;mso-font-kerning:1.0000pt;"><div style='margin: 0px 0px 10px; padding: 0px; text-align: justify; color: rgb(100, 100, 100); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: myFont, "Microsoft YaHei"; font-size: 16px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' align="justify" .="MsoNormal"><span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="mso-spacerun:'yes';font-family:微软雅黑;font-size:12.0000pt;mso-font-kerning:1.0000pt;">RSA应用模式一般有私钥签名和公钥验签。简易的流程图可以参考下图:<span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="mso-spacerun:'yes';font-family:微软雅黑;font-size:12.0000pt;mso-font-kerning:1.0000pt;"><div style='margin: 0px 0px 10px; padding: 0px; text-align: justify; color: rgb(100, 100, 100); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: myFont, "Microsoft YaHei"; font-size: 16px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' align="justify" .="MsoNormal"><div style='margin: 0px 0px 10px; padding: 0px; text-align: justify; color: rgb(100, 100, 100); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: myFont, "Microsoft YaHei"; font-size: 16px; font-style: normal; font-weight: normal; word-spacing: 0px; white-space: normal; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' align="justify" .="MsoNormal"><span style="margin: 0px; padding: 0px; word-wrap: break-word; box-sizing: border-box;" .="mso-spacerun:'yes';font-family:微软雅黑;font-size:12.0000pt;mso-font-kerning:1.0000pt;">LKT系列等加密芯片支持RSA1024、RSA2048和国际上通用的对称和非对称算法,开发的技术人员不要错过。
    回复

    使用道具 举报

  • TA的每日心情
    开心
    昨天 09:16
  • 签到天数: 28 天

    [LV.4]偶尔看看III

    22

    主题

    552

    回帖

    1767

    积分

    二级逆天

    积分
    1767

    社区居民终身成就奖特殊贡献奖

    QQ
    发表于 2018-2-11 10:02:00 | 显示全部楼层
    回复

    使用道具 举报

  • TA的每日心情
    开心
    昨天 08:00
  • 签到天数: 39 天

    [LV.5]常住居民I

    2

    主题

    8271

    回帖

    9590

    积分

    二级逆天

    积分
    9590

    社区居民终身成就奖特殊贡献奖原创先锋奖

    QQ
    发表于 2018-2-14 11:38:23 | 显示全部楼层
    回复

    使用道具 举报

  • TA的每日心情
    开心
    昨天 08:00
  • 签到天数: 39 天

    [LV.5]常住居民I

    2

    主题

    8271

    回帖

    9590

    积分

    二级逆天

    积分
    9590

    社区居民终身成就奖特殊贡献奖原创先锋奖

    QQ
    发表于 2018-2-28 08:49:49 | 显示全部楼层
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    昨天 08:53
  • 签到天数: 28 天

    [LV.4]偶尔看看III

    2

    主题

    7129

    回帖

    1万

    积分

    三级逆天

    积分
    10343

    终身成就奖特殊贡献奖原创先锋奖

    QQ
    发表于 2020-4-7 08:52:02 | 显示全部楼层
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    昨天 08:53
  • 签到天数: 28 天

    [LV.4]偶尔看看III

    2

    主题

    7129

    回帖

    1万

    积分

    三级逆天

    积分
    10343

    终身成就奖特殊贡献奖原创先锋奖

    QQ
    发表于 2020-8-21 08:41:55 | 显示全部楼层
    回复

    使用道具 举报

    该用户从未签到

    126

    主题

    239

    回帖

    0

    积分

    二级逆天

    积分
    0

    终身成就奖金点子奖原创先锋奖

    发表于 2020-8-25 17:32:24 | 显示全部楼层
              
    回复

    使用道具 举报

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

    本版积分规则

    Copyright ©2011-2024 NTpcb.com All Right Reserved.  Powered by Discuz! (NTpcb)

    本站信息均由会员发表,不代表NTpcb立场,如侵犯了您的权利请发帖投诉

    平平安安
    TOP
    快速回复 返回顶部 返回列表