🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

node-tpm2

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-tpm2 - npm Package Compare versions

Comparing version
0.1.0
to
0.1.1
+116
-30
examples/quote-verify.mjs
#!/usr/bin/env node
/**
* Verify quote signature against akPublicDer (ECDSA on Linux TBS; RSA on Windows PCP).
* Verify quote signature using QuoteResult.sigScheme / hashAlg (response truth).
*
* Usage:
* node examples/quote-verify.mjs
* node node_modules/node-tpm2/examples/quote-verify.mjs
* Full smoke: provisionAk + quote + verify (Windows may need elevation).
*
* Mutating: provisions a user AK and quotes PCRs. Run only on machines where that is OK.
* node examples/quote-verify.mjs --in PATH
* Quote-only with a saved AK blob (standard user OK on Windows when blob exists).
* SPKI from blob JSON `akPublicDer`, --ak-public-der, or native akPublicDerFromAkBlob.
*
* node node_modules/node-tpm2/examples/quote-verify.mjs [--in PATH]
*
* Mutating: quotes PCRs (transient TPM objects; flushed on success). No NV / PCR extend.
*/
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import { createHash } from 'node:crypto';
import { createRequire } from 'node:module';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { Tpm } from '../index.js';
import { tpmPublicKeyFromDer, verifyAttestationSignature } from './tpm-crypto-verify.mjs';
const qualifyingData = createHash('sha256').update('node-tpm2-repro').digest();
const require = createRequire(import.meta.url);
const nativeRoot = join(dirname(fileURLToPath(import.meta.url)), '..');
const { akPublicDer, akBlob } = await Tpm.provisionAk();
const quote = await Tpm.quote({
akBlob,
pcrSelection: [0, 7],
qualifyingData,
bank: 'sha256',
});
function usage() {
console.error(`Usage:
quote-verify.mjs
quote-verify.mjs --in PATH [--ak-public-der PATH]
const key = tpmPublicKeyFromDer(akPublicDer);
const ok = verifyAttestationSignature(akPublicDer, quote.message, quote.signature, {
sigScheme: quote.sigScheme,
hashAlg: quote.hashAlg,
});
Default blob path (Windows): %ProgramData%\\node-tpm2-spike\\ak.blob.json`);
process.exit(2);
}
console.log({
keyType: key.asymmetricKeyType,
sigScheme: quote.sigScheme,
hashAlg: quote.hashAlg,
akPublicDerLen: akPublicDer.length,
messageLen: quote.message.length,
sigLen: quote.signature.length,
sigHexPrefix: quote.signature.subarray(0, 8).toString('hex'),
verify: ok,
});
function flagValue(args, name) {
for (let i = 0; i < args.length; i++) {
if (args[i] === name && args[i + 1]) return args[++i];
const prefix = `${name}=`;
if (args[i]?.startsWith(prefix)) return args[i].slice(prefix.length);
}
return undefined;
}
if (!ok) {
console.error('FAIL: signature did not verify');
process.exit(1);
function loadBlobFile(path) {
const raw = JSON.parse(readFileSync(path, 'utf8'));
return {
akBlob: {
public: Buffer.from(raw.public, 'base64'),
private: Buffer.from(raw.private, 'base64'),
},
akPublicDer: raw.akPublicDer ? Buffer.from(raw.akPublicDer, 'base64') : undefined,
};
}
console.log('quote-verify: OK');
async function resolveAkPublicDer(akBlob, fromBlob, explicitPath) {
if (explicitPath) {
return readFileSync(resolve(explicitPath));
}
if (fromBlob?.length) {
return fromBlob;
}
const native = require(join(nativeRoot, 'native.cjs'));
if (typeof native.akPublicDerFromAkBlob !== 'function') {
throw new Error(
'akPublicDer missing from blob JSON; rebuild native or pass --ak-public-der',
);
}
return native.akPublicDerFromAkBlob(akBlob);
}
async function main() {
const args = process.argv.slice(2);
if (args.includes('-h') || args.includes('--help')) {
usage();
}
const qualifyingData = createHash('sha256').update('node-tpm2-repro').digest();
const blobPath = flagValue(args, '--in');
const akPublicDerPath = flagValue(args, '--ak-public-der');
let akBlob;
let akPublicDer;
if (blobPath) {
const loaded = loadBlobFile(resolve(blobPath));
akBlob = loaded.akBlob;
akPublicDer = await resolveAkPublicDer(akBlob, loaded.akPublicDer, akPublicDerPath);
console.log(` loaded AK blob from ${resolve(blobPath)}`);
} else {
({ akPublicDer, akBlob } = await Tpm.provisionAk());
}
const quote = await Tpm.quote({
akBlob,
pcrSelection: [0, 7],
qualifyingData,
bank: 'sha256',
});
const key = tpmPublicKeyFromDer(akPublicDer);
const ok = verifyAttestationSignature(akPublicDer, quote.message, quote.signature, {
sigScheme: quote.sigScheme,
hashAlg: quote.hashAlg,
});
console.log({
keyType: key.asymmetricKeyType,
sigScheme: quote.sigScheme,
hashAlg: quote.hashAlg,
akPublicDerLen: akPublicDer.length,
messageLen: quote.message.length,
sigLen: quote.signature.length,
sigHexPrefix: quote.signature.subarray(0, 8).toString('hex'),
verify: ok,
});
if (!ok) {
console.error('FAIL: signature did not verify');
process.exit(1);
}
console.log('quote-verify: OK');
}
main().catch((err) => {
console.error('FAIL:', err.message ?? err);
if (err.code) console.error(' code:', err.code);
if (err.suggestion) console.error(' suggestion:', err.suggestion);
process.exit(1);
});

@@ -42,3 +42,3 @@ #!/usr/bin/env node

function saveBlob(path, akBlob) {
function saveBlob(path, akBlob, akPublicDer) {
mkdirSync(dirname(resolve(path)), { recursive: true });

@@ -51,2 +51,3 @@ writeFileSync(

private: akBlob.private.toString('base64'),
akPublicDer: akPublicDer.toString('base64'),
},

@@ -74,2 +75,6 @@ null,

function formatQuotePass(quote) {
return `PASS Tpm.quote() message=${quote.message.length}B signature=${quote.signature.length}B sigScheme=${quote.sigScheme} hashAlg=${quote.hashAlg}`;
}
async function assertAvailable() {

@@ -103,5 +108,3 @@ const ok = await Tpm.isAvailable();

}
console.log(
`PASS Tpm.quote() message=${quote.message.length}B signature=${quote.signature.length}B`,
);
console.log(formatQuotePass(quote));
console.log('\nsmoke-test: runtime OK');

@@ -131,3 +134,3 @@ }

}
saveBlob(out, akBlob);
saveBlob(out, akBlob, akPublicDer);
console.log(`PASS Tpm.provisionAk(machine) keyName=${keyName} SPKI=${akPublicDer.length}B`);

@@ -137,2 +140,3 @@ console.log(` wrote ${out}`);

console.log(` node node_modules/node-tpm2/examples/smoke-test.mjs quote --in ${out}`);
console.log(` node node_modules/node-tpm2/examples/quote-verify.mjs --in ${out}`);
}

@@ -156,5 +160,3 @@

});
console.log(
`PASS Tpm.quote() message=${quote.message.length}B signature=${quote.signature.length}B`,
);
console.log(formatQuotePass(quote));
console.log('\nsmoke-test: quote OK');

@@ -161,0 +163,0 @@ }

+157
-156

@@ -80,6 +80,6 @@ // prettier-ignore

const bindingPackageVersion = require('node-tpm2-android-arm64/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -89,6 +89,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -98,4 +98,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -115,6 +115,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-android-arm-eabi/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -124,6 +124,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -133,4 +133,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -155,6 +155,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-win32-x64-gnu/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -164,6 +164,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -173,4 +173,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -190,6 +190,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-windows-x64-msvc/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -199,6 +199,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -208,4 +208,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -226,6 +226,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-win32-ia32-msvc/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -235,6 +235,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -244,4 +244,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -261,6 +261,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-windows-arm64-msvc/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -270,6 +270,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -279,4 +279,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -299,6 +299,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-darwin-universal/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -308,6 +308,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -317,4 +317,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -334,6 +334,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-darwin-x64/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -343,6 +343,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -352,4 +352,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -369,6 +369,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-darwin-arm64/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -378,6 +378,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -387,4 +387,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -408,6 +408,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-freebsd-x64/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -417,6 +417,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -426,4 +426,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -443,6 +443,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-freebsd-arm64/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -452,6 +452,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -461,4 +461,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -483,6 +483,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-linux-x64-musl/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -492,6 +492,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -501,4 +501,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -518,6 +518,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-linux-x64-gnu/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -527,6 +527,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -536,4 +536,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -555,6 +555,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-linux-arm64-musl/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -564,6 +564,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -573,4 +573,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -590,6 +590,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-linux-arm64-gnu/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -599,6 +599,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -608,4 +608,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -627,6 +627,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-linux-arm-musleabihf/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -636,6 +636,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -645,4 +645,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -662,6 +662,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-linux-arm-gnueabihf/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -671,6 +671,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -680,4 +680,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -699,6 +699,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-linux-loong64-musl/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -708,6 +708,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -717,4 +717,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -734,6 +734,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-linux-loong64-gnu/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -743,6 +743,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -752,4 +752,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -771,6 +771,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-linux-riscv64-musl/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -780,6 +780,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -789,4 +789,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -806,6 +806,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-linux-riscv64-gnu/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -815,6 +815,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -824,4 +824,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -842,6 +842,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-linux-ppc64-gnu/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -851,6 +851,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -860,4 +860,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -877,6 +877,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-linux-s390x-gnu/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -886,6 +886,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -895,4 +895,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -916,6 +916,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-openharmony-arm64/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -925,6 +925,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -934,4 +934,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -951,6 +951,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-openharmony-x64/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -960,6 +960,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -969,4 +969,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -986,6 +986,6 @@ return binding

const bindingPackageVersion = require('node-tpm2-openharmony-arm/package.json').version
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -995,6 +995,6 @@ )

}
if (bindingPackageVersion !== '0.1.0') {
if (bindingPackageVersion !== '0.1.1') {
if (typeof process !== 'undefined' && process.emitWarning) {
process.emitWarning(
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.0; run npm install or npm run build`,
`[node-tpm2] optional binding version ${bindingPackageVersion} !== 0.1.1; run npm install or npm run build`,
{ type: 'node-tpm2', code: 'NATIVE_BINDING_VERSION' },

@@ -1004,4 +1004,4 @@ )

}
if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
if (bindingPackageVersion !== '0.1.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 0.1.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}

@@ -1085,2 +1085,3 @@ return binding

module.exports.activateCredential = nativeBinding.activateCredential
module.exports.akPublicDerFromAkBlob = nativeBinding.akPublicDerFromAkBlob
module.exports.createKey = nativeBinding.createKey

@@ -1087,0 +1088,0 @@ module.exports.decryptKeyBlob = nativeBinding.decryptKeyBlob

@@ -16,2 +16,4 @@ /* auto-generated by NAPI-RS */

export declare function akPublicDerFromAkBlob(akBlob: AkBlobJs): Promise<Buffer>
export declare function createKey(opts?: KeyCreateOptionsJs | undefined | null): Promise<KeyCreateResultJs>

@@ -18,0 +20,0 @@

{
"name": "node-tpm2",
"version": "0.1.0",
"version": "0.1.1",
"description": "TPM 2.0 attestation for Node.js — prebuilt native bindings, PCR quotes, and fleet-ready Windows PCP keys. No tpm2-tools.",

@@ -97,12 +97,12 @@ "type": "module",

"optionalDependencies": {
"node-tpm2-windows-x64-msvc": "0.1.0",
"node-tpm2-windows-arm64-msvc": "0.1.0",
"node-tpm2-linux-x64-gnu": "0.1.0",
"node-tpm2-linux-arm64-gnu": "0.1.0",
"node-tpm2-linux-x64-musl": "0.1.0",
"node-tpm2-linux-arm64-musl": "0.1.0",
"node-tpm2-darwin-arm64": "0.1.0",
"node-tpm2-win32-x64-msvc": "0.1.0",
"node-tpm2-win32-arm64-msvc": "0.1.0"
"node-tpm2-windows-x64-msvc": "0.1.1",
"node-tpm2-windows-arm64-msvc": "0.1.1",
"node-tpm2-linux-x64-gnu": "0.1.1",
"node-tpm2-linux-arm64-gnu": "0.1.1",
"node-tpm2-linux-x64-musl": "0.1.1",
"node-tpm2-linux-arm64-musl": "0.1.1",
"node-tpm2-darwin-arm64": "0.1.1",
"node-tpm2-win32-x64-msvc": "0.1.1",
"node-tpm2-win32-arm64-msvc": "0.1.1"
}
}