Imports #
"crypto"
"crypto/internal/fips140only"
"errors"
"hash"
"internal/byteorder"
"internal/byteorder"
"math/bits"
"crypto"
"crypto/internal/fips140only"
"errors"
"hash"
"internal/byteorder"
"internal/byteorder"
"math/bits"
The blocksize of MD5 in bytes.
const BlockSize = 64
The size of an MD5 checksum in bytes.
const Size = 16
const haveAsm = true
const haveAsm = false
const init0 = 0x67452301
const init1 = 0xEFCDAB89
const init2 = 0x98BADCFE
const init3 = 0x10325476
const magic = "md5\x01"
const marshaledSize = *ast.BinaryExpr
digest represents the partial evaluation of a checksum.
type digest struct {
s [4]uint32
x [BlockSize]byte
nx int
len uint64
}
func (d *digest) AppendBinary(b []byte) ([]byte, error)
func (d *digest) BlockSize() int
func (d *digest) MarshalBinary() ([]byte, error)
New returns a new [hash.Hash] computing the MD5 checksum. The Hash also implements [encoding.BinaryMarshaler], [encoding.BinaryAppender] and [encoding.BinaryUnmarshaler] to marshal and unmarshal the internal state of the hash.
func New() hash.Hash
func (d *digest) Reset()
func (d *digest) Size() int
Sum returns the MD5 checksum of the data.
func Sum(data []byte) [Size]byte
func (d *digest) Sum(in []byte) []byte
func (d *digest) UnmarshalBinary(b []byte) error
func (d *digest) Write(p []byte) (nn int, err error)
go:noescape
func block(dig *digest, p []byte)
func block(dig *digest, p []byte)
func blockGeneric(dig *digest, p []byte)
func (d *digest) checkSum() [Size]byte
func consumeUint32(b []byte) ([]byte, uint32)
func consumeUint64(b []byte) ([]byte, uint64)
func init()
Generated with Arrow