Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing test testEncryptionAndDecryptionDifferentActivationFailServerPrivateKeyConverter #766

Open
romanstrobl opened this issue Oct 20, 2022 · 1 comment
Assignees
Labels

Comments

@romanstrobl
Copy link
Member

Log message:

ServerPrivateKeyConverterTest.testEncryptionAndDecryptionDifferentActivationFailServerPrivateKeyConverter:78 Expected io.getlime.security.powerauth.app.server.service.exceptions.GenericServiceException to be thrown, but nothing was thrown.
@romanstrobl romanstrobl self-assigned this Oct 20, 2022
@banterCZ
Copy link
Member

The test is not failing. I just see the following in the log.

etlime.security.powerauth.app.server.ServerPrivateKeyConverterTest
2023-07-31T11:26:29.018+02:00  WARN 31755 --- [           main] i.g.s.p.c.lib.util.AESEncryptionUtils    : pad block corrupted

javax.crypto.BadPaddingException: pad block corrupted
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$BufferedGenericBlockCipher.doFinal(Unknown Source) ~[bcprov-jdk18on-1.75.jar:1.75.0.0]
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source) ~[bcprov-jdk18on-1.75.jar:1.75.0.0]
	at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2244) ~[na:na]
	at io.getlime.security.powerauth.crypto.lib.util.AESEncryptionUtils.decrypt(AESEncryptionUtils.java:102) ~[powerauth-java-crypto-1.5.0-SNAPSHOT.jar:na]
	at io.getlime.security.powerauth.crypto.lib.util.AESEncryptionUtils.decrypt(AESEncryptionUtils.java:125) ~[powerauth-java-crypto-1.5.0-SNAPSHOT.jar:na]
	at io.getlime.security.powerauth.app.server.converter.ServerPrivateKeyConverter.fromDBValue(ServerPrivateKeyConverter.java:126) ~[classes/:na]
	at io.getlime.security.powerauth.app.server.ServerPrivateKeyConverterTest.lambda$testEncryptionAndDecryptionDifferentActivationFailServerPrivateKeyConverter$1(ServerPrivateKeyConverterTest.java:82) ~[test-classes/:na]
	at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:53) ~[junit-jupiter-api-5.9.3.jar:5.9.3]
	at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:35) ~[junit-jupiter-api-5.9.3.jar:5.9.3]
	at org.junit.jupiter.api.Assertions.assertThrows(Assertions.java:3083) ~[junit-jupiter-api-5.9.3.jar:5.9.3]
	at io.getlime.security.powerauth.app.server.ServerPrivateKeyConverterTest.testEncryptionAndDecryptionDifferentActivationFailServerPrivateKeyConverter(ServerPrivateKeyConverterTest.java:79) ~[test-classes/:na]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants