mz_strm_wzaes.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* mz_strm_wzaes.h -- Stream for WinZIP AES encryption
  2. part of the minizip-ng project
  3. Copyright (C) 2010-2021 Nathan Moinvaziri
  4. https://github.com/zlib-ng/minizip-ng
  5. This program is distributed under the terms of the same license as zlib.
  6. See the accompanying LICENSE file for the full text of the license.
  7. */
  8. #ifndef MZ_STREAM_WZAES_SHA1_H
  9. #define MZ_STREAM_WZAES_SHA1_H
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. /***************************************************************************/
  14. int32_t mz_stream_wzaes_open(void *stream, const char *filename, int32_t mode);
  15. int32_t mz_stream_wzaes_is_open(void *stream);
  16. int32_t mz_stream_wzaes_read(void *stream, void *buf, int32_t size);
  17. int32_t mz_stream_wzaes_write(void *stream, const void *buf, int32_t size);
  18. int64_t mz_stream_wzaes_tell(void *stream);
  19. int32_t mz_stream_wzaes_seek(void *stream, int64_t offset, int32_t origin);
  20. int32_t mz_stream_wzaes_close(void *stream);
  21. int32_t mz_stream_wzaes_error(void *stream);
  22. void mz_stream_wzaes_set_password(void *stream, const char *password);
  23. void mz_stream_wzaes_set_encryption_mode(void *stream, int16_t encryption_mode);
  24. int32_t mz_stream_wzaes_get_prop_int64(void *stream, int32_t prop, int64_t *value);
  25. int32_t mz_stream_wzaes_set_prop_int64(void *stream, int32_t prop, int64_t value);
  26. void* mz_stream_wzaes_create(void **stream);
  27. void mz_stream_wzaes_delete(void **stream);
  28. void* mz_stream_wzaes_get_interface(void);
  29. /***************************************************************************/
  30. #ifdef __cplusplus
  31. }
  32. #endif
  33. #endif