当前位置:网站首页>6.1 - 6.2 公钥密码学简介
6.1 - 6.2 公钥密码学简介
2022-06-26 04:56:00 【碳烤小肥羊。。。】
对称密码方案优点:
- 加密、解密处理速度快,具有很高的数据吞吐率;
- 密钥相对较短;
- 硬件加密实现可达到几百兆字节每秒,软件也可以达到兆字节每秒的吞吐率。
对称密码方案缺点:
- 密钥分配问题;
- 密钥个数;
- 对Alice 或 Bob 的欺骗没有防御机制。
公钥算法的主要安全机制(优点):
- 密钥建立 在不安全信道上建立密钥的协议有若干种,包括 Diffie-Hellman密钥交换(DHKE)协议或RSA密钥传输协议。
- 不可否认性 可以通过数字签名算法(比如 RSA、DSA 或ECDSA)实现不可否认性和消息完整性。
- 身份标识 在类似银行智能卡或手机等的应用中,可使用质询-响应协议与数字签名相结合的方法识别实体。
- 加密 可使用类似RSA 或Elgamal的算法对消息进行加密。
公钥方案的主要缺点:由于公钥算法的密钥非常长,导致使用公钥算法对数据进行加密的计算量非常大———通俗地说,就是非常慢。
函数f()是一个单项函数,仅当:
- y = f ( x ) y = f(x) y=f(x)在计算上是很容易的,且
- x = f − 1 ( y ) x=f^{-1}(y) x=f−1(y)在计算上是不可行的。
实际的公钥方案中常使用两种主流的单向函数:
- 整数分解方案。 它是RSA的基础。给定两个大素数,计算它们的乘积非常容易;但是将它们的乘积分解因式却是非常困难的。
- 离散对数方案。 离散对数方案有不少算法都基于有限域内的离散对数问题,最典型的例子包括Diffie-Hellman密钥交换、Elgamal加密或数字签名算法(DSA)。
- 椭圆曲线(EC)方案。 离散对数算法的一个推广就是椭圆曲线公钥方案。典型例子包括椭圆曲线Diffie-Hellman密钥交换(ECDH)和椭圆曲线数字签名算法(ECDSA)。
密钥等级与安全等级:
“n位安全等级”: 如果已知最好的攻击需要 2 n 2^{n} 2n步才能破解某个算法,则这个算法可以称为拥有“n位安全等级”。这个定义非常容易理解,因为安全等级为n的对称算法对应的密钥长度也为n位
。非对称算法的密码强度与安全性之间的关系没有这么直观。下表显示了位数为80、128、192和256的四个安全等级对应的公钥算法推荐使用的位长度
。从表中可以看出,类似RSA的方案和离散对数方案都需要非常长的
边栏推荐
- 202.2.9
- 2.9 learning summary
- Nabicat connection: local MySQL & cloud service MySQL and error reporting
- 为什么许多shopify独立站卖家都在用聊天机器人?一分钟读懂行业秘密!
- Multipass Chinese documents - improve mount performance
- ROS 笔记(07)— 客户端 Client 和服务端 Server 的实现
- 1.18 learning summary
- Zuul implements dynamic routing
- YOLOV5超参数设置与数据增强解析
- Using Matplotlib to add an external image at the canvas level
猜你喜欢
Zhongshanshan: engineers after being blasted will take off | ONEFLOW u
86.(cesium篇)cesium叠加面接收阴影效果(gltf模型)
Physical design of database design (2)
图解OneFlow的学习率调整策略
5. < tag stack and general problems > supplement: lt.946 Verify the stack sequence (the same as the push in and pop-up sequence of offer 31. stack)
Zuul implements dynamic routing
File upload and security dog
UWB超高精度定位系统原理图
Svn error command revert error previous operation has not finished; run ‘ cleanup‘ if
0622-马棕榈跌9%
随机推荐
Method of saving pictures in wechat applet
File upload and security dog
Sklearn Library -- linear regression model
1.16 learning summary
Resample
Solution to back-off restarting failed container
Multipass Chinese document - use packer to package multipass image
Yolov5 super parameter setting and data enhancement analysis
[IDE(ImageBed)]Picgo+Typora+aliyunOSS部署博客图床(2022.6)
86. (cesium chapter) cesium overlay surface receiving shadow effect (gltf model)
86.(cesium篇)cesium叠加面接收阴影效果(gltf模型)
Create a binary response variable using the cut sub box operation
Hash problem
Nabicat connection: local MySQL & cloud service MySQL and error reporting
为什么许多shopify独立站卖家都在用聊天机器人?一分钟读懂行业秘密!
Numpy data input / output
BACK-OFF RESTARTING FAILED CONTAINER 的解决方法
Genius makers: lone Rangers, technology giants and AI | ten years of the rise of in-depth learning
1.21 learning summary
[H5 development] 03- take you hand in hand to improve H5 development - single submission vs batch submission with a common interface