암호 관련 모듈 리팩토링

This commit is contained in:
static
2025-01-08 20:05:50 +09:00
parent 1307783de1
commit db900d8038
5 changed files with 15 additions and 17 deletions

View File

@@ -48,7 +48,7 @@ export const requestInitialMasterKeyRegistration = async (
) => {
const res = await callPostApi<InitialMasterKeyRegisterRequest>("/api/mek/register/initial", {
mek: masterKeyWrapped,
mekSig: await signMasterKeyWrapped(1, masterKeyWrapped, signKey),
mekSig: await signMasterKeyWrapped(masterKeyWrapped, 1, signKey),
});
return res.ok || res.status === 409;
};