mirror of
https://github.com/fluencelabs/js-libp2p-crypto
synced 2025-07-31 17:32:15 +00:00
Due to the design of `AES-CTR` in the webcrypto spec, there is no streaming mode provided. This results in the counter not being reused between subsequent calls to `encrypt` or `decrypt`. As both the node.js and the go implementation rely on this webcrypto had to be replaced.
9 lines
154 B
JavaScript
9 lines
154 B
JavaScript
'use strict'
|
|
|
|
const crypto = require('crypto')
|
|
|
|
module.exports = {
|
|
createCipheriv: crypto.createCipheriv,
|
|
createDecipheriv: crypto.createDecipheriv
|
|
}
|