{ "id": "175450", "key": "MOD-2739", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-09-10T18:08:02.000+0000", "created": "2020-08-19T13:19:38.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2021-07-12T23:47:16.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "15701", "name": "Identity", "description": "Deprecated the old “TouchId” component " } ], "description": "h5.Description\r\n\r\nWhen authenticating multiple times on Android the below error is thrown\r\n{code}\r\n{\r\n error: 'Failed to encrypt the data with the generated key.',\r\n success: false\r\n}\r\n{code}\r\n\r\nAdding some further logging clarifies the error a little better\r\n\r\n{code}\r\nFingerPrintHelper: (pool-4-thread-1) [25314,25397] java.lang.IllegalStateException: IV has already been used. Reusing IV in encryption mode violates security best practices.\r\n{code}\r\n\r\nI applied the approach in https://github.com/appcelerator-modules/titanium-identity/pull/36 to the current module and that worked\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Build the module using `ti build -p android` \r\n2. Click the `Authenticate with: Touch ID` button and authenticate with your fingerprint\r\n3. Click the `Authenticate with: Touch ID` button and authenticate with your fingerprint\r\n\r\nh5.Actual\r\n\r\nOn the second attempt an error occurs\r\n\r\nh5.Expected\r\n\r\nShould be able to auth everytime", "attachment": [], "flagged": false, "summary": "Identity: Authenticating multiple times on Android throws error", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "closedSprints": [ { "id": 1204, "state": "closed", "name": "2020 Sprint 17", "startDate": "2020-08-17T15:48:00.000Z", "endDate": "2020-08-28T15:48:00.000Z", "completeDate": "2020-08-31T15:36:28.040Z", "originBoardId": 114 }, { "id": 1205, "state": "closed", "name": "2020 Sprint 18", "startDate": "2020-08-31T15:45:10.220Z", "endDate": "2020-09-11T15:45:00.000Z", "completeDate": "2020-09-11T19:56:20.674Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "456513", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "I will fix up the linked PR to remove the merge conflicts", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-08-19T13:20:08.000+0000", "updated": "2020-08-19T13:20:08.000+0000" }, { "id": "456515", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "PR: https://github.com/appcelerator-modules/titanium-identity/pull/59", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-08-19T13:56:47.000+0000", "updated": "2020-08-19T13:56:47.000+0000" }, { "id": "456828", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nPR Merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-09-10T18:06:31.000+0000", "updated": "2020-09-10T18:06:31.000+0000" }, { "id": "456829", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We would need a PR to add this to the SDK in the future", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-09-10T18:08:55.000+0000", "updated": "2020-09-10T18:08:55.000+0000" }, { "id": "458852", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (titanium_mobile): https://github.com/appcelerator/titanium_mobile/pull/12951\r\n\r\n_(To be included in Titanium SDK 10.0.1.)_", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-07-12T23:47:16.000+0000", "updated": "2021-07-12T23:47:16.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }