Debian Codegraph @

mz_strm_pkcrypt.h

raw symbols SCIP
1 /* mz_strm_pkcrypt.h -- Code for traditional PKWARE encryption
2 part of the minizip-ng project
3
4 Copyright (C) Nathan Moinvaziri
5 https://github.com/zlib-ng/minizip-ng
6
7 This program is distributed under the terms of the same license as zlib.
8 See the accompanying LICENSE file for the full text of the license.
9 */
10
11 #ifndef MZ_STREAM_PKCRYPT_H
12 #define MZ_STREAM_PKCRYPT_H
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 /***************************************************************************/
19
20 int32_t mz_stream_pkcrypt_open(void *stream, const char *filename, int32_t mode);
21 int32_t mz_stream_pkcrypt_is_open(void *stream);
22 int32_t mz_stream_pkcrypt_read(void *stream, void *buf, int32_t size);
23 int32_t mz_stream_pkcrypt_write(void *stream, const void *buf, int32_t size);
24 int64_t mz_stream_pkcrypt_tell(void *stream);
25 int32_t mz_stream_pkcrypt_seek(void *stream, int64_t offset, int32_t origin);
26 int32_t mz_stream_pkcrypt_close(void *stream);
27 int32_t mz_stream_pkcrypt_error(void *stream);
28
29 void mz_stream_pkcrypt_set_password(void *stream, const char *password);
30 void mz_stream_pkcrypt_set_verify(void *stream, uint8_t verify1, uint8_t verify2, uint16_t version);
31 void mz_stream_pkcrypt_get_verify(void *stream, uint8_t *verify1, uint8_t *verify2, uint16_t *version);
32 int32_t mz_stream_pkcrypt_get_prop_int64(void *stream, int32_t prop, int64_t *value);
33 int32_t mz_stream_pkcrypt_set_prop_int64(void *stream, int32_t prop, int64_t value);
34
35 void *mz_stream_pkcrypt_create(void);
36 void mz_stream_pkcrypt_delete(void **stream);
37
38 void *mz_stream_pkcrypt_get_interface(void);
39
40 /***************************************************************************/
41
42 #ifdef __cplusplus
43 }
44 #endif
45
46 #endif