progs/perftest.c: Use from Glibc syscall numbers.
[catacomb] / symm / chacha.h
index 994cfa2..6c380dc 100644 (file)
@@ -64,8 +64,8 @@ typedef uint32 chacha_matrix[16];
 
 typedef struct chacha_ctx {
   chacha_matrix a;
-  octet buf[CHACHA_OUTSZ];
-  size_t bufi;
+  octet b[CHACHA_OUTSZ];
+  unsigned off;
 } chacha_ctx;
 
 #define XCHACHA_DEFCTX(name)                                           \
@@ -89,8 +89,8 @@ XCHACHA_DEFCTX(xchacha8_ctx);
  */
 
 extern void chacha_init(chacha_ctx */*ctx*/,
-                        const void */*key*/, size_t /*ksz*/,
-                        const void */*nonce*/);
+                       const void */*key*/, size_t /*ksz*/,
+                       const void */*nonce*/);
 
 /* --- @chacha_setnonce{,_ietf}@ --- *
  *