llvm::MD5::MD5Result

16-byte MD5 message digest with helpers for hex and word views.

Synopsis

Declared in <llvm/Support/MD5.h>

struct MD5Result;

Description

Stores the digest in an internal std::array and exposes the same contiguous-byte interface callers expect from an array of 16 bytes.

Type Aliases

NameDescription
const_iterator Immutable random-access iterator.
const_pointer Immutable pointer to a digest byte.
const_reference Immutable reference to a digest byte.
const_reverse_iterator Immutable reverse iterator.
difference_type Signed type for iterator distances.
iterator Mutable random-access iterator.
pointer Mutable pointer to a digest byte.
reference Mutable reference to a digest byte.
reverse_iterator Mutable reverse iterator.
size_type Unsigned size type for indices and lengths.
value_type Element type stored in the digest.

Member Functions

NameDescription
at Access the byte at N with bounds checking.
back Return a reference to the last byte.
begin Return an iterator to the first byte.
cbegin Return a const iterator to the first byte.
cend Return a const iterator past the last byte.
crbegin Return a const reverse iterator to the last byte.
crend Return a const reverse iterator past the first byte.
data Return a pointer to the underlying digest bytes.
digest Return the digest as a 32-character lowercase hex string.
empty Return whether the digest has no bytes.
end Return an iterator past the last byte.
fill Assign Value to every byte.
front Return a reference to the first byte.
high Return the high 64 bits of the digest as a little-endian integer.
low Return the low 64 bits of the 128-bit MD5 digest.
max_size Return the maximum number of bytes.
operator[] Access the byte at N without bounds checking.
rbegin Return a reverse iterator to the last byte.
rend Return a reverse iterator past the first byte.
size Return the number of bytes (always 16).
swap Swap contents with another digest.
words Return the digest as a (high, low) pair of 64-bit words.
operator Base& Convert to a reference to the underlying 16-byte array.
operator Base const& Convert to a const reference to the underlying 16-byte array.

Friends

NameDescription
llvm::operator==Compare two digests for equality.

Non-Member Functions

NameDescription
::llvm::sys::fs::md5_contentsCompute an MD5 hash of the file at Path.
::llvm::sys::fs::md5_contentsCompute an MD5 hash of a file's contents.