Reputation: 22017
I can do with LEAEngine directly.
final var engine = new LEAEngine();
final var cipher = new PaddedBufferedBlockCipher(CBCBlockCipher.newInstance(engine), p);
final var params = _ParametersWithIVTestUtils.newRandomInstanceOfParametersWithIV(
null, ks, cipher.getUnderlyingCipher()
);
But I failed to work with the standard JCE API.
Security.addProvider(new BouncyCastleProvider());
final var transformation = "LEA/CBC/PKCS5Padding";
final var cipher = Cipher.getInstance(transformation, "BC");
with the following error message.
Caused by: java.security.NoSuchAlgorithmException: No such algorithm: LEA/CBC/PKCS5Padding
at java.base/javax.crypto.Cipher.getInstance(Cipher.java:758)
at java.base/javax.crypto.Cipher.getInstance(Cipher.java:646)
What can I do?
Upvotes: 0
Views: 83