WTVSec Updates

- optimize WordArray to Buffer functions
- update documentation in WTVSec
- update WTVSec barrowed function in WTVLzpf
- removed NewRC4Session, was a pointless alias to SecureOn
This commit is contained in:
zefie
2021-08-08 16:41:03 -04:00
parent 1949ccb01a
commit 9deb84b9d2
2 changed files with 86 additions and 53 deletions

View File

@@ -455,7 +455,7 @@ class WTVLzpf {
if (data.words) {
var WTVSec = require("./WTVSec.js");
wtvsec = new WTVSec(1);
data = new Buffer.from(wtvsec.wordArrayToUint8Array(data));
data = wtvsec.wordArrayToBuffer(data);
WTVSec, wtvsec = null;
} else if (!data.byteLength) {
// otherwise if its not already a Buffer, convert it to one