-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdecrypt_params.js
37 lines (27 loc) · 915 Bytes
/
decrypt_params.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/** @fileoverview A struct that stores the data needed to decrypt a key file. */
/**
* @param {!keepasschrome.KeyFileHeader.Flags} headerFlags
* @param {!Uint8Array} encryptedData
* @param {!Uint8Array} encryptionInitialValue
* @param {!Uint8Array} contentsHash
* @param {!ArrayBuffer} key
* @constructor
* @struct
*/
keepasschrome.DecryptParams = function(
headerFlags, encryptedData, encryptionInitialValue, contentsHash, key) {
/** @type {!keepasschrome.KeyFileHeader.Flags} */
this.headerFlags = headerFlags;
/** @type {!Uint8Array} */
this.encryptedData = encryptedData;
/** @type {!Uint8Array} */
this.encryptionInitialValue = encryptionInitialValue;
/** @type {!Uint8Array} */
this.contentsHash = contentsHash;
/** @type {!ArrayBuffer} */
this.key = key;
/** @type {!webCrypto.CryptoKey} */
this.cryptoKey;
/** @type {!ArrayBuffer} */
this.decryptedData;
};