我们从2011年坚守至今,只想做存粹的技术论坛。  由于网站在外面,点击附件后要很长世间才弹出下载,请耐心等待,勿重复点击不要用Edge和IE浏览器下载,否则提示不安全下载不了

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

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

[复制链接]
  • TA的每日心情
    无聊
    昨天 17:04
  • 签到天数: 86 天

    [LV.6]常住居民II

    1万

    主题

    8215

    回帖

    5万

    积分

    三级逆天

    积分
    53653

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

    发表于 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的每日心情
    开心
    2024-11-2 15:48
  • 签到天数: 100 天

    [LV.6]常住居民II

    22

    主题

    625

    回帖

    2050

    积分

    二级逆天

    积分
    2050

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

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

    使用道具 举报

  • TA的每日心情
    开心
    昨天 08:06
  • 签到天数: 162 天

    [LV.7]常住居民III

    2

    主题

    8792

    回帖

    1万

    积分

    三级逆天

    积分
    10252

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

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

    使用道具 举报

  • TA的每日心情
    开心
    昨天 08:06
  • 签到天数: 162 天

    [LV.7]常住居民III

    2

    主题

    8792

    回帖

    1万

    积分

    三级逆天

    积分
    10252

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

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

    使用道具 举报

  • TA的每日心情

    前天 09:22
  • 签到天数: 107 天

    [LV.6]常住居民II

    2

    主题

    7208

    回帖

    1万

    积分

    三级逆天

    积分
    10625

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

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

    使用道具 举报

  • TA的每日心情

    前天 09:22
  • 签到天数: 107 天

    [LV.6]常住居民II

    2

    主题

    7208

    回帖

    1万

    积分

    三级逆天

    积分
    10625

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

    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立场,如侵犯了您的权利请发帖投诉

    ( 闽ICP备2024076463号-1 ) 论坛技术支持QQ群171867948 ,论坛问题,充值问题请联系QQ1308068381

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