C# (CSharp) Org.BouncyCastle.Crypto.Generators Poly1305KeyGenerator - 5 examples found. These are the top rated real world C# (CSharp) examples of Org.BouncyCastle.Crypto.Generators.Poly1305KeyGenerator extracted from open source projects. You can rate examples to help us improve the quality of examples.
Poly1305 keys are 256 bit keys consisting of a 128 bit secret key used for the underlying block cipher followed by a 128 bit {@code r} value used for the polynomial portion of the Mac. The {@code r} value has a specific format with some bits required to be cleared, resulting in an effective 106 bit key. A separately generated 256 bit key can be modified to fit the Poly1305 key format by using the {@link #clamp(byte[])} method to clear the required bits.