This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from libp2p/aes-interop
AES Interop
- Loading branch information
Showing
18 changed files
with
2,276 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
"node-webcrypto-ossl": false, | ||
"./src/crypto/webcrypto.js": "./src/crypto/webcrypto-browser.js", | ||
"./src/crypto/hmac.js": "./src/crypto/hmac-browser.js", | ||
"./src/crypto/aes.js": "./src/crypto/aes-browser.js" | ||
"./src/crypto/ciphers.js": "./src/crypto/ciphers-browser.js" | ||
}, | ||
"scripts": { | ||
"lint": "aegir-lint", | ||
|
@@ -32,6 +32,7 @@ | |
"dependencies": { | ||
"asn1.js": "^4.8.1", | ||
"async": "^2.1.2", | ||
"browserify-aes": "^1.0.6", | ||
"multihashing-async": "^0.2.0", | ||
"node-webcrypto-ossl": "^1.0.7", | ||
"nodeify": "^1.0.0", | ||
|
@@ -66,4 +67,4 @@ | |
"greenkeeperio-bot <[email protected]>", | ||
"nikuda <[email protected]>" | ||
] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
'use strict' | ||
|
||
const crypto = require('browserify-aes') | ||
|
||
module.exports = { | ||
createCipheriv: crypto.createCipheriv, | ||
createDecipheriv: crypto.createDecipheriv | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
'use strict' | ||
|
||
const crypto = require('crypto') | ||
|
||
module.exports = { | ||
createCipheriv: crypto.createCipheriv, | ||
createDecipheriv: crypto.createDecipheriv | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
'use strict' | ||
|
||
const fixes16 = [ | ||
require('./fix1.json'), | ||
require('./fix2.json'), | ||
require('./fix3.json'), | ||
require('./fix4.json'), | ||
require('./fix5.json') | ||
] | ||
const fixes32 = [ | ||
require('./fix6.json'), | ||
require('./fix7.json'), | ||
require('./fix8.json'), | ||
require('./fix9.json'), | ||
require('./fix10.json') | ||
] | ||
|
||
module.exports = { | ||
16: { | ||
inputs: fixes16.map((f) => f.input), | ||
outputs: fixes16.map((f) => f.output) | ||
}, | ||
32: { | ||
inputs: fixes32.map((f) => f.input), | ||
outputs: fixes32.map((f) => f.output) | ||
} | ||
} |
Oops, something went wrong.