Open lixianbin1 opened 1 year ago
This is my decryption through the online website, which can be successful
Please try to encode the content to be encrypted as Base64 or Hex.
It seems that this problem occurs when the plaintext is too long.
It seems that this problem occurs when the plaintext is too long.
Message shall be smaller than your key size.
Whether segmented decryption is supported or will be supported soon?
Whether segmented decryption is supported or will be supported soon?
There is no plan to support it because openssl pkeyutl encryption doesn't support it too.
cat largefile.zip | openssl pkeyutl -encrypt -pubin -inkey a.pub > encrypted.dat
Public Key operation error
80C5A90001000000:error:0200006E:rsa routines:
ossl_rsa_padding_add_PKCS1_type_2_ex:data too large for key size:crypto/rsa/rsa_pk1.c:129:
The Java personnel used RSA/EBC/OAEPWithSHA-256AndMGF1Padding for encryption, but when I got this, I couldn't solve it, prompting me to Hash mismatch. Can anyone point out my problem? Here is my code