Fix huge ugly typo in IV sizes...
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ export default class SecretBox {
|
||||
|
||||
public static async encrypt(data: Uint8Array, key: CryptoKey): Promise<SecretBox> {
|
||||
log.trace('encrypt')
|
||||
const iv = crypto.getRandomValues(new Uint8Array(11))
|
||||
const iv = crypto.getRandomValues(new Uint8Array(12))
|
||||
const cipher = await crypto.subtle.encrypt(
|
||||
{
|
||||
name: consts.ENCRYPTION,
|
||||
|
||||
Reference in New Issue
Block a user