@ecies/ciphers
Version:
Node/Pure JavaScript symmetric ciphers adapter
13 lines (12 loc) • 449 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.chacha20 = exports.xchacha20 = void 0;
var chacha_1 = require("@noble/ciphers/chacha");
var xchacha20 = function (key, nonce, AAD) {
return (0, chacha_1.xchacha20poly1305)(key, nonce, AAD);
};
exports.xchacha20 = xchacha20;
var chacha20 = function (key, nonce, AAD) {
return (0, chacha_1.chacha20poly1305)(key, nonce, AAD);
};
exports.chacha20 = chacha20;