Blender
V4.5
intern
cycles
util
md5.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 1999, 2002 Aladdin Enterprises. All rights reserved.
2
*
3
* SPDX-License-Identifier: Zlib
4
*
5
* By `L. Peter Deutsch <ghost@aladdin.com>`. */
6
7
/* MD5
8
*
9
* Simply MD5 hash computation, used by disk cache. Adapted from external
10
* code, with minor code modifications done to remove some unused code and
11
* change code style. */
12
13
#pragma once
14
15
#include "
util/string.h
"
16
17
CCL_NAMESPACE_BEGIN
18
19
class
MD5Hash
{
20
public
:
21
MD5Hash
();
22
~MD5Hash
();
23
24
void
append
(
const
uint8_t
*
data
,
const
int
nbytes);
25
void
append
(
const
string
&
str
);
26
bool
append_file
(
const
string
&filepath);
27
string
get_hex
();
28
29
protected
:
30
void
process
(
const
uint8_t
*
data
);
31
void
finish
(
uint8_t
digest[16]);
32
33
uint32_t
count
[2];
/* message length in bits, LSW first. */
34
uint32_t
abcd
[4];
/* digest buffer */
35
uint8_t
buf
[64];
/* accumulate block */
36
};
37
38
string
util_md5_string
(
const
string
&
str
);
39
40
CCL_NAMESPACE_END
data
std::string data
Definition
BLI_set_test.cc:632
MD5Hash
Definition
md5.h:19
MD5Hash::append_file
bool append_file(const string &filepath)
Definition
md5.cpp:309
MD5Hash::get_hex
string get_hex()
Definition
md5.cpp:359
MD5Hash::buf
uint8_t buf[64]
Definition
md5.h:35
MD5Hash::~MD5Hash
~MD5Hash()
MD5Hash::finish
void finish(uint8_t digest[16])
Definition
md5.cpp:334
MD5Hash::MD5Hash
MD5Hash()
Definition
md5.cpp:249
MD5Hash::process
void process(const uint8_t *data)
Definition
md5.cpp:85
MD5Hash::abcd
uint32_t abcd[4]
Definition
md5.h:34
MD5Hash::count
uint32_t count[2]
Definition
md5.h:33
append
append
Definition
delaunay_2d.cc:620
CCL_NAMESPACE_END
#define CCL_NAMESPACE_END
Definition
device/cuda/compat.h:10
str
#define str(s)
Definition
ffmpeg_codecs.cc:103
uint32_t
unsigned int uint32_t
Definition
gpu_glsl_cpp_stubs.hh:361
util_md5_string
string util_md5_string(const string &str)
Definition
md5.cpp:378
CCL_NAMESPACE_BEGIN
Definition
python.cpp:37
uint8_t
unsigned char uint8_t
Definition
stdint.h:78
string.h
Generated on Fri Apr 3 2026 06:33:18 for Blender by
doxygen
1.11.0