Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
12 lines
407 B
Plaintext
12 lines
407 B
Plaintext
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.importKey = importKey;
|
|
const getWebCrypto_js_1 = require("./getWebCrypto.js");
|
|
async function importKey(opts) {
|
|
const WebCrypto = await (0, getWebCrypto_js_1.getWebCrypto)();
|
|
const { keyData, algorithm } = opts;
|
|
return WebCrypto.subtle.importKey('jwk', keyData, algorithm, false, [
|
|
'verify',
|
|
]);
|
|
}
|