poly1305

package
v0.0.0-...-537daca Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2012 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package poly1305 implements Poly1305 one-time message authentication code.

Index

Constants

View Source
const (
	KeySize    = 32
	OutputSize = 16
)

Variables

This section is empty.

Functions

func OneTimeAuth

func OneTimeAuth(out, m, k []byte)

OneTimeAuth generates an authenticator for byte slice m using one-time 32-byte key k, and puts the 16-byte authenticator into out.

func Verify

func Verify(h, in, k []byte) bool

Verify returns true if the 16-byte authenticator h is correct for input in and 32-key k.

Types

This section is empty.

Jump to

Keyboard shortcuts

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