juanelas
5256398e40
fixes #8
2020-09-22 23:40:00 +02:00
Juanra Dikal
a2da4b0c4b
Throw RangeError instead of returning NaN (which is not a bigint)
2020-05-29 17:33:07 +02:00
Juanra Dikal
0a12b744d8
removed bigint-mod-arith dependency to solve issues with webpack in Angular 9
2020-05-11 20:56:30 +02:00
juanelas
4d8592b365
fixed typo
2020-05-01 01:31:17 +02:00
juanelas
c246ef34f2
JSDoc throws. API is now sorted by function name
2020-04-21 10:06:04 +02:00
juanelas
d7d7b368b6
fixed readme
2020-04-21 02:57:30 +02:00
juanelas
04cad8250b
fixed browser tests
2020-04-21 02:41:32 +02:00
juanelas
2179954b1e
fixed doc
2020-04-21 01:33:41 +02:00
juanelas
b3a90aa6bc
more tests. Fixed some bugs. Added github actions
2020-04-21 00:50:53 +02:00
juanelas
5022ebef3e
fixed email in package.json. self.crypto
2020-04-08 19:15:03 +02:00
juanelas
0524f41a3f
Examples of code. If a webview doesn't support Web Workers, they are not used
2020-04-08 17:09:52 +02:00
juanelas
70a32d0286
better dependencies
2020-04-08 00:21:02 +02:00
juanelas
c89d507a64
randBitsSync
2020-04-07 19:46:42 +02:00
juanelas
7e792b5e2e
randBitsSync
2020-04-07 19:41:29 +02:00
juanelas
5c410d60c1
randBitsSync
2020-04-07 19:35:38 +02:00
juanelas
c52d54f66b
randBitsSync
2020-04-07 19:29:23 +02:00
juanelas
818c3b09f3
fixed bug in prime bitlength. Fixed dts
2020-04-07 19:26:26 +02:00
juanelas
31af1f7e8a
fixed API reference
2020-04-07 19:13:23 +02:00
juanelas
d2a21a818f
Now the bundle can be mangled. Multi-threaded uses all CPUs but 1. Readme improvements
2020-04-07 17:03:30 +02:00
juanelas
ed764d29be
slighty faster _isProbablyPrume. node_modules removed from git
2020-04-06 19:01:44 +02:00
juanelas
4758f28ef0
shorter but better readme
2020-04-06 14:17:24 +02:00
juanelas
6cfee0efca
fixed readme
2020-04-06 13:38:52 +02:00
juanelas
4e52ea75e6
JS Standard. Some fixes with the test. Better structure
2020-04-06 13:34:03 +02:00
juanelas
c29b520108
JS Standard. Some fixes with the test. Better structure
2020-04-06 13:17:22 +02:00
juanelas
d4ee54748b
fixed JS Doc and typescript definitions
2020-03-25 00:34:22 +01:00
Coffee Converter
155dd49434
slightly improves performance in randBits()
...
- only calculates (bitLength % 8) once
- uses const where possible
2020-03-24 16:01:09 -05:00
Coffee Converter
36d9786b3d
fixes bug in randBits()
...
- the bug was causing the whole first byte to be zeroed out when (bitLength % 8 === 0)
- added a check of the above condition before zeroing out the extra bits
2020-03-24 16:01:09 -05:00
juanelas
5d2e2a7fd0
TypeScript definitions. Browser module defaults to minified ES6
2020-03-03 09:36:04 +01:00
juanelas
be910483f6
better packing for npn. better structure
2020-03-02 23:16:05 +01:00
juanelas
bbdee4b5a5
Browser tests now use the current mocha/chai versions. Pkg description updated
2020-02-29 01:07:20 +01:00
juanelas
e0713c541e
fixed documentation
2019-12-20 17:07:32 +01:00
juanelas
b6129550e5
Fixed prime fn doc in README
2019-12-09 13:18:10 +01:00
juanelas
743b483072
Updated dependencies and fixed issue with default values in README
2019-12-09 13:14:47 +01:00
Juan Hernández Serrano
ace7d479ee
added sync version of prime
2019-10-09 14:56:11 +02:00
Juan Hernández Serrano
19dd8b6491
added sync version of prime
2019-10-09 14:17:03 +02:00
Juan Hernández Serrano
f44f44d74d
updated devDependencies. Fixed format
2019-07-20 10:45:02 +02:00
Juan Hernández Serrano
af1592bc7e
fomat issues
2019-07-20 10:12:58 +02:00
Aisse-258
b38087c9a9
Max(a,b) and Min(a,b) functions
2019-07-14 12:21:50 +03:00
Juan Hernández Serrano
9cdf125c6f
Slight modification of modPow(). Some non-important fixes
2019-05-29 17:44:18 +02:00
Juan Hernández Serrano
e2f9b26c84
Fixed some comments and the dev dependencies
2019-05-28 18:07:34 +02:00
Juan Hernández Serrano
29b2665097
some small fixes
2019-05-27 16:42:46 +02:00
Juan Hernández Serrano
9b9cedf794
Browser tests now don't require dev dependencies
2019-05-09 19:25:31 +02:00
Juan Hernández Serrano
29cb31c1fa
Fixed issue #1 - gcd works incorrect with 0. Some extra sanitizing
2019-05-09 09:39:12 +02:00
Juan Hernández Serrano
abf020f06e
also check if a number (not only a BigInt) is prime
2019-05-04 18:29:09 +02:00
Juan Hernández Serrano
1ffd1f949d
More tests. Fixed bug in modInv(a,n) when a was < 0
2019-05-04 18:08:30 +02:00
Juan Hernández Serrano
445c6ea913
(helpler) constants to the the top
2019-04-29 13:23:15 +02:00
Juan Hernández Serrano
42a0aba89a
bitLength() is also exported (it could be useful)
2019-04-29 12:34:20 +02:00
Juan Hernández Serrano
e572e9dba8
If it is not truly async then sync
2019-04-29 12:29:23 +02:00
juanelas
3f571c9dd6
If it is not truly async then is sync
2019-04-26 15:03:53 +02:00
Juan Hernández Serrano
b2d2c4e794
typo
2019-04-24 13:17:29 +02:00