md2

package module
v0.0.0-...-c69905b Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2017 License: BSD-2-Clause Imports: 1 Imported by: 15

README

MD2 implementation in Go

(c) 2012-2013 Huan Truong

This module can be used as usual as any other hash module in the crypt suite of Google Go distribution. Can be used in conjunction with HMAC too.

Please refer to LICENSE for license information.

Documentation

Overview

Package md2 implements the MD2 hash algorithm as defined in RFC 1319.

Index

Examples

Constants

View Source
const BlockSize = 16

The blocksize of MD2 in bytes.

View Source
const Size = 16

The size of an MD2 checksum in bytes.

Variables

View Source
var PI_SUBST = []uint8{}/* 256 elements not displayed */

Functions

func New

func New() hash.Hash

New returns a new hash.Hash computing the MD2 checksum.

Example
h := New()
io.WriteString(h, "The fog is getting thicker!")
io.WriteString(h, "And Leon's getting laaarger!")
fmt.Printf("%x", h.Sum(nil))
Output:

Types

This section is empty.

Jump to

Keyboard shortcuts

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