class MD5

Declaration

class MD5 { /* full declaration omitted */ };

Declared at: llvm/include/llvm/Support/MD5.h:41

Member Variables

private struct(unnamed struct at / home / hdoc / tmp / llvm - project / llvm / include / llvm / Support / MD5.h : 94 : 3) InternalState

Method Overview

  • public MD5()
  • private const uint8_t * body(ArrayRef<uint8_t> Data)
  • public void final(llvm::MD5::MD5Result & Result)
  • public llvm::MD5::MD5Result final()
  • public static llvm::MD5::MD5Result hash(ArrayRef<uint8_t> Data)
  • public llvm::MD5::MD5Result result()
  • public static void stringifyResult(llvm::MD5::MD5Result & Result, SmallVectorImpl<char> & Str)
  • public void update(ArrayRef<uint8_t> Data)
  • public void update(llvm::StringRef Str)

Methods

MD5()

Declared at: llvm/include/llvm/Support/MD5.h:63

const uint8_t* body(ArrayRef<uint8_t> Data)

Declared at: llvm/include/llvm/Support/MD5.h:105

Parameters

ArrayRef<uint8_t> Data

void final(llvm::MD5::MD5Result& Result)

Description

Finishes off the hash and puts the result in result.

Declared at: llvm/include/llvm/Support/MD5.h:72

Parameters

llvm::MD5::MD5Result& Result

llvm::MD5::MD5Result final()

Description

Finishes off the hash, and returns the 16-byte hash data.

Declared at: llvm/include/llvm/Support/MD5.h:75

static llvm::MD5::MD5Result hash(
    ArrayRef<uint8_t> Data)

Description

Computes the hash for a given bytes.

Declared at: llvm/include/llvm/Support/MD5.h:87

Parameters

ArrayRef<uint8_t> Data

llvm::MD5::MD5Result result()

Description

Finishes off the hash, and returns the 16-byte hash data. This is suitable for getting the MD5 at any time without invalidating the internal state, so that more calls can be made into `update`.

Declared at: llvm/include/llvm/Support/MD5.h:80

static void stringifyResult(
    llvm::MD5::MD5Result& Result,
    SmallVectorImpl<char>& Str)

Description

Translates the bytes in \p Res to a hex string that is deposited into \p Str. The result will be of length 32.

Declared at: llvm/include/llvm/Support/MD5.h:84

Parameters

llvm::MD5::MD5Result& Result
SmallVectorImpl<char>& Str

void update(ArrayRef<uint8_t> Data)

Description

Updates the hash for the byte stream provided.

Declared at: llvm/include/llvm/Support/MD5.h:66

Parameters

ArrayRef<uint8_t> Data

void update(llvm::StringRef Str)

Description

Updates the hash for the StringRef provided.

Declared at: llvm/include/llvm/Support/MD5.h:69

Parameters

llvm::StringRef Str