Skip to content

Instantly share code, notes, and snippets.

@quartzjer
quartzjer / tectonic
Created March 9, 2021 23:13 — forked from r-rmcgibbo/tectonic
system: x86_64-linux | build_time: 7 minutes | https://github.com/NixOS/nixpkgs/pull/115636
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/v38dgprlggn9jx7zqp8gjvjs80kw0www-source
source root is source
Executing cargoSetupPostUnpackHook
unpacking source archive /nix/store/90v63505na41d2i07v7rdyd3rmpkxkyj-tectonic-0.4.1-vendor.tar.gz
Finished cargoSetupPostUnpackHook
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
Executing cargoSetupPostPatchHook
function testGenerateImportExport(cipher){
return crypto.subtle.generateKey(cipher, true, cipher.usage).then(function(keys){
if (keys.type === "secret") //only one secret key (e.g. with HMAC)
cipher.keys = [keys];
else
cipher.keys = [keys.privateKey, keys.publicKey];
var exportProms = [];
for (var i = 0; i < cipher.keys.length; i++){
exportProms.push(crypto.subtle.exportKey("jwk", cipher.keys[i]));