This commit is contained in:
+2
-2
@@ -24,8 +24,8 @@ test('Private wrap', async () => {
|
||||
const message = crypto.getRandomValues(new Uint8Array(8))
|
||||
const k_wrapped = await SecretBox.gen(true)
|
||||
const boxed_message = await SecretBox.encrypt(message, k_wrapped)
|
||||
const box = await PrivateWrap.encrypt(k_wrapped, de!)
|
||||
const unbox = await box.decrypt(k.privateKey)
|
||||
const box = await PrivateWrap.wrap(k_wrapped, de!)
|
||||
const unbox = await box.unwrap(k.privateKey)
|
||||
expect(unbox).not.toBeNull()
|
||||
|
||||
const unboxed_message = await boxed_message.decrypt(unbox!)
|
||||
|
||||
Reference in New Issue
Block a user