MCPcopy Create free account
hub / github.com/apache/cloudstack / u8ArrayToBigInt

Function u8ArrayToBigInt

systemvm/agent/noVNC/core/crypto/bigint.js:28–34  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

26}
27
28export function u8ArrayToBigInt(arr) {
29 let hex = '0x';
30 for (let i = 0; i < arr.length; i++) {
31 hex += arr[i].toString(16).padStart(2, '0');
32 }
33 return BigInt(hex);
34}

Callers 6

_generateKeyMethod · 0.90
deriveBitsMethod · 0.90
_generateKeyMethod · 0.90
_importKeyMethod · 0.90
encryptMethod · 0.90
decryptMethod · 0.90

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected