fix: update alias handling in CipherStorage to include prefix based on cipher and auth requirements#736
fix: update alias handling in CipherStorage to include prefix based on cipher and auth requirements#736Bowlerr wants to merge 24 commits intooblador:masterfrom
Conversation
…prefix based on authentication requirements
…eflect merged changes
…f 'bio_' to fit recent renaming changes
… migration from legacy format and improve prefix management
|
Thanks @Bowlerr for the PR! Can we implement this prefix for all ciphers? |
|
I don't think it will solve #730 |
|
@DorianMazur Yes on my android simulator today but unsure what conditions triggered it... Could be the Alias, or after some research maybe the way we are using one cached instance? |
|
Also passed Local test I wrote: |
1290ad9 to
665a98b
Compare
|
@DorianMazur Do I need to do anything for iOS? |
…mproved clarity and consistency
- due to `ResetDevice` properly resetting our tests
Merge in #746 first to fix tests
Fixes - #730
if I understood correctly, this issue is caused by bio and non bio auth alias being considered the same.
This prefix solves that issue.
@DorianMazur is also working on a solution but was wondering if this fix would work so I can patch it in asap.
Changes
AES_GCM_<alias>AES_GCM_NO_AUTH_<alias>getPrefixedAliasinCipherStorageKeystoreAesGcm.ktUpdated to handle migration on Base Storage for each cipher having it's own prefix.