Esempio n. 1
0
        public void WitnessBytesRng(byte[] label, ref byte[] dest, byte[][] nonce_seeds, RandomGenerator rng)
        {
            var br = BuildRng();

            foreach (var ns in nonce_seeds)
            {
                br = br.RekeyWithWitnessBytes(label, ns);
            }
            var r = br.Finalize(rng);

            r.FillBytes(ref dest);
        }
Esempio n. 2
0
 public void WitnessBytes(byte[] label, ref byte[] dest, byte[] nonceSeeds, RandomGenerator rng)
 {
     byte[][] ns = new byte[][] { nonceSeeds };
     WitnessBytesRng(label, ref dest, ns, rng);
 }