Coverage Report

Created: 2022-10-31 07:00

/src/ghostpdl/psi/zfsha2.c
Line
Count
Source (jump to first uncovered line)
1
/* Copyright (C) 2001-2021 Artifex Software, Inc.
2
   All Rights Reserved.
3
4
   This software is provided AS-IS with no warranty, either express or
5
   implied.
6
7
   This software is distributed under license and may not be copied,
8
   modified or distributed except as expressly authorized under the terms
9
   of the license contained in the file LICENSE in this distribution.
10
11
   Refer to licensing information at http://www.artifex.com or contact
12
   Artifex Software, Inc.,  1305 Grant Avenue - Suite 200, Novato,
13
   CA 94945, U.S.A., +1(415)492-9861, for further information.
14
*/
15
16
17
/* SHA256Encode filter creation */
18
#include "memory_.h"
19
#include "ghost.h"
20
#include "oper.h"
21
#include "gsstruct.h"
22
#include "stream.h"
23
#include "strimpl.h"
24
#include "ialloc.h"
25
#include "ifilter.h"
26
#include "ssha2.h"
27
28
/* <source> SHA256Encode/filter <file> */
29
/* <source> <dict> SHA256Encode/filter <file> */
30
static int
31
zSHA256E(i_ctx_t *i_ctx_p)
32
0
{
33
0
    return filter_write_simple(i_ctx_p, &s_SHA256E_template);
34
0
}
35
36
/* ------ Initialization procedure ------ */
37
38
const op_def zfsha2_op_defs[] =
39
{
40
    op_def_begin_filter(),
41
    {"1SHA256Encode", zSHA256E},
42
    op_def_end(0)
43
};