mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
remove old EncKey methods from crypto service
This commit is contained in:
@@ -1161,33 +1161,6 @@ export class CryptoService implements CryptoServiceAbstraction {
|
||||
return this.encryptService.decryptToBytes(encBuffer, key);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use SetUserKey instead
|
||||
*/
|
||||
async setEncKey(encKey: string): Promise<void> {
|
||||
if (encKey == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
await this.stateService.setDecryptedCryptoSymmetricKey(null);
|
||||
await this.stateService.setEncryptedCryptoSymmetricKey(encKey);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use getUserKey instead
|
||||
*/
|
||||
@sequentialize(() => "getEncKey")
|
||||
getEncKey(key: SymmetricCryptoKey = null): Promise<SymmetricCryptoKey> {
|
||||
return this.getEncKeyHelper(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use hasUserKey instead
|
||||
*/
|
||||
async hasEncKey(): Promise<boolean> {
|
||||
return (await this.stateService.getEncryptedCryptoSymmetricKey()) != null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use clearKey instead
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user