@ivujs/i-utils 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -42
- package/dist/cjs/ID-card/index.cjs +21 -13
- package/dist/cjs/array/index.cjs +40 -34
- package/dist/cjs/clipboard/index.cjs +14 -10
- package/dist/cjs/color/index.cjs +73 -59
- package/dist/cjs/cookie/index.cjs +16 -13
- package/dist/cjs/crypto/base64/base64.cjs +398 -206
- package/dist/cjs/crypto/base64/index.cjs +58 -35
- package/dist/cjs/crypto/md5/index.cjs +33 -8
- package/dist/cjs/crypto/md5/md5.cjs +298 -844
- package/dist/cjs/crypto/sha256/index.cjs +95 -0
- package/dist/cjs/crypto/sha256/sha256.cjs +557 -0
- package/dist/cjs/crypto/sm3/index.cjs +27 -0
- package/dist/cjs/crypto/sm3/sm3.cjs +200 -0
- package/dist/cjs/crypto/sm4/index.cjs +101 -0
- package/dist/cjs/crypto/sm4/sm4.cjs +498 -0
- package/dist/cjs/date/index.cjs +379 -335
- package/dist/cjs/desensitized/index.cjs +21 -18
- package/dist/cjs/device/index.cjs +33 -30
- package/dist/cjs/dom/index.cjs +26 -23
- package/dist/cjs/file/index.cjs +51 -41
- package/dist/cjs/function/index.cjs +22 -19
- package/dist/cjs/id/index.cjs +6 -2
- package/dist/cjs/index.cjs +108 -127
- package/dist/cjs/keycode/index.cjs +9 -12
- package/dist/cjs/math/index.cjs +113 -81
- package/dist/cjs/number/index.cjs +10 -7
- package/dist/cjs/object/index.cjs +77 -30
- package/dist/cjs/pagination/index.cjs +25 -10
- package/dist/cjs/random/index.cjs +8 -5
- package/dist/cjs/regexp/index.cjs +23 -20
- package/dist/cjs/storage/index.cjs +4 -1
- package/dist/cjs/storage/localStorage.cjs +5 -5
- package/dist/cjs/storage/sessionStorage.cjs +6 -6
- package/dist/cjs/string/index.cjs +66 -63
- package/dist/cjs/url/index.cjs +83 -80
- package/dist/cjs/validate/index.cjs +122 -106
- package/dist/es/ID-card/index.d.ts +19 -14
- package/dist/es/ID-card/index.mjs +22 -14
- package/dist/es/array/index.d.ts +56 -50
- package/dist/es/array/index.mjs +40 -34
- package/dist/es/clipboard/index.d.ts +10 -7
- package/dist/es/clipboard/index.mjs +14 -10
- package/dist/es/color/index.d.ts +28 -25
- package/dist/es/color/index.mjs +73 -59
- package/dist/es/constants/date.d.ts +4 -174
- package/dist/es/constants/id-card.d.ts +4 -43
- package/dist/es/constants/index.d.ts +11 -7
- package/dist/es/constants/keycode.d.ts +1 -103
- package/dist/es/constants/lang.d.ts +4 -4
- package/dist/es/constants/math.d.ts +4 -4
- package/dist/es/constants/regexp.d.ts +4 -24
- package/dist/es/constants/sort.d.ts +4 -5
- package/dist/es/cookie/index.d.ts +13 -13
- package/dist/es/cookie/index.mjs +16 -13
- package/dist/es/crypto/base64/base64.d.ts +8 -5
- package/dist/es/crypto/base64/base64.mjs +393 -204
- package/dist/es/crypto/base64/index.d.ts +41 -24
- package/dist/es/crypto/base64/index.mjs +53 -32
- package/dist/es/crypto/index.d.ts +8 -8
- package/dist/es/crypto/md5/index.d.ts +20 -7
- package/dist/es/crypto/md5/index.mjs +32 -9
- package/dist/es/crypto/md5/md5.d.ts +9 -142
- package/dist/es/crypto/md5/md5.mjs +299 -844
- package/dist/es/crypto/sha256/index.d.ts +52 -0
- package/dist/es/crypto/sha256/index.mjs +86 -0
- package/dist/es/crypto/sha256/sha256.d.ts +82 -0
- package/dist/es/crypto/sha256/sha256.mjs +548 -0
- package/dist/es/crypto/sm3/index.d.ts +13 -0
- package/dist/es/crypto/sm3/index.mjs +24 -0
- package/dist/es/crypto/sm3/sm3.d.ts +3 -0
- package/dist/es/crypto/sm3/sm3.mjs +197 -0
- package/dist/es/crypto/sm4/index.d.ts +56 -0
- package/dist/es/crypto/sm4/index.mjs +95 -0
- package/dist/es/crypto/sm4/sm4.d.ts +48 -0
- package/dist/es/crypto/sm4/sm4.mjs +490 -0
- package/dist/es/date/index.d.ts +236 -175
- package/dist/es/date/index.mjs +378 -335
- package/dist/es/desensitized/index.d.ts +26 -23
- package/dist/es/desensitized/index.mjs +21 -18
- package/dist/es/device/index.d.ts +31 -25
- package/dist/es/device/index.mjs +33 -30
- package/dist/es/dom/index.d.ts +32 -29
- package/dist/es/dom/index.mjs +26 -23
- package/dist/es/file/index.d.ts +30 -30
- package/dist/es/file/index.mjs +51 -41
- package/dist/es/function/index.d.ts +10 -7
- package/dist/es/function/index.mjs +22 -19
- package/dist/es/id/index.d.ts +3 -0
- package/dist/es/id/index.mjs +6 -2
- package/dist/es/index.d.ts +24 -25
- package/dist/es/index.mjs +6 -23
- package/dist/es/keycode/index.d.ts +6 -6
- package/dist/es/keycode/index.mjs +9 -12
- package/dist/es/math/index.d.ts +37 -37
- package/dist/es/math/index.mjs +113 -81
- package/dist/es/number/index.d.ts +7 -7
- package/dist/es/number/index.mjs +10 -7
- package/dist/es/object/index.d.ts +20 -19
- package/dist/es/object/index.mjs +77 -30
- package/dist/es/pagination/index.d.ts +39 -6
- package/dist/es/pagination/index.mjs +25 -10
- package/dist/es/random/index.d.ts +10 -7
- package/dist/es/random/index.mjs +8 -5
- package/dist/es/regexp/index.d.ts +30 -30
- package/dist/es/regexp/index.mjs +23 -20
- package/dist/es/storage/index.d.ts +10 -4
- package/dist/es/storage/index.mjs +4 -1
- package/dist/es/storage/localStorage.d.ts +9 -9
- package/dist/es/storage/localStorage.mjs +5 -5
- package/dist/es/storage/sessionStorage.d.ts +9 -9
- package/dist/es/storage/sessionStorage.mjs +6 -6
- package/dist/es/string/index.d.ts +62 -59
- package/dist/es/string/index.mjs +66 -63
- package/dist/es/url/index.d.ts +65 -65
- package/dist/es/url/index.mjs +83 -80
- package/dist/es/validate/index.d.ts +83 -80
- package/dist/es/validate/index.mjs +122 -106
- package/dist/index.d.ts +2355 -2803
- package/dist/lib/index.full.umd.js +3297 -9474
- package/dist/lib/index.full.umd.min.js +2 -64
- package/dist/lib/index.full.umd.min.js.map +1 -1
- package/dist/resolver/auto-imports.cjs +38 -31
- package/dist/resolver/auto-imports.mjs +38 -31
- package/dist/resolver/index.cjs +1 -2
- package/dist/resolver/index.d.ts +1 -1
- package/dist/resolver/index.mjs +1 -2
- package/package.json +96 -90
- package/dist/cjs/crypto/aes/aes.cjs +0 -480
- package/dist/cjs/crypto/aes/index.cjs +0 -27
- package/dist/cjs/crypto/base32/base32.cjs +0 -357
- package/dist/cjs/crypto/base32/index.cjs +0 -41
- package/dist/cjs/crypto/des/des.cjs +0 -257
- package/dist/cjs/crypto/des/index.cjs +0 -28
- package/dist/cjs/crypto/sha/sha1/index.cjs +0 -24
- package/dist/cjs/crypto/sha/sha1/sha1.cjs +0 -529
- package/dist/cjs/crypto/sha/sha256/index.cjs +0 -43
- package/dist/cjs/crypto/sha/sha256/sha256.cjs +0 -595
- package/dist/cjs/crypto/sha/sha3/index.cjs +0 -41
- package/dist/cjs/crypto/sha/sha3/sha3.cjs +0 -624
- package/dist/cjs/crypto/sha/sha512/index.cjs +0 -81
- package/dist/cjs/crypto/sha/sha512/sha512.cjs +0 -950
- package/dist/cjs/crypto/sm/lib/asn1.cjs +0 -149
- package/dist/cjs/crypto/sm/lib/ec.cjs +0 -315
- package/dist/cjs/crypto/sm/lib/jsbn.cjs +0 -1608
- package/dist/cjs/crypto/sm/lib/sm3.cjs +0 -158
- package/dist/cjs/crypto/sm/lib/utils.cjs +0 -170
- package/dist/cjs/crypto/sm/sm2/index.cjs +0 -112
- package/dist/cjs/crypto/sm/sm2/sm2.cjs +0 -231
- package/dist/cjs/crypto/sm/sm3/index.cjs +0 -15
- package/dist/cjs/crypto/sm/sm3/sm3.cjs +0 -93
- package/dist/cjs/crypto/sm/sm4/index.cjs +0 -27
- package/dist/cjs/crypto/sm/sm4/sm4.cjs +0 -327
- package/dist/cjs/crypto/tea/index.cjs +0 -25
- package/dist/cjs/crypto/tea/tea.cjs +0 -187
- package/dist/cjs/weapp/index.cjs +0 -142
- package/dist/es/crypto/aes/aes.d.ts +0 -156
- package/dist/es/crypto/aes/aes.mjs +0 -478
- package/dist/es/crypto/aes/index.d.ts +0 -16
- package/dist/es/crypto/aes/index.mjs +0 -24
- package/dist/es/crypto/base32/base32.d.ts +0 -3
- package/dist/es/crypto/base32/base32.mjs +0 -353
- package/dist/es/crypto/base32/index.d.ts +0 -24
- package/dist/es/crypto/base32/index.mjs +0 -36
- package/dist/es/crypto/des/des.d.ts +0 -52
- package/dist/es/crypto/des/des.mjs +0 -255
- package/dist/es/crypto/des/index.d.ts +0 -14
- package/dist/es/crypto/des/index.mjs +0 -25
- package/dist/es/crypto/sha/index.d.ts +0 -4
- package/dist/es/crypto/sha/sha1/index.d.ts +0 -13
- package/dist/es/crypto/sha/sha1/index.mjs +0 -21
- package/dist/es/crypto/sha/sha1/sha1.d.ts +0 -2
- package/dist/es/crypto/sha/sha1/sha1.mjs +0 -526
- package/dist/es/crypto/sha/sha256/index.d.ts +0 -26
- package/dist/es/crypto/sha/sha256/index.mjs +0 -38
- package/dist/es/crypto/sha/sha256/sha256.d.ts +0 -4
- package/dist/es/crypto/sha/sha256/sha256.mjs +0 -590
- package/dist/es/crypto/sha/sha3/index.d.ts +0 -24
- package/dist/es/crypto/sha/sha3/index.mjs +0 -36
- package/dist/es/crypto/sha/sha3/sha3.d.ts +0 -4
- package/dist/es/crypto/sha/sha3/sha3.mjs +0 -619
- package/dist/es/crypto/sha/sha512/index.d.ts +0 -52
- package/dist/es/crypto/sha/sha512/index.mjs +0 -72
- package/dist/es/crypto/sha/sha512/sha512.d.ts +0 -8
- package/dist/es/crypto/sha/sha512/sha512.mjs +0 -941
- package/dist/es/crypto/sm/index.d.ts +0 -3
- package/dist/es/crypto/sm/lib/asn1.d.ts +0 -12
- package/dist/es/crypto/sm/lib/asn1.mjs +0 -146
- package/dist/es/crypto/sm/lib/ec.d.ts +0 -126
- package/dist/es/crypto/sm/lib/ec.mjs +0 -312
- package/dist/es/crypto/sm/lib/jsbn.d.ts +0 -198
- package/dist/es/crypto/sm/lib/jsbn.mjs +0 -1605
- package/dist/es/crypto/sm/lib/sm3.d.ts +0 -5
- package/dist/es/crypto/sm/lib/sm3.mjs +0 -155
- package/dist/es/crypto/sm/lib/utils.d.ts +0 -53
- package/dist/es/crypto/sm/lib/utils.mjs +0 -158
- package/dist/es/crypto/sm/sm2/index.d.ts +0 -71
- package/dist/es/crypto/sm/sm2/index.mjs +0 -101
- package/dist/es/crypto/sm/sm2/sm2.d.ts +0 -34
- package/dist/es/crypto/sm/sm2/sm2.mjs +0 -220
- package/dist/es/crypto/sm/sm3/index.d.ts +0 -7
- package/dist/es/crypto/sm/sm3/index.mjs +0 -13
- package/dist/es/crypto/sm/sm3/sm3.d.ts +0 -1
- package/dist/es/crypto/sm/sm3/sm3.mjs +0 -91
- package/dist/es/crypto/sm/sm4/index.d.ts +0 -16
- package/dist/es/crypto/sm/sm4/index.mjs +0 -24
- package/dist/es/crypto/sm/sm4/sm4.d.ts +0 -2
- package/dist/es/crypto/sm/sm4/sm4.mjs +0 -324
- package/dist/es/crypto/tea/index.d.ts +0 -14
- package/dist/es/crypto/tea/index.mjs +0 -22
- package/dist/es/crypto/tea/tea.d.ts +0 -69
- package/dist/es/crypto/tea/tea.mjs +0 -185
- package/dist/es/weapp/index.d.ts +0 -57
- package/dist/es/weapp/index.mjs +0 -131
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
export function BigInteger(a: any, b: any, c: any): void;
|
|
2
|
-
export class BigInteger {
|
|
3
|
-
constructor(a: any, b: any, c: any);
|
|
4
|
-
am: typeof am2 | typeof am1 | typeof am3;
|
|
5
|
-
DB: number;
|
|
6
|
-
DM: number;
|
|
7
|
-
DV: number;
|
|
8
|
-
FV: number;
|
|
9
|
-
F1: number;
|
|
10
|
-
F2: number;
|
|
11
|
-
copyTo: typeof bnpCopyTo;
|
|
12
|
-
fromInt: typeof bnpFromInt;
|
|
13
|
-
fromString: typeof bnpFromString;
|
|
14
|
-
clamp: typeof bnpClamp;
|
|
15
|
-
dlShiftTo: typeof bnpDLShiftTo;
|
|
16
|
-
drShiftTo: typeof bnpDRShiftTo;
|
|
17
|
-
lShiftTo: typeof bnpLShiftTo;
|
|
18
|
-
rShiftTo: typeof bnpRShiftTo;
|
|
19
|
-
subTo: typeof bnpSubTo;
|
|
20
|
-
multiplyTo: typeof bnpMultiplyTo;
|
|
21
|
-
squareTo: typeof bnpSquareTo;
|
|
22
|
-
divRemTo: typeof bnpDivRemTo;
|
|
23
|
-
invDigit: typeof bnpInvDigit;
|
|
24
|
-
isEven: typeof bnpIsEven;
|
|
25
|
-
exp: typeof bnpExp;
|
|
26
|
-
toString: typeof bnToString;
|
|
27
|
-
negate: typeof bnNegate;
|
|
28
|
-
abs: typeof bnAbs;
|
|
29
|
-
compareTo: typeof bnCompareTo;
|
|
30
|
-
bitLength: typeof bnBitLength;
|
|
31
|
-
mod: typeof bnMod;
|
|
32
|
-
modPowInt: typeof bnModPowInt;
|
|
33
|
-
chunkSize: typeof bnpChunkSize;
|
|
34
|
-
toRadix: typeof bnpToRadix;
|
|
35
|
-
fromRadix: typeof bnpFromRadix;
|
|
36
|
-
fromNumber: typeof bnpFromNumber;
|
|
37
|
-
bitwiseTo: typeof bnpBitwiseTo;
|
|
38
|
-
changeBit: typeof bnpChangeBit;
|
|
39
|
-
addTo: typeof bnpAddTo;
|
|
40
|
-
dMultiply: typeof bnpDMultiply;
|
|
41
|
-
dAddOffset: typeof bnpDAddOffset;
|
|
42
|
-
multiplyLowerTo: typeof bnpMultiplyLowerTo;
|
|
43
|
-
multiplyUpperTo: typeof bnpMultiplyUpperTo;
|
|
44
|
-
modInt: typeof bnpModInt;
|
|
45
|
-
millerRabin: typeof bnpMillerRabin;
|
|
46
|
-
clone: typeof bnClone;
|
|
47
|
-
intValue: typeof bnIntValue;
|
|
48
|
-
byteValue: typeof bnByteValue;
|
|
49
|
-
shortValue: typeof bnShortValue;
|
|
50
|
-
signum: typeof bnSigNum;
|
|
51
|
-
toByteArray: typeof bnToByteArray;
|
|
52
|
-
equals: typeof bnEquals;
|
|
53
|
-
min: typeof bnMin;
|
|
54
|
-
max: typeof bnMax;
|
|
55
|
-
and: typeof bnAnd;
|
|
56
|
-
or: typeof bnOr;
|
|
57
|
-
xor: typeof bnXor;
|
|
58
|
-
andNot: typeof bnAndNot;
|
|
59
|
-
not: typeof bnNot;
|
|
60
|
-
shiftLeft: typeof bnShiftLeft;
|
|
61
|
-
shiftRight: typeof bnShiftRight;
|
|
62
|
-
getLowestSetBit: typeof bnGetLowestSetBit;
|
|
63
|
-
bitCount: typeof bnBitCount;
|
|
64
|
-
testBit: typeof bnTestBit;
|
|
65
|
-
setBit: typeof bnSetBit;
|
|
66
|
-
clearBit: typeof bnClearBit;
|
|
67
|
-
flipBit: typeof bnFlipBit;
|
|
68
|
-
add: typeof bnAdd;
|
|
69
|
-
subtract: typeof bnSubtract;
|
|
70
|
-
multiply: typeof bnMultiply;
|
|
71
|
-
divide: typeof bnDivide;
|
|
72
|
-
remainder: typeof bnRemainder;
|
|
73
|
-
divideAndRemainder: typeof bnDivideAndRemainder;
|
|
74
|
-
modPow: typeof bnModPow;
|
|
75
|
-
modInverse: typeof bnModInverse;
|
|
76
|
-
pow: typeof bnPow;
|
|
77
|
-
gcd: typeof bnGCD;
|
|
78
|
-
isProbablePrime: typeof bnIsProbablePrime;
|
|
79
|
-
square: typeof bnSquare;
|
|
80
|
-
Barrett: typeof Barrett;
|
|
81
|
-
}
|
|
82
|
-
export namespace BigInteger {
|
|
83
|
-
let ZERO: BigInteger;
|
|
84
|
-
let ONE: BigInteger;
|
|
85
|
-
}
|
|
86
|
-
export function SecureRandom(): void;
|
|
87
|
-
export class SecureRandom {
|
|
88
|
-
nextBytes: typeof rng_get_bytes;
|
|
89
|
-
}
|
|
90
|
-
declare function am2(i: any, x: any, w: any, j: any, c: any, n: any): any;
|
|
91
|
-
declare function am1(i: any, x: any, w: any, j: any, c: any, n: any): any;
|
|
92
|
-
declare function am3(i: any, x: any, w: any, j: any, c: any, n: any): any;
|
|
93
|
-
declare function bnpCopyTo(r: any): void;
|
|
94
|
-
declare function bnpFromInt(x: any): void;
|
|
95
|
-
declare class bnpFromInt {
|
|
96
|
-
constructor(x: any);
|
|
97
|
-
t: number;
|
|
98
|
-
s: number;
|
|
99
|
-
0: any;
|
|
100
|
-
}
|
|
101
|
-
declare function bnpFromString(s: any, b: any): void;
|
|
102
|
-
declare class bnpFromString {
|
|
103
|
-
constructor(s: any, b: any);
|
|
104
|
-
t: number | undefined;
|
|
105
|
-
s: number | undefined;
|
|
106
|
-
}
|
|
107
|
-
declare function bnpClamp(): void;
|
|
108
|
-
declare function bnpDLShiftTo(n: any, r: any): void;
|
|
109
|
-
declare function bnpDRShiftTo(n: any, r: any): void;
|
|
110
|
-
declare function bnpLShiftTo(n: any, r: any): void;
|
|
111
|
-
declare function bnpRShiftTo(n: any, r: any): void;
|
|
112
|
-
declare function bnpSubTo(a: any, r: any): void;
|
|
113
|
-
declare function bnpMultiplyTo(a: any, r: any): void;
|
|
114
|
-
declare function bnpSquareTo(r: any): void;
|
|
115
|
-
declare function bnpDivRemTo(m: any, q: any, r: any): void;
|
|
116
|
-
declare function bnpInvDigit(): number;
|
|
117
|
-
declare function bnpIsEven(): boolean;
|
|
118
|
-
declare function bnpExp(e: any, z: any): any;
|
|
119
|
-
declare function bnToString(b: any): any;
|
|
120
|
-
declare function bnNegate(): BigInteger;
|
|
121
|
-
declare function bnAbs(): any;
|
|
122
|
-
declare function bnCompareTo(a: any): number;
|
|
123
|
-
declare function bnBitLength(): number;
|
|
124
|
-
declare function bnMod(a: any): BigInteger;
|
|
125
|
-
declare function bnModPowInt(e: any, m: any): any;
|
|
126
|
-
declare function bnpChunkSize(r: any): number;
|
|
127
|
-
declare function bnpToRadix(b: any): string;
|
|
128
|
-
declare function bnpFromRadix(s: any, b: any): void;
|
|
129
|
-
declare function bnpFromNumber(a: any, b: any, c: any): void;
|
|
130
|
-
declare function bnpBitwiseTo(a: any, op: any, r: any): void;
|
|
131
|
-
declare function bnpChangeBit(n: any, op: any): BigInteger;
|
|
132
|
-
declare function bnpAddTo(a: any, r: any): void;
|
|
133
|
-
declare function bnpDMultiply(n: any): void;
|
|
134
|
-
declare class bnpDMultiply {
|
|
135
|
-
constructor(n: any);
|
|
136
|
-
}
|
|
137
|
-
declare function bnpDAddOffset(n: any, w: any): void;
|
|
138
|
-
declare class bnpDAddOffset {
|
|
139
|
-
constructor(n: any, w: any);
|
|
140
|
-
}
|
|
141
|
-
declare function bnpMultiplyLowerTo(a: any, n: any, r: any): void;
|
|
142
|
-
declare function bnpMultiplyUpperTo(a: any, n: any, r: any): void;
|
|
143
|
-
declare function bnpModInt(n: any): number;
|
|
144
|
-
declare function bnpMillerRabin(t: any): boolean;
|
|
145
|
-
declare function bnClone(): BigInteger;
|
|
146
|
-
declare function bnIntValue(): any;
|
|
147
|
-
declare function bnByteValue(): any;
|
|
148
|
-
declare function bnShortValue(): any;
|
|
149
|
-
declare function bnSigNum(): 0 | 1 | -1;
|
|
150
|
-
declare function bnToByteArray(): any[];
|
|
151
|
-
declare function bnEquals(a: any): boolean;
|
|
152
|
-
declare function bnMin(a: any): any;
|
|
153
|
-
declare function bnMax(a: any): any;
|
|
154
|
-
declare function bnAnd(a: any): BigInteger;
|
|
155
|
-
declare function bnOr(a: any): BigInteger;
|
|
156
|
-
declare function bnXor(a: any): BigInteger;
|
|
157
|
-
declare function bnAndNot(a: any): BigInteger;
|
|
158
|
-
declare function bnNot(): BigInteger;
|
|
159
|
-
declare function bnShiftLeft(n: any): BigInteger;
|
|
160
|
-
declare function bnShiftRight(n: any): BigInteger;
|
|
161
|
-
declare function bnGetLowestSetBit(): number;
|
|
162
|
-
declare function bnBitCount(): number;
|
|
163
|
-
declare function bnTestBit(n: any): boolean;
|
|
164
|
-
declare function bnSetBit(n: any): any;
|
|
165
|
-
declare function bnClearBit(n: any): any;
|
|
166
|
-
declare function bnFlipBit(n: any): any;
|
|
167
|
-
declare function bnAdd(a: any): BigInteger;
|
|
168
|
-
declare function bnSubtract(a: any): BigInteger;
|
|
169
|
-
declare function bnMultiply(a: any): BigInteger;
|
|
170
|
-
declare function bnDivide(a: any): BigInteger;
|
|
171
|
-
declare function bnRemainder(a: any): BigInteger;
|
|
172
|
-
declare function bnDivideAndRemainder(a: any): BigInteger[];
|
|
173
|
-
declare function bnModPow(e: any, m: any): any;
|
|
174
|
-
declare function bnModInverse(m: any): BigInteger;
|
|
175
|
-
declare function bnPow(e: any): any;
|
|
176
|
-
declare function bnGCD(a: any): any;
|
|
177
|
-
declare function bnIsProbablePrime(t: any): any;
|
|
178
|
-
declare function bnSquare(): BigInteger;
|
|
179
|
-
declare function Barrett(m: any): void;
|
|
180
|
-
declare class Barrett {
|
|
181
|
-
constructor(m: any);
|
|
182
|
-
r2: BigInteger;
|
|
183
|
-
q3: BigInteger;
|
|
184
|
-
mu: BigInteger;
|
|
185
|
-
m: any;
|
|
186
|
-
convert: typeof barrettConvert;
|
|
187
|
-
revert: typeof barrettRevert;
|
|
188
|
-
reduce: typeof barrettReduce;
|
|
189
|
-
mulTo: typeof barrettMulTo;
|
|
190
|
-
sqrTo: typeof barrettSqrTo;
|
|
191
|
-
}
|
|
192
|
-
declare function rng_get_bytes(ba: any): void;
|
|
193
|
-
declare function barrettConvert(x: any): any;
|
|
194
|
-
declare function barrettRevert(x: any): any;
|
|
195
|
-
declare function barrettReduce(x: any): void;
|
|
196
|
-
declare function barrettMulTo(x: any, y: any, r: any): void;
|
|
197
|
-
declare function barrettSqrTo(x: any, r: any): void;
|
|
198
|
-
export {};
|