2

目前我在Java中使用加密实例,如下所示:

Cipher cipher = Cipher.getInstance("RSA");

但是我无法在我想使用 RSA_PKCS1_OAEP_PADDING 的 OpenSSL 中解密我的加密消息。我需要添加什么"RSA"才能使用 RSA_PKCS1_OAEP_PADDING?

请帮忙

4

1 回答 1

6

您是否尝试过在其中使用“RSA/NONE/OAEPPadding” getInstance()

否则,请查看Java Cryptography Architecture Standard Algorithm Name Documentation以查找可能参数的列表。

于 2012-12-06T09:07:47.243 回答