Commit a578d4b4 authored by Thomas Jaussoin's avatar Thomas Jaussoin
Browse files

last push

parent 2e3d0a8e
Pipeline #238586 passed with stages
in 8 minutes and 31 seconds
......@@ -55,7 +55,7 @@ export async function cleaStartNewPeriod(config) {
["sign"]
);
gConf.LTId = new Uint8Array(await crypto.subtle.sign("HMAC", key, one), 0, 16); // HMAC-SHA256-128
return cleaRenewLSP(config);
}
......@@ -115,7 +115,7 @@ export async function cleaRenewLSP(config) {
}
let output = await encrypt(header, msg, config.PK_SA);
// Convert output to Base64
return btoa((Array.from(new Uint8Array(output))).map(ch => String.fromCharCode(ch)).join('')).replace(/\+/g, '-').replace(/\//g, '_');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment