|
@@ -12,14 +12,14 @@ export function deriveKeys(material: CryptoKey): Promise<{
|
12
|
12
|
* Ratchets a key. See
|
13
|
13
|
* https://tools.ietf.org/html/draft-omara-sframe-00#section-4.3.5.1
|
14
|
14
|
* @param {CryptoKey} material - base key material
|
15
|
|
- * @returns {ArrayBuffer} - ratcheted key material
|
|
15
|
+ * @returns {Promise<ArrayBuffer>} - ratcheted key material
|
16
|
16
|
*/
|
17
|
|
-export function ratchet(material: CryptoKey): ArrayBuffer;
|
|
17
|
+export function ratchet(material: CryptoKey): Promise<ArrayBuffer>;
|
18
|
18
|
/**
|
19
|
19
|
* Converts a raw key into a WebCrypto key object with default options
|
20
|
20
|
* suitable for our usage.
|
21
|
21
|
* @param {ArrayBuffer} keyBytes - raw key
|
22
|
22
|
* @param {Array} keyUsages - key usages, see importKey documentation
|
23
|
|
- * @returns {CryptoKey} - the WebCrypto key.
|
|
23
|
+ * @returns {Promise<CryptoKey>} - the WebCrypto key.
|
24
|
24
|
*/
|
25
|
|
-export function importKey(keyBytes: ArrayBuffer): CryptoKey;
|
|
25
|
+export function importKey(keyBytes: ArrayBuffer): Promise<CryptoKey>;
|