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

Exception on Android 5.1.1 when decrypting nfc tag value #10

Closed
Edigio opened this issue Oct 1, 2019 · 4 comments
Closed

Exception on Android 5.1.1 when decrypting nfc tag value #10

Edigio opened this issue Oct 1, 2019 · 4 comments
Assignees

Comments

@Edigio
Copy link
Contributor

Edigio commented Oct 1, 2019

I used a Sony Xperia Z1 Compact D5503 with Android 5.1.1 (API 22) the method ias!!.startSecureChannel(pin) of CieIDSdk class throw an exception when the tag nfc is discovered

java.io.IOException: Transceive failed
at android.nfc.TransceiveResult.getResponseOrThrow(TransceiveResult.java:52)
at android.nfc.tech.BasicTagTechnology.transceive(BasicTagTechnology.java:151)
at android.nfc.tech.IsoDep.transceive(IsoDep.java:172)
at it.ipzs.cieidsdk.nfc.Ias.transmit(Ias.kt:1678)
at it.ipzs.cieidsdk.nfc.Ias.sendApdu(Ias.kt:1445)
at it.ipzs.cieidsdk.nfc.Ias.dhKeyExchange(Ias.kt:855)
at it.ipzs.cieidsdk.nfc.Ias.startSecureChannel(Ias.kt:605)
at it.ipzs.cieidsdk.common.CieIDSdk.onTagDiscovered(CieIDSdk.kt:175)
at android.nfc.NfcActivityManager.onTagDiscovered(NfcActivityManager.java:446)
at android.nfc.IAppCallback$Stub.onTransact(IAppCallback.java:79)
at android.os.Binder.execTransact(Binder.java:446)

@Edigio
Copy link
Contributor Author

Edigio commented Oct 2, 2019

To be able to replicate the issue i add others info:
Service provider web url: https://accessosicuro-trial.rete.toscana.it
Base url IDP: https://idserver.servizicie.interno.gov.it:8443/idp
CIE: my personal cie (no test)

With this same configuration i not have any issue on Samsung S8+ with Android 8.0.0 and Nokia 7+ with android 9.0.0

@Edigio
Copy link
Contributor Author

Edigio commented Oct 3, 2019

I have the same issue on another device:
HTC One with Android 5.0.2

@Edigio
Copy link
Contributor Author

Edigio commented Oct 3, 2019

The branch tested is
branch: ipzs_review
commit id: 44b174b

@fventola-ipzs
Copy link
Contributor

We reproduce the issue on device with Android 5.1.1, the issue is related to an RSA operative system issue. In particular the error is : E/NativeCrypto: Could not sign message in RsaMethodPrivEnc. There is no possible solution, we add a check on android version on public interface like we discuss in the last call meeting.

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

No branches or pull requests

3 participants