add frontend AES-GCM and base64 helpers with Vitest coverage.

This commit is contained in:
2026-10-19 03:00:03 +02:00
parent f2987da2fe
commit 0238858c8b
29 changed files with 2021 additions and 2 deletions
@@ -0,0 +1 @@
export const AES_GCM_AUTH_TAG_BYTE_LENGTH = 16;
@@ -0,0 +1 @@
export const AES_GCM_IV_BYTE_LENGTH = 12;
@@ -0,0 +1 @@
export const AES_GCM_KEY_BYTE_LENGTH = 32;
@@ -1,4 +1,4 @@
import { base64ToBytes } from '@/utils/base64ToBytes';
import { base64ToBytes } from '@/utils/encoding/base64ToBytes';
const EXIFTOOL_WORKER_INIT_JPEG_BASE64 =
'/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////2wBDAf//////////////////////////////////////////////////////////////////////////////////////wAARCAABAAEDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AL+AD//Z';