summaryrefslogtreecommitdiffstats
path: root/make/stub_includes/ffmpeg/v0500/libavutil/ripemd.h
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-02-23 22:10:17 +0100
committerSven Gothel <[email protected]>2023-02-23 22:10:17 +0100
commit55a3e7e548bbc3333318ee55dbab39f016b8d5f6 (patch)
treea754d6d621532328c15095619180c0ef4556aabc /make/stub_includes/ffmpeg/v0500/libavutil/ripemd.h
parentdc48fb0f101dfefd3f4fb23f585d14de7fa9a6fe (diff)
FFMPEGMediaPlayer: Replace old FFmpeg header w/ FFmpeg version 4.3, 5.1 and 6.0 (major version counts for binary compatibility)
Diffstat (limited to 'make/stub_includes/ffmpeg/v0500/libavutil/ripemd.h')
-rw-r--r--make/stub_includes/ffmpeg/v0500/libavutil/ripemd.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/make/stub_includes/ffmpeg/v0500/libavutil/ripemd.h b/make/stub_includes/ffmpeg/v0500/libavutil/ripemd.h
new file mode 100644
index 000000000..9df9f905f
--- /dev/null
+++ b/make/stub_includes/ffmpeg/v0500/libavutil/ripemd.h
@@ -0,0 +1,83 @@
+/*
+ * Copyright (C) 2007 Michael Niedermayer <[email protected]>
+ * Copyright (C) 2013 James Almer <[email protected]>
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/**
+ * @file
+ * @ingroup lavu_ripemd
+ * Public header for RIPEMD hash function implementation.
+ */
+
+#ifndef AVUTIL_RIPEMD_H
+#define AVUTIL_RIPEMD_H
+
+#include <stddef.h>
+#include <stdint.h>
+
+#include "attributes.h"
+
+/**
+ * @defgroup lavu_ripemd RIPEMD
+ * @ingroup lavu_hash
+ * RIPEMD hash function implementation.
+ *
+ * @{
+ */
+
+extern const int av_ripemd_size;
+
+struct AVRIPEMD;
+
+/**
+ * Allocate an AVRIPEMD context.
+ */
+struct AVRIPEMD *av_ripemd_alloc(void);
+
+/**
+ * Initialize RIPEMD hashing.
+ *
+ * @param context pointer to the function context (of size av_ripemd_size)
+ * @param bits number of bits in digest (128, 160, 256 or 320 bits)
+ * @return zero if initialization succeeded, -1 otherwise
+ */
+int av_ripemd_init(struct AVRIPEMD* context, int bits);
+
+/**
+ * Update hash value.
+ *
+ * @param context hash function context
+ * @param data input data to update hash with
+ * @param len input data length
+ */
+void av_ripemd_update(struct AVRIPEMD* context, const uint8_t* data, size_t len);
+
+/**
+ * Finish hashing and output digest value.
+ *
+ * @param context hash function context
+ * @param digest buffer where output digest value is stored
+ */
+void av_ripemd_final(struct AVRIPEMD* context, uint8_t *digest);
+
+/**
+ * @}
+ */
+
+#endif /* AVUTIL_RIPEMD_H */