Blender
V4.3
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
#ifndef __UTIL_MD5_H__
14
#define __UTIL_MD5_H__
15
16
#include "
util/string.h
"
17
#include "
util/types.h
"
18
19
CCL_NAMESPACE_BEGIN
20
21
class
MD5Hash
{
22
public
:
23
MD5Hash
();
24
~MD5Hash
();
25
26
void
append
(
const
uint8_t
*data,
int
size);
27
void
append
(
const
string
&
str
);
28
bool
append_file
(
const
string
&filepath);
29
string
get_hex
();
30
31
protected
:
32
void
process
(
const
uint8_t
*data);
33
void
finish
(
uint8_t
digest[16]);
34
35
uint32_t
count
[2];
/* message length in bits, LSW first. */
36
uint32_t
abcd
[4];
/* digest buffer */
37
uint8_t
buf
[64];
/* accumulate block */
38
};
39
40
string
util_md5_string
(
const
string
&
str
);
41
42
CCL_NAMESPACE_END
43
44
#endif
/* __UTIL_MD5_H__ */
MD5Hash
Definition
md5.h:21
MD5Hash::append_file
bool append_file(const string &filepath)
Definition
md5.cpp:304
MD5Hash::get_hex
string get_hex()
Definition
md5.cpp:354
MD5Hash::buf
uint8_t buf[64]
Definition
md5.h:37
MD5Hash::~MD5Hash
~MD5Hash()
Definition
md5.cpp:253
MD5Hash::finish
void finish(uint8_t digest[16])
Definition
md5.cpp:329
MD5Hash::MD5Hash
MD5Hash()
Definition
md5.cpp:244
MD5Hash::process
void process(const uint8_t *data)
Definition
md5.cpp:83
MD5Hash::abcd
uint32_t abcd[4]
Definition
md5.h:36
MD5Hash::count
uint32_t count[2]
Definition
md5.h:35
append
append
Definition
delaunay_2d.cc:621
CCL_NAMESPACE_END
#define CCL_NAMESPACE_END
Definition
device/cuda/compat.h:10
str
#define str(s)
Definition
ffmpeg_codecs.cc:103
util_md5_string
string util_md5_string(const string &str)
Definition
md5.cpp:373
CCL_NAMESPACE_BEGIN
Definition
python.cpp:44
uint32_t
unsigned int uint32_t
Definition
stdint.h:80
uint8_t
unsigned char uint8_t
Definition
stdint.h:78
string.h
types.h
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0