Blender  V2.93
BLI_hash_md5.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
17 #pragma once
18 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 /* Compute MD5 message digest for LEN bytes beginning at BUFFER. The
28  * result is always in little endian byte order, so that a byte-wise
29  * output yields to the wanted ASCII representation of the message
30  * digest. */
31 
32 void *BLI_hash_md5_buffer(const char *buffer, size_t len, void *resblock);
33 
34 /* Compute MD5 message digest for bytes read from STREAM. The
35  * resulting message digest number will be written into the 16 bytes
36  * beginning at RESBLOCK. */
37 
38 int BLI_hash_md5_stream(FILE *stream, void *resblock);
39 
40 char *BLI_hash_md5_to_hexdigest(void *resblock, char r_hex_digest[33]);
41 
42 #ifdef __cplusplus
43 }
44 #endif
void * BLI_hash_md5_buffer(const char *buffer, size_t len, void *resblock)
Definition: hash_md5.c:370
char * BLI_hash_md5_to_hexdigest(void *resblock, char r_hex_digest[33])
Definition: hash_md5.c:406
int BLI_hash_md5_stream(FILE *stream, void *resblock)
Definition: hash_md5.c:292
__kernel void ccl_constant KernelData ccl_global void ccl_global char ccl_global int ccl_global char ccl_global unsigned int ccl_global float * buffer
uint len