for i from 0 to 255
S[i] := i
endfor
j := 0
for i from 0 to 255
j := (j + S[i] + key[i mod keylength]) mod 256
swap values of S[i] and S[j]
endfor
i := 0
j := 0
while GeneratingOutput:
i := (i + 1) mod 256
j := (j + S[i]) mod 256
swap values of S[i] and S[j]
t := (S[i] + S[j]) mod 256
K := S[t]
output K
endwhile
@mia @vamanimal @shy how do you even thrust to this song
@vamanimal @mia @itzzenxx if you don’t need ABI compatibility or stability, and don’t need very strong guarantees about API stability (although in practice it’s not too unstable), then it could work. It does a lot of features like OCSP. I’d say that the system TLS library could be LibreSSL (maaaybe WolfSSL) but you could statically link BoringSSL into individual programs. And maybe AWS-LC if you need something like BoringSSL but with the removed features added back in.