From 9b6b7ac94658d65204fab0146907ac8c6af287bb Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Wed, 24 Jan 2018 15:59:03 +0000 Subject: Signature support: break out function for obtaining hash bytes --- include/mupdf/pdf/crypt.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/mupdf/pdf/crypt.h b/include/mupdf/pdf/crypt.h index 3aee039a..846ed5bb 100644 --- a/include/mupdf/pdf/crypt.h +++ b/include/mupdf/pdf/crypt.h @@ -28,6 +28,11 @@ void pdf_write_digest(fz_context *ctx, fz_output *out, pdf_obj *byte_range, int */ int pdf_signature_widget_byte_range(fz_context *ctx, pdf_document *doc, pdf_widget *widget, fz_range *byte_range); +/* + pdf_signature_widget_hash_bytes: retrieve an fz_stream to read the bytes hashed for the signature +*/ +fz_stream *pdf_signature_widget_hash_bytes(fz_context *ctx, pdf_document *doc, pdf_widget *widget); + /* pdf_signature_widget_contents: retrieve the contents for a signature widget */ -- cgit v1.2.3