fmt
This commit is contained in:
+7
-1
@@ -1,7 +1,13 @@
|
||||
import {describe, expect, test} from 'bun:test'
|
||||
import {kdf, PrivateWrap, SecretBox, SecretWrap} from '..'
|
||||
|
||||
async function test_keys(k1: CryptoKey, k2: CryptoKey, usage: kdf.Usage | kdf.DHusage, should_box: boolean, should_unbox: boolean) {
|
||||
async function test_keys(
|
||||
k1: CryptoKey,
|
||||
k2: CryptoKey,
|
||||
usage: kdf.Usage | kdf.DHusage,
|
||||
should_box: boolean,
|
||||
should_unbox: boolean
|
||||
) {
|
||||
if (usage === kdf.Usage.wrap || usage == kdf.DHusage.wrap) {
|
||||
const payload = await SecretBox.gen(true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user