gpt4 book ai didi

c - 是否可以使用 openssl 的 EVP api 用公钥解密

转载 作者:行者123 更新时间:2023-11-30 15:02:29 30 4
gpt4 key购买 nike

我在文档中找到的所有示例都是使用公钥加密,然后使用私钥解密

因此,我可以使用 EVP_XXX api 用公钥解密吗?或者使用公钥解密的唯一方法是使用 RSA_XXX api?

欢迎任何答案。

最佳答案

Is it possible to decrypt with public key using openssl's EVP api

没有。它不是有效的加密操作。大多数安全库(例如 Botan、Crypto++ 或 OpenSSL)都无法做到这一点。

Therefore, can I decrypt with a public key, using EVP_XXX api? Or the only way to decrypt with public key is using RSA_XXX api?

通常人们想要一个 Signature Scheme with Recovery当他们开始询问“用私钥加密”和“用公钥解密”问题时。但我们不知道您的用例是什么,所以我们无法真正提出建议。

询问密码系统建议可能与 Stack Overflow 无关。也许您应该描述您的问题并在 Cryptography Stack Exchange 上寻求指导或Information Security Stack Exchange .

关于c - 是否可以使用 openssl 的 EVP api 用公钥解密,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41036448/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com