Skip to content

Commit 0575a2e

Browse files
authored
fix: function signature should return promise (#45)
Integrating across several different but dependent PR’s is difficult. I did it almost right…
1 parent 3cfa89b commit 0575a2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/raw-aes-keyring-browser/src/raw_aes_keyring_browser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ async function aesGcmWrapKey (
134134
material: WebCryptoEncryptionMaterial,
135135
aad: Uint8Array,
136136
wrappingMaterial: WebCryptoRawAesMaterial
137-
): WebCryptoEncryptionMaterial {
137+
): Promise<WebCryptoEncryptionMaterial> {
138138
const backend = await getWebCryptoBackend()
139139
const iv = await backend.randomValues(material.suite.ivLength)
140140

@@ -165,7 +165,7 @@ async function aesGcmUnwrapKey (
165165
wrappingMaterial: WebCryptoRawAesMaterial,
166166
edk: EncryptedDataKey,
167167
aad: Uint8Array
168-
): WebCryptoDecryptionMaterial {
168+
): Promise<WebCryptoDecryptionMaterial> {
169169
const { suite } = material
170170
const { iv, ciphertext, authTag } = rawAesEncryptedParts(suite, keyName, edk)
171171

0 commit comments

Comments
 (0)