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

Function car25519

vmm/src/x25519.js:126–134  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

124 r[i] = a[i] | 0;
125 }
126 function car25519(o) {
127 var i, v, c = 1;
128 for (i = 0; i < 16; i++) {
129 v = o[i] + c + 65535;
130 c = Math.floor(v / 65536);
131 o[i] = v - c * 65536;
132 }
133 o[0] += c - 1 + 37 * (c - 1);
134 }
135 function sel25519(p, q, b) {
136 var t, c = ~(b - 1);
137 for (var i = 0; i < 16; i++) {

Callers 1

pack25519Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected