Page MenuHomePhabricator

[native] Compute backup key for u8 slice
ClosedPublic

Authored by michal on Nov 24 2023, 8:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 27 2025, 4:19 PM
Unknown Object (File)
Feb 14 2025, 2:02 PM
Unknown Object (File)
Feb 14 2025, 1:56 PM
Unknown Object (File)
Feb 14 2025, 11:12 AM
Unknown Object (File)
Jan 31 2025, 2:08 PM
Unknown Object (File)
Jan 31 2025, 2:08 PM
Unknown Object (File)
Jan 31 2025, 2:02 PM
Unknown Object (File)
Jan 6 2025, 5:32 PM
Subscribers

Details

Summary

ENG-5344

The current backup key generation function using argon2 library expects &str, as the data is passed from javascript. This diffs adds an additional variant that uses u8 slices as Rust code operates on bytes. Additionally I added std feature to argon2 in this diff so it's errors implement std::error::Error. This means we can use ? operator with Box<dyn Error> in later diffs.

Test Plan

Run the provided tests.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable