fix: working on AEA-GCM encryption.

This commit is contained in:
charlesgauthereau
2026-02-12 18:46:11 +01:00
parent c01440f9d4
commit 2426166676
5 changed files with 56 additions and 8 deletions
+16
View File
@@ -15,3 +15,19 @@ export function getPublicServerKeyContent() {
};
}
}
/**
* Get Master server key
*/
export function getMasterServerKeyContent() {
try {
return fs.readFileSync("private/keys/master_key.bin");
} catch (error: any) {
console.error("Error :", error);
return {
success: false,
message: `An error occurred while getting master server key`,
};
}
}