Replies: 1 comment 1 reply
-
PKCS5Padding doesn't make sense with AES/GCM - just use "AES/GCM" (or "AES/GCM/NOPADDING" should work). I assume the earlier provider was ignoring this unnecessary padding spec, while the 2.0.0 version is being more strict. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Can someone help me with this error I just received?
Caused by: javax.crypto.NoSuchPaddingException: PKCS5PADDING not found
at org.bouncycastle.jcajce.provider.BaseCipher.engineSetPadding(Unknown Source)
at java.base/javax.crypto.Cipher$Transform.setModePadding(Unknown Source)
I am using AES/GCM/PKCS5Padding. This seemed to work just fine on Java11 with bc-fips 1.0.2.4.
Beta Was this translation helpful? Give feedback.
All reactions