java.security.InvalidKeyException: Unsupported key size: 27 bytes
11-12 09:46:25.460 18539-18539/com. W/System.err: java.security.InvalidKeyException: Unsupported key size: 27 bytes
at com.android.org.conscrypt.OpenSSLCipher$AES.checkSupportedKeySize(OpenSSLCipher.java:599)
at com.android.org.conscrypt.OpenSSLCipher.engineInitInternal(OpenSSLCipher.java:261)
at com.android.org.conscrypt.OpenSSLCipher.engineInit(OpenSSLCipher.java:323)
at javax.crypto.Cipher.init(Cipher.java:751)
at javax.crypto.Cipher.init(Cipher.java:701)
at com.ubicare.wellness.common.util.AES256Cipher.Decode(Unknown Source)
at com.ubicare.wellness.settings.SettingsPasscodeInputActivity.a(Unknown Source)
at com.ubicare.wellness.settings.SettingsPasscodeInputActivity.onClick(Unknown Source)
at android.view.View.performClick(View.java:5184)
at android.view.View$PerformClick.run(View.java:20910)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5951)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
해결책 :
AES는 16, 24 또는 32 바이트 크기의 암호키만 지원하므로 암호키를 변경해야합니다.