Fixed the env var for testing extended bit lengths.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
John Shaver 2018-12-03 12:08:10 -08:00
parent c80e07ee7d
commit cd0533a72b
3 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ pipeline:
build: build:
image: node image: node
environment: environment:
RASHA_TEST_LARGE_KEYS: 1 RASHA_TEST_LARGE_KEYS: "true"
commands: commands:
- npm install --ignore-scripts - npm install --ignore-scripts
- npm test - npm test

View File

@ -1,4 +1,4 @@
[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) · [![Build Status](https://strong-emu-11.telebit.io/api/badges/coolaj86/rasha.js/status.svg)](https://strong-emu-11.telebit.io/coolaj86/rasha.js)
========= =========
Sponsored by [Root](https://therootcompany.com). Sponsored by [Root](https://therootcompany.com).

View File

@ -149,14 +149,14 @@ rndkey 768
rndkey 1024 rndkey 1024
rndkey 2048 # first secure key size rndkey 2048 # first secure key size
if [ ${RASHA_TEST_LARGE_KEYS} ]; then if [ "${RASHA_TEST_LARGE_KEYS}" == "true" ]; then
rndkey 3072 rndkey 3072
rndkey 4096 # largest reasonable key size rndkey 4096 # largest reasonable key size
else else
echo "" echo ""
echo "Note:" echo "Note:"
echo "Keys larger than 2048 have been tested and work, but are omitted from automated tests to save time." 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." echo "Set RASHA_TEST_LARGE_KEYS=true to enable testing of keys up to 4096."
fi fi
echo "" echo ""