ci: Check for DDXen to be built
[xserver.git] / os / xsha1.h
blob60c6a9004bb3c8ea45b4e8d0cd25a5cb29d0f108
1 #ifndef XSHA1_H
2 #define XSHA1_H
4 /* Initialize SHA1 computation. Returns NULL on error. */
5 void *x_sha1_init(void);
7 /*
8 * Add some data to be hashed. ctx is the value returned by x_sha1_init()
9 * Returns 0 on error, 1 on success.
11 int x_sha1_update(void *ctx, void *data, int size);
14 * Place the hash in result, and free ctx.
15 * Returns 0 on error, 1 on success.
17 int x_sha1_final(void *ctx, unsigned char result[20]);
19 #endif