File tree 1 file changed +4
-5
lines changed
crates/matrix-sdk-crypto/src
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -341,12 +341,11 @@ impl DehydratedDevice {
341
341
///
342
342
/// To combat the IV reuse, we're going to create a per-dehydrated-device unique
343
343
/// pickle key by expanding the key itself with the device ID used as the salt.
344
- ///
345
- /// TODO: Perhaps we should put this into vodozemac with a new pickle
346
- /// minimalistic pickle format using the [`matrix_pickle`] crate.
347
- ///
348
- /// [`matrix_pickle`]: https://docs.rs/matrix-pickle/latest/matrix_pickle/
349
344
fn expand_pickle_key ( key : & [ u8 ; 32 ] , device_id : & DeviceId ) -> Box < [ u8 ; 32 ] > {
345
+ // TODO: Perhaps we should put this into vodozemac with a new pickle
346
+ // minimalistic pickle format using the [`matrix_pickle`] crate.
347
+ //
348
+ // [`matrix_pickle`]: https://docs.rs/matrix-pickle/latest/matrix_pickle/
350
349
let kdf: Hkdf < Sha256 > = Hkdf :: new ( Some ( device_id. as_bytes ( ) ) , key) ;
351
350
let mut key = Box :: new ( [ 0u8 ; 32 ] ) ;
352
351
You can’t perform that action at this time.
0 commit comments