removed old encryption key implementation

This commit is contained in:
Danny Coates 2019-04-11 10:24:29 -07:00
parent bd58022b08
commit 29f243fdda
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
2 changed files with 2 additions and 19 deletions

View file

@ -18,23 +18,6 @@ export default class Keychain {
false,
['deriveKey']
);
this.encryptKeyPromise = this.secretKeyPromise.then(function(secretKey) {
return crypto.subtle.deriveKey(
{
name: 'HKDF',
salt: new Uint8Array(),
info: encoder.encode('encryption'),
hash: 'SHA-256'
},
secretKey,
{
name: 'AES-GCM',
length: 128
},
false,
['encrypt', 'decrypt']
);
});
this.metaKeyPromise = this.secretKeyPromise.then(function(secretKey) {
return crypto.subtle.deriveKey(
{