@@ -41,7 +41,7 @@ test(SUITE, 'wrap/unwrap AES-256 with AES-KW', async () => {
4141 ) ;
4242
4343 // Verify keys are functionally identical
44- const plaintext = getRandomValues ( new Uint8Array ( 32 ) ) ;
44+ const plaintext = getRandomValues ( new Uint8Array ( 32 ) ) as Uint8Array ;
4545 const iv = getRandomValues ( new Uint8Array ( 12 ) ) ;
4646
4747 const ct1 = await subtle . encrypt (
@@ -184,7 +184,7 @@ test(SUITE, 'wrap/unwrap with AES-CBC', async () => {
184184 [ 'encrypt' , 'decrypt' ] ,
185185 ) ;
186186
187- const plaintext = getRandomValues ( new Uint8Array ( 32 ) ) ;
187+ const plaintext = getRandomValues ( new Uint8Array ( 32 ) ) as Uint8Array ;
188188 const gcmIv = getRandomValues ( new Uint8Array ( 12 ) ) ;
189189
190190 const ct = await subtle . encrypt (
@@ -237,7 +237,7 @@ test(SUITE, 'wrap/unwrap with AES-OCB', async () => {
237237 [ 'encrypt' , 'decrypt' ] ,
238238 ) ;
239239
240- const plaintext = getRandomValues ( new Uint8Array ( 32 ) ) ;
240+ const plaintext = getRandomValues ( new Uint8Array ( 32 ) ) as Uint8Array ;
241241 const gcmIv = getRandomValues ( new Uint8Array ( 12 ) ) ;
242242
243243 const ct = await subtle . encrypt (
@@ -343,7 +343,7 @@ test(SUITE, 'wrap/unwrap with RSA-OAEP', async () => {
343343 [ 'encrypt' , 'decrypt' ] ,
344344 ) ;
345345
346- const plaintext = getRandomValues ( new Uint8Array ( 32 ) ) ;
346+ const plaintext = getRandomValues ( new Uint8Array ( 32 ) ) as Uint8Array ;
347347 const iv = getRandomValues ( new Uint8Array ( 12 ) ) ;
348348
349349 const ct = await subtle . encrypt (
@@ -396,7 +396,7 @@ test(SUITE, 'wrap/unwrap with ChaCha20-Poly1305', async () => {
396396 [ 'encrypt' , 'decrypt' ] ,
397397 ) ;
398398
399- const plaintext = getRandomValues ( new Uint8Array ( 32 ) ) ;
399+ const plaintext = getRandomValues ( new Uint8Array ( 32 ) ) as Uint8Array ;
400400 const gcmIv = getRandomValues ( new Uint8Array ( 12 ) ) ;
401401
402402 const ct = await subtle . encrypt (
0 commit comments