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 = 64The size of an MD5 checksum in bytes.
const Size = 16const haveAsm = trueconst haveAsm = falseconst init0 = 0x67452301const init1 = 0xEFCDAB89const init2 = 0x98BADCFEconst init3 = 0x10325476const magic = "md5\x01"const marshaledSize = *ast.BinaryExprdigest 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() intfunc (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.Hashfunc (d *digest) Reset()func (d *digest) Size() intSum returns the MD5 checksum of the data.
func Sum(data []byte) [Size]bytefunc (d *digest) Sum(in []byte) []bytefunc (d *digest) UnmarshalBinary(b []byte) errorfunc (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]bytefunc consumeUint32(b []byte) ([]byte, uint32)func consumeUint64(b []byte) ([]byte, uint64)func init()Generated with Arrow