DEK 버전을 프론트엔드에서 명시적으로 관리하도록 변경

This commit is contained in:
static
2025-01-06 15:38:50 +09:00
parent 71f12c942b
commit 47850e1421
16 changed files with 78 additions and 26 deletions

View File

@@ -16,15 +16,14 @@ export const GET: RequestHandler = async ({ cookies, params }) => {
if (!zodRes.success) error(400, "Invalid path parameters");
const { id } = zodRes.data;
const { createdAt, mekVersion, encDek, encContentIv, encName } = await getFileInformation(
userId,
id,
);
const { createdAt, mekVersion, encDek, dekVersion, encContentIv, encName } =
await getFileInformation(userId, id);
return json(
fileInfoResponse.parse({
createdAt,
mekVersion,
dek: encDek,
dekVersion,
contentIv: encContentIv,
name: encName.ciphertext,
nameIv: encName.iv,