This repository was archived by the owner on Oct 22, 2024. It is now read-only.
File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,6 @@ module.exports = {
122
122
"!matrix-js-sdk/src/crypto/aes" ,
123
123
"!matrix-js-sdk/src/crypto/keybackup" ,
124
124
"!matrix-js-sdk/src/crypto/deviceinfo" ,
125
- "!matrix-js-sdk/src/crypto/key_passphrase" ,
126
125
"!matrix-js-sdk/src/crypto/recoverykey" ,
127
126
"!matrix-js-sdk/src/crypto/dehydration" ,
128
127
"!matrix-js-sdk/src/oidc" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Please see LICENSE files in the repository root for full details.
7
7
*/
8
8
9
9
import { ICryptoCallbacks , SecretStorage } from "matrix-js-sdk/src/matrix" ;
10
- import { deriveKey } from "matrix-js-sdk/src/crypto/key_passphrase " ;
10
+ import { deriveRecoveryKeyFromPassphrase } from "matrix-js-sdk/src/crypto-api " ;
11
11
import { decodeRecoveryKey } from "matrix-js-sdk/src/crypto/recoverykey" ;
12
12
import { logger } from "matrix-js-sdk/src/logger" ;
13
13
@@ -64,7 +64,7 @@ function makeInputToKey(
64
64
) : ( keyParams : KeyParams ) => Promise < Uint8Array > {
65
65
return async ( { passphrase, recoveryKey } ) : Promise < Uint8Array > => {
66
66
if ( passphrase ) {
67
- return deriveKey ( passphrase , keyInfo . passphrase . salt , keyInfo . passphrase . iterations ) ;
67
+ return deriveRecoveryKeyFromPassphrase ( passphrase , keyInfo . passphrase . salt , keyInfo . passphrase . iterations ) ;
68
68
} else if ( recoveryKey ) {
69
69
return decodeRecoveryKey ( recoveryKey ) ;
70
70
}
You can’t perform that action at this time.
0 commit comments