usched: Allow process to change self cpu affinity
[dragonfly.git] / lib / libcrypt / local.h
blob5d188aae7aff685a903bef165eaf4884fb82a6f6
1 /*
3 */
5 struct sha256_ctx
7 uint32_t H[8];
9 uint32_t total[2];
10 uint32_t buflen;
11 char buffer[128]; /* NB: always correctly aligned for uint32_t. */
14 struct sha512_ctx
16 uint64_t H[8];
18 uint64_t total[2];
19 uint64_t buflen;
20 char buffer[256]; /* NB: always correctly aligned for uint64_t. */
23 void __crypt__sha256_process_block (const void *buffer, size_t len,
24 struct sha256_ctx *ctx);
25 void __crypt__sha256_init_ctx (struct sha256_ctx *ctx);
26 void *__crypt__sha256_finish_ctx (struct sha256_ctx *ctx, void *resbuf);
27 void __crypt__sha256_process_bytes (const void *buffer, size_t len,
28 struct sha256_ctx *ctx);
30 void __crypt__sha512_process_block (const void *buffer, size_t len,
31 struct sha512_ctx *ctx);
32 void __crypt__sha512_init_ctx (struct sha512_ctx *ctx);
33 void *__crypt__sha512_finish_ctx (struct sha512_ctx *ctx, void *resbuf);
34 void __crypt__sha512_process_bytes (const void *buffer, size_t len, struct sha512_ctx *ctx);
35 void __crypt__sha512_process_block (const void *buffer, size_t len, struct sha512_ctx *ctx);
36 void __crypt__sha512_init_ctx (struct sha512_ctx *ctx);