Bouncy Castle Library
C#
VB
C++
JavaScript
Show/Hide TOC
Poly
1305Key
Generator
Clamp Method
Overload List
Clamp(
Byte
)
Modifies an existing 32 byte key value to comply with the requirements of the Poly1305 key by clearing required bits in the
C#
Copy
r
(second 16 bytes) portion of the key.
Specifically:
r[3], r[7], r[11], r[15] have top four bits clear (i.e., are {0, 1, . . . , 15})
r[4], r[8], r[12] have bottom two bits clear (i.e., are in {0, 4, 8, . . . , 252})
Clamp(Span
Byte
)
See Also
Reference
Poly1305KeyGenerator Class
Org.BouncyCastle.Crypto.Generators Namespace
In This Article
Overload List
See Also