Add ChaCha20 encryption option (XOR)

This commit is contained in:
Jonas Schnelli
2019-03-01 17:03:58 +01:00
parent a6d7026a45
commit 2bc2b8b49a
5 changed files with 185 additions and 16 deletions

View File

@@ -111,7 +111,7 @@ private:
if (requires_seed) {
RandomSeed();
}
rng.Output(bytebuf, sizeof(bytebuf));
rng.Keystream(bytebuf, sizeof(bytebuf));
bytebuf_size = sizeof(bytebuf);
}