crypto_stream static method
Implementation
static int crypto_stream(
Uint8List c, int cpos, int d, Uint8List n, Uint8List k) {
final s = Uint8List(32);
crypto_core_hsalsa20(s, n, k, _sigma);
final sn = Uint8List(8);
for (var i = 0; i < 8; i++) {
sn[i] = n[i + 16];
}
return crypto_stream_salsa20(c, cpos, d, sn, s);
}