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

Function reduce

vmm/src/x25519.js:1319–1326  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

1317 }
1318 }
1319 function reduce(r) {
1320 var x = new Float64Array(64), i;
1321 for (i = 0; i < 64; i++)
1322 x[i] = r[i];
1323 for (i = 0; i < 64; i++)
1324 r[i] = 0;
1325 modL(r, x);
1326 }
1327 // Like crypto_sign, but uses secret key directly in hash.
1328 function crypto_sign_direct(sm, m, n, sk) {
1329 var h = new Uint8Array(64), r = new Uint8Array(64);

Callers 3

crypto_sign_directFunction · 0.70
crypto_sign_direct_rndFunction · 0.70
crypto_sign_openFunction · 0.70

Calls 1

modLFunction · 0.70

Tested by

no test coverage detected