md4

package
v0.0.0-...-43498e6 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: BSD-3-Clause, BSD-3-Clause Imports: 2 Imported by: 0

README

md4

This directory contains a portion of Go's MD4 implementation. It was downloaded from https://github.com/golang/crypto/tree/master/md4 on 20200706.

Small changes have been made to the code.

Documentation

Overview

Package md4 implements the MD4 hash algorithm as defined in RFC 1320.

Deprecated: MD4 is cryptographically broken and should should only be used where compatibility with legacy systems, not security, is the goal. Instead, use a secure hash like SHA-256 (from crypto/sha256).

Index

Constants

View Source
const BlockSize = 64

The blocksize of MD4 in bytes.

View Source
const Size = 16

The size of an MD4 checksum in bytes.

Variables

This section is empty.

Functions

func New

func New() hash.Hash

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

func SetState

func SetState(h hash.Hash, state [4]uint32)

SetState sets h to the supplied state to enable MAC length-extension attacks. h must have been returned by an earlier call to this package's New() function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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