Documentation ¶
Overview ¶
Package poly1305 implements Poly1305 one-time message authentication code as specified in http://cr.yp.to/mac/poly1305-20050329.pdf. This package provides a streaming interface, unlike "golang.org/x/crypto/poly1305".
For readability, we do not gofmt this file.
Index ¶
Constants ¶
View Source
const BlockSize = 16
View Source
const Size = 16
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a new Poly1305 authenticator using the given key. The key must not be reused with a different message: "Authenticators for two messages under the same key should be expected to reveal enough information to allow forgeries of authenticators on other messages." See: http://nacl.cr.yp.to/onetimeauth.html
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.