Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/3nsoft/ecma-nacl
/ functions
Functions
458 in github.com/3nsoft/ecma-nacl
⨍
Functions
458
◇
Types & classes
25
↓ 76 callers
Function
g
(a)
src/tests/ext-libs/js-scrypt.js:4
↓ 58 callers
Function
square
(r: fe25519, x: fe25519, arrFactory: Factory)
src/lib/signing/fe25519.ts:272
↓ 53 callers
Method
recycle
* This puts given arrays into the pool (note: it does not zero elements). * Use this function for those arrays that shall be reused, due to having
src/lib/util/arrays.ts:129
↓ 50 callers
Method
getUint32Array
* This either creates new, or gets a spare array from the pool. * Newly created array is not put into pool, because it is given to someone * for u
src/lib/util/arrays.ts:117
↓ 46 callers
Function
bytesEqual
( a: Uint8Array|Uint32Array, b: Uint8Array|Uint32Array )
src/tests/libs-for-tests/bytes-equal.ts:8
↓ 42 callers
Function
square
* Analog of square in crypto_scalarmult/curve25519/ref/smult.c * @param out is Uint32Array, 32 items long. * @param a is Uint32Array, 32 items long.
src/lib/boxes/scalarmult.ts:159
↓ 38 callers
Method
wipeRecycled
* This wipes (sets to zeros) all arrays that are located in pools
src/lib/util/arrays.ts:134
↓ 37 callers
Method
getUint8Array
* This either creates new, or gets a spare array from the pool. * Newly created array is not put into pool, because it is given to someone * for u
src/lib/util/arrays.ts:107
↓ 37 callers
Function
makeFactory
()
src/lib/util/arrays.ts:151
↓ 24 callers
Function
getRandom
(numOfBytes: number)
src/tests/libs-for-tests/test-utils.ts:22
↓ 23 callers
Function
mul
( r: fe25519, x: fe25519, y: fe25519, arrFactory: Factory )
src/lib/signing/fe25519.ts:245
↓ 23 callers
Method
open
* @param c is a byte array with cipher, formatted with nonce. * @return decrypted bytes.
src/lib/boxes/secret_box.ts:219
↓ 22 callers
Function
make_fe25519
(arrFactory: Factory)
src/lib/signing/fe25519.ts:20
↓ 21 callers
Function
compareVectors
(x, y)
src/lib/ecma-nacl.ts:38
↓ 20 callers
Function
F
(a, b, c, d)
src/tests/ext-libs/js-scrypt.js:242
↓ 20 callers
Function
w
(a, b)
src/tests/ext-libs/js-scrypt.js:139
↓ 18 callers
Method
pack
* This encrypts given bytes using internally held nonce, which is * advanced for every packing operation, ensuring that every call will * have a d
src/lib/boxes/secret_box.ts:195
↓ 17 callers
Function
mult
* Analog of mult in crypto_scalarmult/curve25519/ref/smult.c * @param out is Uint32Array, 32 items long. * @param a is Uint32Array, 32 items long.
src/lib/boxes/scalarmult.ts:108
↓ 17 callers
Method
update
* This absorbs bytes as they stream in, hashing even blocks.
src/lib/hash/sha512.ts:404
↓ 16 callers
Function
F
* Analog of macro F in crypto_hashblocks/sha512/inplace/blocks.c
src/lib/hash/sha512.ts:197
↓ 16 callers
Function
M
* Analog of macro M in crypto_hashblocks/sha512/inplace/blocks.c
src/lib/hash/sha512.ts:161
↓ 16 callers
Method
wipe
* This zeros all elements of given arrays, or given array views. * Use this function on things that needs secure cleanup, but should not be * recy
src/lib/util/arrays.ts:148
↓ 15 callers
Function
ad
(a)
src/tests/ext-libs/js-scrypt.js:9428
↓ 15 callers
Function
asciiStrToUint8Array
(str: string)
src/tests/libs-for-tests/test-utils.ts:26
↓ 15 callers
Function
p1p1_to_p3
* Analog of p1p1_to_p3 in crypto_sign/ed25519/ref/ge25519.c
src/lib/signing/ge25519.ts:190
↓ 13 callers
Function
transfer
(...arrs: Uint8Array[])
src/tests/node-worker-threads/nacl-in-worker.ts:34
↓ 12 callers
Function
bL
(a)
src/tests/ext-libs/js-scrypt.js:3278
↓ 12 callers
Function
c
(a)
src/tests/ext-libs/js-scrypt.js:981
↓ 12 callers
Function
wipe
(...arrays: (Uint8Array|Uint32Array)[])
src/lib/util/arrays.ts:243
↓ 11 callers
Function
addInto
* This adds 64 bit integer from x into s.
src/lib/hash/sha512.ts:27
↓ 11 callers
Function
add_p1p1
* Analog of add_p1p1 in crypto_sign/ed25519/ref/ge25519.c
src/lib/signing/ge25519.ts:240
↓ 10 callers
Function
ROTRandXorInto
* Analog of macro ROTR in crypto_hashblocks/sha512/inplace/blocks.c
src/lib/hash/sha512.ts:76
↓ 9 callers
Function
S
()
src/tests/ext-libs/js-scrypt.js:566
↓ 9 callers
Function
bo
(b, c, d)
src/tests/ext-libs/js-scrypt.js:2056
↓ 9 callers
Function
cK
(b, d, e)
src/tests/ext-libs/js-scrypt.js:8500
↓ 8 callers
Function
J
(a, b, c)
src/tests/ext-libs/js-scrypt.js:350
↓ 8 callers
Function
bz
(a, b, d)
src/tests/ext-libs/js-scrypt.js:2468
↓ 8 callers
Function
cN
(a, b, c, d)
src/tests/ext-libs/js-scrypt.js:8566
↓ 8 callers
Function
cO
(a, b, c, d)
src/tests/ext-libs/js-scrypt.js:8575
↓ 8 callers
Method
digest
* This method tells a hasher that there are no more bytes to hash, * and that a final hash should be produced. * This also forgets all of hasher's
src/lib/hash/sha512.ts:413
↓ 7 callers
Function
M
(a)
src/tests/ext-libs/js-scrypt.js:431
↓ 7 callers
Function
Yc
()
src/tests/ext-libs/js-scrypt.js:9421
↓ 7 callers
Function
aa
()
src/tests/ext-libs/js-scrypt.js:8
↓ 7 callers
Function
bM
(a)
src/tests/ext-libs/js-scrypt.js:4928
↓ 7 callers
Function
blkcpy
* Analog of blkcpy in lib/crypto/crypto_scrypt-ref.c
src/lib/scrypt/scrypt.ts:19
↓ 7 callers
Function
cx
(a, b)
src/tests/ext-libs/js-scrypt.js:8141
↓ 7 callers
Function
equal
* Analog of equal in crypto_sign/ed25519/ref/ge25519.c
src/lib/signing/ge25519.ts:308
↓ 6 callers
Function
O
(a, b)
src/tests/ext-libs/js-scrypt.js:822
↓ 6 callers
Function
Va
(a)
src/tests/ext-libs/js-scrypt.js:321
↓ 6 callers
Function
ac
(a)
src/tests/ext-libs/js-scrypt.js:851
↓ 6 callers
Function
b
()
src/tests/ext-libs/js-scrypt.js:10053
↓ 6 callers
Function
cS
(b)
src/tests/ext-libs/js-scrypt.js:8618
↓ 6 callers
Function
calc_dhshared_key
( pk: Uint8Array, sk: Uint8Array, arrFactory?: Factory )
src/lib/boxes/box.ts:57
↓ 6 callers
Method
destroy
* This method securely wipes internal state, and drops resources, so that * memory can be GC-ed.
src/lib/hash/sha512.ts:419
↓ 6 callers
Function
loadLEU64
(x: Uint8Array, i: number)
src/lib/util/nonce.ts:44
↓ 6 callers
Function
zb
(a, b)
src/tests/ext-libs/js-scrypt.js:455
↓ 5 callers
Function
G
* Analog of macro G in crypto_hashblocks/sha512/inplace/blocks.c
src/lib/hash/sha512.ts:252
↓ 5 callers
Function
SHA256_Update
( ctx: SHA256_CTX, m: Uint8Array, mi: number, mlen: number )
src/lib/scrypt/sha256.ts:237
↓ 5 callers
Function
add
* Analog of add in crypto_scalarmult/curve25519/ref/smult.c * @param out is Uint32Array, 32 items long. * @param a is Uint32Array, 32 items long. *
src/lib/boxes/scalarmult.ts:16
↓ 5 callers
Function
b9
(a, b)
src/tests/ext-libs/js-scrypt.js:6726
↓ 5 callers
Function
cA
(b, d)
src/tests/ext-libs/js-scrypt.js:8190
↓ 5 callers
Function
cL
(b, d, e)
src/tests/ext-libs/js-scrypt.js:8529
↓ 5 callers
Function
crypto_hashblocks
* Analog of crypto_hashblocks in crypto_hashblocks/sha512/inplace/blocks.c
src/lib/hash/sha512.ts:274
↓ 5 callers
Function
dbl_p1p1
* Analog of dbl_p1p1 in crypto_sign/ed25519/ref/ge25519.c * See http://www.hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html#doubling-dbl-2008-h
src/lib/signing/ge25519.ts:271
↓ 5 callers
Function
itAsync
( expectation: string, assertion?: () => Promise<void>, timeout?: number, setup?: { isUp: boolean; } )
src/tests/libs-for-tests/async-jasmine.ts:8
↓ 5 callers
Function
make_copy_fe25519
(x: fe25519, arrFactory: Factory)
src/lib/signing/fe25519.ts:24
↓ 5 callers
Function
wa
(a)
src/tests/ext-libs/js-scrypt.js:10123
↓ 4 callers
Function
Ab
(a, b, c)
src/tests/ext-libs/js-scrypt.js:459
↓ 4 callers
Function
Bb
(a, b)
src/tests/ext-libs/js-scrypt.js:462
↓ 4 callers
Function
Db
(a, b)
src/tests/ext-libs/js-scrypt.js:474
↓ 4 callers
Function
EXPAND
* Analog of macro EXPAND in crypto_hashblocks/sha512/inplace/blocks.c
src/lib/hash/sha512.ts:175
↓ 4 callers
Function
Gb
(a, b)
src/tests/ext-libs/js-scrypt.js:861
↓ 4 callers
Function
Sb
(a, b)
src/tests/ext-libs/js-scrypt.js:793
↓ 4 callers
Function
bS
(a)
src/tests/ext-libs/js-scrypt.js:5678
↓ 4 callers
Function
cX
(a, b, c, d)
src/tests/ext-libs/js-scrypt.js:8692
↓ 4 callers
Function
c_
(a, b, d, e, f)
src/tests/ext-libs/js-scrypt.js:8726
↓ 4 callers
Function
callbackWithTimeout
( action: () => Promise<void>, throwIfErr: boolean, timeout: number|undefined, actionType: string )
src/tests/libs-for-tests/async-jasmine.ts:105
↓ 4 callers
Function
ci
(a)
src/tests/ext-libs/js-scrypt.js:7308
↓ 4 callers
Function
cmov_aff
* Analog of add_p1p1 in crypto_sign/ed25519/ref/ge25519.c * Constant-time version of: if(b) r = p
src/lib/signing/ge25519.ts:300
↓ 4 callers
Function
crypto_hashblocks
* Analog of SHA256_Transform in lib/crypto/sha256.h * with all C macros expanded.
src/lib/scrypt/sha256.ts:39
↓ 4 callers
Function
e
(a, b)
src/tests/ext-libs/js-scrypt.js:155
↓ 4 callers
Function
f
()
src/tests/ext-libs/js-scrypt.js:1647
↓ 4 callers
Function
fe25519_freeze
* Analog of fe25519_freeze in crypto_sign/ed25519/ref/fe25519.c * reduction modulo 2^255-19
src/lib/signing/fe25519.ts:104
↓ 4 callers
Function
progressCB
(n: number)
src/tests/node-worker-threads/nacl-in-worker.ts:168
↓ 4 callers
Function
sub
* Analog of sub in crypto_scalarmult/curve25519/ref/smult.c * @param out is Uint32Array, 32 items long. * @param a is Uint32Array, 32 items long. *
src/lib/boxes/scalarmult.ts:35
↓ 4 callers
Function
vb
(a, b, c)
src/tests/ext-libs/js-scrypt.js:445
↓ 3 callers
Function
HMAC_SHA256_Update
* Analog of HMAC_SHA256_Update in lib/crypto/sha256.c * Add bytes to the HMAC-SHA256 operation.
src/lib/scrypt/sha256.ts:368
↓ 3 callers
Function
Ib
(a, b, c, d, e)
src/tests/ext-libs/js-scrypt.js:531
↓ 3 callers
Function
Ic
(a)
src/tests/ext-libs/js-scrypt.js:1462
↓ 3 callers
Function
Jb
(a, b)
src/tests/ext-libs/js-scrypt.js:546
↓ 3 callers
Function
SHA256_Final
(h: Uint8Array, ctx: SHA256_CTX)
src/lib/scrypt/sha256.ts:266
↓ 3 callers
Function
SHA256_Init
(ctx: SHA256_CTX)
src/lib/scrypt/sha256.ts:231
↓ 3 callers
Function
add
* Analog of add in crypto_onetimeauth/poly1305/ref/auth.c * @param h is array of 17 uint32's. * @param c is array of 17 uint32's.
src/lib/boxes/onetimeauth.ts:16
↓ 3 callers
Function
bD
(a, b)
src/tests/ext-libs/js-scrypt.js:3092
↓ 3 callers
Function
bH
(a, b, c)
src/tests/ext-libs/js-scrypt.js:3182
↓ 3 callers
Function
bQ
(a, b)
src/tests/ext-libs/js-scrypt.js:5573
↓ 3 callers
Function
barrett_reduce
* Analog of barrett_reduce in crypto_sign/ed25519/ref/sc25519.c * Reduce coefficients of x before calling barrett_reduce
src/lib/signing/sc25519.ts:87
↓ 3 callers
Function
bt
(a)
src/tests/ext-libs/js-scrypt.js:2112
↓ 3 callers
Function
cM
(b)
src/tests/ext-libs/js-scrypt.js:8557
↓ 3 callers
Function
callbackFor
( assertion: () => Promise<void>, setup: { isUp: boolean; }|undefined )
src/tests/libs-for-tests/async-jasmine.ts:19
next →
1–100 of 458, ranked by callers