MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / vn

Function vn

vmm/src/x25519.js:112–117  ·  view source on GitHub ↗
(x, xi, y, yi, n)

Source from the content-addressed store, hash-verified

110 x[i + 7] = l & 0xff;
111 }
112 function vn(x, xi, y, yi, n) {
113 var i, d = 0;
114 for (i = 0; i < n; i++)
115 d |= x[xi + i] ^ y[yi + i];
116 return (1 & ((d - 1) >>> 8)) - 1;
117 }
118 function crypto_verify_32(x, xi, y, yi) {
119 return vn(x, xi, y, yi, 32);
120 }

Callers 1

crypto_verify_32Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected