You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
Test for cross-signing private key as well as public
This commit is contained in:
@@ -346,9 +346,12 @@ Crypto.prototype.bootstrapSecretStorage = async function({
|
|||||||
// to verify the signature on the SSSS default key when adding secrets, so we
|
// to verify the signature on the SSSS default key when adding secrets, so we
|
||||||
// effectively need it for both reading and writing secrets.
|
// effectively need it for both reading and writing secrets.
|
||||||
let crossSigningKeysReset = false;
|
let crossSigningKeysReset = false;
|
||||||
if (!this._crossSigningInfo.getId()) {
|
if (
|
||||||
|
!this._crossSigningInfo.getId() ||
|
||||||
|
!await this._baseApis._cryptoCallbacks.getCrossSigningKey("master")
|
||||||
|
) {
|
||||||
logger.log(
|
logger.log(
|
||||||
"Cross-signing public keys not found on device, " +
|
"Cross-signing public and/or private keys not found on device, " +
|
||||||
"checking secret storage for private keys",
|
"checking secret storage for private keys",
|
||||||
);
|
);
|
||||||
if (this._crossSigningInfo.isStoredInSecretStorage(this._secretStorage)) {
|
if (this._crossSigningInfo.isStoredInSecretStorage(this._secretStorage)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user