MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / verifyMac

Function verifyMac

kms/verifyMac.js:53–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 );
52
53 async function verifyMac() {
54 // Verify the data with Cloud KMS
55 const [verifyResponse] = await client.macVerify({
56 name: versionName,
57 data: data,
58 mac: signature,
59 });
60
61 console.log(`Verified: ${verifyResponse.success}`);
62 return verifyResponse;
63 }
64
65 return verifyMac();
66 // [END kms_verify_mac]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected