diff --git a/src/main.js b/src/main.js --- a/src/main.js +++ b/src/main.js @@ -1,6 +1,6 @@ import * as util from "./util.js"; import {blake2s} from "./blake.js"; -import {Chacha20} from "./chacha.js"; +import {Chacha20,encrypt,decrypt} from "./chacha.js"; export default {util,blake2s,Chacha20}; @@ -9,4 +9,6 @@ if(typeof module!=='undefined'&&module.h module.exports.util=util; module.exports.blake2s=blake2s; module.exports.Chacha20=Chacha20; + module.exports.encrypt=encrypt; + module.exports.decrypt=decrypt; }