poly1305

package
v0.0.0-...-b73af74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 1 Imported by: 0

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

func New(key *[32]byte) hash.Hash

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL