md2

package
v0.29.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

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

MD2 is cryptographically broken and should not be used for secure applications.

Index

Constants

View Source
const BlockSize = 16

BlockSize the blocksize of MD2 in bytes.

View Source
const Size = 16

Size the size of a MD2 checksum in bytes.

View Source
const SizeBitSize = 4

SizeBitSize the bit size of Size.

Variables

This section is empty.

Functions

func New

func New() hash.Hash

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

func Sum

func Sum(data []byte) [Size]byte

Sum returns the MD2 checksum of the data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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