mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 04:40:02 +01:00
This header is never exported and belongs to OS layer, thus no need to have it in include/ directory, where all the public ones are - better off under os/. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1350>
19 lines
440 B
C
19 lines
440 B
C
#ifndef XSHA1_H
|
|
#define XSHA1_H
|
|
|
|
/* Initialize SHA1 computation. Returns NULL on error. */
|
|
void *x_sha1_init(void);
|
|
|
|
/*
|
|
* Add some data to be hashed. ctx is the value returned by x_sha1_init()
|
|
* Returns 0 on error, 1 on success.
|
|
*/
|
|
int x_sha1_update(void *ctx, void *data, int size);
|
|
|
|
/*
|
|
* Place the hash in result, and free ctx.
|
|
* Returns 0 on error, 1 on success.
|
|
*/
|
|
int x_sha1_final(void *ctx, unsigned char result[20]);
|
|
|
|
#endif
|