Skip to content

runfix: rename system crypto config #4531

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/core/src/main/Account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ export class Account<T = any> extends EventEmitter {
const {CoreCrypto} = await import('@wireapp/core-crypto');
const dbName = this.generateSecretsDbName(context);

const secretStore = mlsConfig.secretsCrypto
? await createCustomEncryptedStore(dbName, mlsConfig.secretsCrypto)
const secretStore = mlsConfig.systemCrypto
? await createCustomEncryptedStore(dbName, mlsConfig.systemCrypto)
: await createEncryptedStore(dbName);

let key = await secretStore.getsecretValue(coreCryptoKeyId);
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/main/mls/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface MLSConfig<T = any> {
* encrypt/decrypt function pair that will be called before storing/fetching secrets in the secrets database.
* If not provided will use the built in encryption mechanism
*/
secretsCrypto?: SecretCrypto<T>;
systemCrypto?: SecretCrypto<T>;

/**
* path on the public server to the core crypto wasm file.
Expand Down