具有对称密钥的 RSA
我的客户要求我使用带有对称密钥的 RSA 来加密一些数据。我对 RSA 的了解只是它用作非对称密钥算法。我搜索过类似的东西但没有找到。那么有可能吗?如果是,是否有它的 java 实现(JCE 提供者)?
提前致谢。
I have been asked by my client to encrypt some data using RSA with symmetric keys. All I know about RSA is that it is used as an asymmetric key algorithm. I have searched for anything like that and find none. So is it possible? If yes, is there an java implementation (JCE provider) of it?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
带有对称密钥的 RSA 意味着 - 使用 RSA 建立对称密钥并随后使用该对称密钥。这就是 SSL 的工作原理...
RSA with symmetric key means - using RSA to establish a symmetric key and use that symmetric key afterwards. That is how SSL works...
您的客户端可能指的是基于 RSA 的密钥传输协议,使用 RSA 非对称密钥来“包装”对称密码的对称密钥,该对称密码将用于加密两个通信方之间的进一步消息。有关 RSA-KEM 的示例,请参阅 RFC5990。正如 Prabath 已经指出的那样,RSA 也常用于 SSL/TLS 中来交换对称密钥。
如果这不是他的意思,那么我会轻轻地忽略他,并尝试说服他,他应该将安全决策留给对材料有更好理解的人,因为不存在所谓的“安全决策”。对称 RSA 密钥。
What your client probably means is a Key Transport Protocol based on RSA, using the RSA asymmetric keys to "wrap" a symmetric key for a symmetric Cipher that would be used to encrypt further messages between the two communication parties. See RFC5990 for the example of RSA-KEM. As Prabath already pointed out, RSA is also commonly used in SSL/TLS for exchanging a symmetric key.
If that's not what he means, then I would gently ignore him and try to convince him that he should leave security decisions to people that have a better understanding of the material, because there is no such thing as a symmetric RSA key.
不,不是。建议他们 AES 就是他们想要的。
No it's not. Suggest them that AES is what they want.