| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9059b09 commit 3063152
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,16 +1,16 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | const common = require('../common'); | |
| 3 | + const fixtures = require('../common/fixtures'); | ||
| 4 | + | ||
| 3 | 5 | if (!common.hasFipsCrypto) | |
| 4 | 6 | common.skip('node compiled without FIPS OpenSSL.'); | |
| 5 | 7 | ||
| 6 | 8 | const assert = require('assert'); | |
| 7 | 9 | const crypto = require('crypto'); | |
| 8 | - const fs = require('fs'); | ||
| 9 | 10 | ||
| 10 | 11 | const input = 'hello'; | |
| 11 | 12 | ||
| 12 | - const dsapri = fs.readFileSync( | ||
| 13 | - `${common.fixturesDir}/keys/dsa_private_1025.pem`); | ||
| 13 | + const dsapri = fixtures.readKey('dsa_private_1025.pem'); | ||
| 14 | 14 | const sign = crypto.createSign('SHA1'); | |
| 15 | 15 | sign.update(input); | |
| 16 | 16 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments