MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / expectSameSessionKeys

Function expectSameSessionKeys

cli/src/cache/driveCryptoCacheAdapter.test.ts:191–195  ·  view source on GitHub ↗
(a: SessionKey, b: SessionKey)

Source from the content-addressed store, hash-verified

189}
190
191function expectSameSessionKeys(a: SessionKey, b: SessionKey) {
192 expect(Buffer.from(a.data).equals(Buffer.from(b.data))).toBe(true);
193 expect(a.algorithm).toBe(b.algorithm);
194 expect(a.aeadAlgorithm).toBe(b.aeadAlgorithm);
195}

Callers 1

Calls 1

equalsMethod · 0.80

Tested by

no test coverage detected