Compare commits

..

No commits in common. "eb02693c1fb81b4815c57969163e8ac0627564bf" and "e8837a07218974eb81fc7c15b92e70997efd21d0" have entirely different histories.

3 changed files with 10 additions and 34 deletions

View File

@ -1,11 +0,0 @@
kind: pipeline
name: default
pipeline:
build:
image: node
environment:
RASHA_TEST_LARGE_KEYS: 1
commands:
- npm install --ignore-scripts
- npm test

View File

@ -1,12 +1,10 @@
[Rasha.js](https://git.coolaj86.com/coolaj86/rasha.js) · [![Build Status](https://strong-emu-11.telebit.io/api/badges/jshaver/rasha.js/status.svg)](https://strong-emu-11.telebit.io/jshaver/rasha.js) [Rasha.js](https://git.coolaj86.com/coolaj86/rasha.js)
========= =========
Sponsored by [Root](https://therootcompany.com). Sponsored by [Root](https://therootcompany.com).
Built for [ACME.js](https://git.coolaj86.com/coolaj86/acme.js) Built for [ACME.js](https://git.coolaj86.com/coolaj86/acme.js)
and [Greenlock.js](https://git.coolaj86.com/coolaj86/greenlock.js) and [Greenlock.js](https://git.coolaj86.com/coolaj86/greenlock.js)
| ~550 lines of code | 3kb gzipped | 10kb minified | 18kb with comments | | ~550 lines of code | 3kb gzipped | 10kb minified | 18kb with comments |
RSA tools. Lightweight. Zero Dependencies. Universal compatibility. RSA tools. Lightweight. Zero Dependencies. Universal compatibility.
@ -18,7 +16,6 @@ RSA tools. Lightweight. Zero Dependencies. Universal compatibility.
* [ ] ECDSA * [ ] ECDSA
* **Need EC or ECDSA tools?** Check out [Eckles.js](https://git.coolaj86.com/coolaj86/eckles.js) * **Need EC or ECDSA tools?** Check out [Eckles.js](https://git.coolaj86.com/coolaj86/eckles.js)
## Generate RSA Key ## Generate RSA Key
Achieves the *fastest possible key generation* using node's native RSA bindings to OpenSSL, Achieves the *fastest possible key generation* using node's native RSA bindings to OpenSSL,

28
test.sh
View File

@ -137,30 +137,20 @@ echo ""
echo "" echo ""
echo "Re-running tests with random keys of varying sizes" echo "Re-running tests with random keys of varying sizes"
echo "" echo ""
rndkey 32 # minimum key size
# commented out sizes below 512, since they are below minimum size on some systems. rndkey 64
# rndkey 32 # minimum key size rndkey 128
# rndkey 64 rndkey 256
# rndkey 128
# rndkey 256
rndkey 512 rndkey 512
rndkey 768 rndkey 768
rndkey 1024 rndkey 1024
rndkey 2048 # first secure key size rndkey 2048 # first secure key size
#rndkey 3072
if [ ${RASHA_TEST_LARGE_KEYS} ]; then #rndkey 4096 # largest reasonable key size
rndkey 3072
rndkey 4096 # largest reasonable key size
else
echo ""
echo "Note:"
echo "Keys larger than 2048 have been tested and work, but are omitted from automated tests to save time."
echo "Set RASHA_TEST_LARGE_KEYS=0 to enable testing of keys up to 4096."
fi
echo ""
echo "Pass" echo "Pass"
echo ""
echo "Note:"
echo "Keys larger than 2048 have been tested and work, but are omitted from automated tests to save time."
rm fixtures/*.1.* rm fixtures/*.1.*