summaryrefslogtreecommitdiff
path: root/test/parallel/test-crypto-ecb.js
diff options
context:
space:
mode:
authorStefan Budeanu <stefan@budeanu.com>2015-11-10 16:33:25 -0500
committerJames M Snell <jasnell@gmail.com>2015-11-14 09:13:56 -0800
commit11ad744a92374ad71730cbfb7abea71fda0abb74 (patch)
treebc5a7bd6348294548e9231ec609f0b64618ecf24 /test/parallel/test-crypto-ecb.js
parenta49b3af00b06dfd0e9301115cf077cc00a99a1c3 (diff)
downloadnode-new-11ad744a92374ad71730cbfb7abea71fda0abb74.tar.gz
test: increase crypto strength for FIPS standard
Use stronger crypto (larger keys, etc.) for arbitrary tests so they will pass in both FIPS and non-FIPS mode without altering the original intent of the test cases. PR-URL: https://github.com/nodejs/node/pull/3758 Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-crypto-ecb.js')
-rw-r--r--test/parallel/test-crypto-ecb.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/parallel/test-crypto-ecb.js b/test/parallel/test-crypto-ecb.js
index 920b18a47f..d47ec8a809 100644
--- a/test/parallel/test-crypto-ecb.js
+++ b/test/parallel/test-crypto-ecb.js
@@ -6,6 +6,10 @@ if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
return;
}
+if (common.hasFipsCrypto) {
+ console.log('1..0 # Skipped: BF-ECB is not FIPS 140-2 compatible');
+ return;
+}
var crypto = require('crypto');
crypto.DEFAULT_ENCODING = 'buffer';