File tree Expand file tree Collapse file tree 9 files changed +10
-14
lines changed Expand file tree Collapse file tree 9 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ var oids = module.exports = forge.pki.oids = forge.oids = forge.oids || {};
14
14
function _IN ( id , name ) {
15
15
oids [ id ] = name ;
16
16
oids [ name ] = id ;
17
- } ;
17
+ }
18
18
// set id to name mapping only
19
19
function _I_ ( id , name ) {
20
20
oids [ id ] = name ;
21
- } ;
21
+ }
22
22
23
23
// algorithm OIDs
24
24
_IN ( '1.2.840.113549.1.1.1' , 'rsaEncryption' ) ;
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ function contentServer(callback) {
78
78
'[https-server] listening: https://localhost:' +
79
79
httpsServer . address ( ) . port + '/' ) ;
80
80
} ) ;
81
- } ;
81
+ }
82
82
83
83
// start servers
84
84
contentServer ( ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ var MD = require('../../lib/md');
4
4
var RSA = require ( '../../lib/rsa' ) ;
5
5
var UTIL = require ( '../../lib/util' ) ;
6
6
var JSBN = require ( '../../lib/jsbn' ) ;
7
- var RANDOM = require ( '../../lib/random' ) ;
8
7
9
8
( function ( ) {
10
9
function FixedSecureRandom ( str ) {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ var UTIL = require('../../lib/util');
23
23
24
24
it ( 'should digest "c\'\u00e8"' , function ( ) {
25
25
var md = MD5 . create ( ) ;
26
- md . update ( " c\'\u00e8" , 'utf8' ) ;
26
+ md . update ( ' c\'\u00e8' , 'utf8' ) ;
27
27
ASSERT . equal ( md . digest ( ) . toHex ( ) , '8ef7c2941d78fe89f31e614437c9db59' ) ;
28
28
} ) ;
29
29
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ var MGF = require('../../lib/mgf');
7
7
var PSS = require ( '../../lib/pss' ) ;
8
8
var RANDOM = require ( '../../lib/random' ) ;
9
9
var UTIL = require ( '../../lib/util' ) ;
10
- var support = require ( './support' ) ;
11
10
12
11
( function ( ) {
13
12
var _pem = {
@@ -67,7 +66,7 @@ var support = require('./support');
67
66
md . update ( '0123456789abcdef' ) ;
68
67
var signature = pair . privateKey . sign ( md ) ;
69
68
ASSERT . ok ( pair . publicKey . verify ( md . digest ( ) . getBytes ( ) , signature ) ) ;
70
- } ;
69
+ }
71
70
72
71
// compare pairs
73
72
function _pairCmp ( pair1 , pair2 ) {
@@ -515,7 +514,7 @@ var support = require('./support');
515
514
var keySize = params . keySize ;
516
515
517
516
it ( 'should rsa encrypt using a ' + keySize + '-bit key' , function ( ) {
518
- var message = " it need's to be about 20% cooler" ; // it need's better grammar too
517
+ var message = ' it need\ 's to be about 20% cooler' ; // it need's better grammar too
519
518
520
519
/* First step, do public key encryption */
521
520
var key = PKI . publicKeyFromPem ( params . publicKeyPem ) ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ var UTIL = require('../../lib/util');
26
26
27
27
it ( 'should digest "c\'\u00e8"' , function ( ) {
28
28
var md = SHA1 . create ( ) ;
29
- md . update ( " c\'\u00e8" , 'utf8' ) ;
29
+ md . update ( ' c\'\u00e8' , 'utf8' ) ;
30
30
ASSERT . equal (
31
31
md . digest ( ) . toHex ( ) , '98c9a3f804daa73b68a5660d032499a447350c0d' ) ;
32
32
} ) ;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ var UTIL = require('../../lib/util');
29
29
30
30
it ( 'should digest "c\'\u00e8"' , function ( ) {
31
31
var md = SHA256 . create ( ) ;
32
- md . update ( " c\'\u00e8" , 'utf8' ) ;
32
+ md . update ( ' c\'\u00e8' , 'utf8' ) ;
33
33
ASSERT . equal (
34
34
md . digest ( ) . toHex ( ) ,
35
35
'1aa15c717afffd312acce2217ce1c2e5dabca53c92165999132ec9ca5decdaca' ) ;
Original file line number Diff line number Diff line change 1
1
var ASSERT = require ( 'assert' ) ;
2
2
var SHA512 = require ( '../../lib/sha512' ) ;
3
- var UTIL = require ( '../../lib/util' ) ;
4
3
5
4
( function ( ) {
6
5
describe ( 'sha512' , function ( ) {
@@ -37,7 +36,7 @@ var UTIL = require('../../lib/util');
37
36
38
37
it ( 'should digest "c\'\u00e8"' , function ( ) {
39
38
var md = SHA512 . create ( ) ;
40
- md . update ( " c\'\u00e8" , 'utf8' ) ;
39
+ md . update ( ' c\'\u00e8' , 'utf8' ) ;
41
40
ASSERT . equal (
42
41
md . digest ( ) . toHex ( ) ,
43
42
'9afdc0390dd91e81c63f858d1c6fcd9f949f3fc89dbdaed9e4211505bad63d8e8787797e2e9ea651285eb6954e51c4f0299837c3108cb40f1420bca1d237355c' ) ;
@@ -107,7 +106,7 @@ var UTIL = require('../../lib/util');
107
106
108
107
it ( 'should digest "c\'\u00e8"' , function ( ) {
109
108
var md = SHA384 . create ( ) ;
110
- md . update ( " c\'\u00e8" , 'utf8' ) ;
109
+ md . update ( ' c\'\u00e8' , 'utf8' ) ;
111
110
ASSERT . equal (
112
111
md . digest ( ) . toHex ( ) ,
113
112
'382ec8a92d50abf57f7d0f934ff3969d6d354d30c96f1616678a920677867aba49521d2d535c0f285a3c2961c2034ea3' ) ;
Original file line number Diff line number Diff line change 6
6
* Copyright 2011-2016 Digital Bazaar, Inc.
7
7
*/
8
8
const path = require ( 'path' ) ;
9
- const webpack = require ( 'webpack' ) ;
10
9
11
10
module . exports = {
12
11
entry : {
You can’t perform that action at this time.
0 commit comments