Skip to content

"Decryption failed: Authentication tag verification failed" #802

Description

@apostols1

Description

We have problems with devices (Motorola, Pixel, some Xiaomi devices) for which the saving of a keychain item was successfull, but retrieving it threw the error:

  • "Decryption failed: Authentication tag verification failed. This usually indicates that the encrypted data was modified, corrupted, or is being decrypted with the wrong key.","stack":"Sa.a: Decryption failed: Authentication tag verification failed. This usually indicates that the encrypted data was modified, corrupted, or is being decrypted with the wrong key."

It's hard to reproduce and is not always occuring and on some specific devices.

We have our config like this:
{
service: ourServiceKey
accessGroup: ourSharedAccessGroup
accessible: Keychain.ACCESSIBLE.AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY,
}

Its causing users to be logged out and we are on production.

Steps to reproduce

/

Snack or a link to a repository

/

React Native Keychain version

10.0.0

React Native version

0.81.4

Platforms

Android

Workflow

React Native (without Expo)

Architecture

Fabric (New Architecture)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions