更新一些rc4

This commit is contained in:
shenjack-5600u 2024-05-02 20:36:24 +08:00
parent 654f1e68a4
commit 96348f48cf
Signed by: shenjack
GPG Key ID: FDF9864E11C7E79F

View File

@ -12373,7 +12373,7 @@ Y.RC4.prototype = {
this.a = this.b = 0 this.a = this.b = 0
}, },
bO(a) { bO(a) {
// update // xorBytes
var s, r, q, p, o, this_ = this, var s, r, q, p, o, this_ = this,
m = a.length m = a.length
for (s = 0; s < m; ++s) { for (s = 0; s < m; ++s) {
@ -12389,7 +12389,7 @@ Y.RC4.prototype = {
} }
}, },
di(a) { di(a) {
// init? // decryptBytes
var s, r, q, p, o, n, this_ = this, var s, r, q, p, o, n, this_ = this,
l = a.length l = a.length
for (s = 0; s < l; ++s) { for (s = 0; s < l; ++s) {
@ -19101,6 +19101,7 @@ LangData.SuperRC4.prototype = {
}, },
// MARK: RC4 next // MARK: RC4 next
dH(a, b) { dH(a, b) {
// sortList
var s, r, q, p, o, n, m = a.length var s, r, q, p, o, n, m = a.length
if (m <= 1) return a if (m <= 1) return a
s = H.b([], t.i) s = H.b([], t.i)
@ -19119,6 +19120,7 @@ LangData.SuperRC4.prototype = {
return P.List_List_of(new H.y(s, new LangData.k_(a, b), m), true, m.i("M.E")) return P.List_List_of(new H.y(s, new LangData.k_(a, b), m), true, m.i("M.E"))
}, },
fi(a) { fi(a) {
// pick<T>
var s = a.length var s = a.length
if (s === 1) if (s === 1)
return a[0] return a[0]
@ -19130,6 +19132,7 @@ LangData.SuperRC4.prototype = {
return this.fi(a, t.z) return this.fi(a, t.z)
}, },
fj(a, b) { fj(a, b) {
// pickSkip<T>
var s, r, q = a.length var s, r, q = a.length
if (q === 1) { if (q === 1) {
// if (!J.Y(a[0], b)) return a[0] // if (!J.Y(a[0], b)) return a[0]
@ -19146,14 +19149,16 @@ LangData.SuperRC4.prototype = {
return this.fj(a, b, t.z) return this.fj(a, b, t.z)
}, },
fl(a, b) { fl(a, b) {
var s, r, q, p, o = b.length // pickSkipRange<TT>
if (o === 0) return this.b5(a) var first, skip_len, q, n, len = b.length
s = C.Array.geT(b) if (len === 0)
r = b.length return this.b5(a)
if (a.length > r) { first = C.Array.geT(b) // first
q = C.Array.aT(a, s) skip_len = b.length
p = this.ax(a.length - r) if (a.length > skip_len) {
return a[p >= q ? p + r : p] q = C.Array.aT(a, first)
n = this.ax(a.length - skip_len)
return a[n >= q ? n + skip_len : n]
} }
return null return null
}, },
@ -19161,6 +19166,7 @@ LangData.SuperRC4.prototype = {
return this.fl(a, b, t.z) return this.fl(a, b, t.z)
}, },
gbo() { gbo() {
// rFFFF
return (this.n() << 8 | this.n()) >>> 0 return (this.n() << 8 | this.n()) >>> 0
}, },
ax(a) { ax(a) {