Parcourir la source

Fixed the env var for testing extended bit lengths.

tags/v1.2.0
John Shaver il y a 1 an
Parent
révision
cd0533a72b
3 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 1
    1
      .drone.yml
  2. 1
    1
      README.md
  3. 2
    2
      test.sh

+ 1
- 1
.drone.yml Voir le fichier

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

+ 1
- 1
README.md Voir le fichier

@@ -1,4 +1,4 @@
1
-[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)
1
+[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)
2 2
 =========
3 3
 
4 4
 Sponsored by [Root](https://therootcompany.com).

+ 2
- 2
test.sh Voir le fichier

@@ -149,14 +149,14 @@ rndkey 768
149 149
 rndkey 1024
150 150
 rndkey 2048 # first secure key size
151 151
 
152
-if [  ${RASHA_TEST_LARGE_KEYS} ]; then 
152
+if [ "${RASHA_TEST_LARGE_KEYS}" == "true" ]; then 
153 153
   rndkey 3072
154 154
   rndkey 4096 # largest reasonable key size
155 155
 else
156 156
   echo ""
157 157
   echo "Note:"
158 158
   echo "Keys larger than 2048 have been tested and work, but are omitted from automated tests to save time."
159
-  echo "Set RASHA_TEST_LARGE_KEYS=0 to enable testing of keys up to 4096."
159
+  echo "Set RASHA_TEST_LARGE_KEYS=true to enable testing of keys up to 4096."
160 160
 fi
161 161
 
162 162
 echo ""

Chargement…
Annuler
Enregistrer