X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/6a2654167a4c6ece96c96a6a235d805ca21661da..HEAD:/symm/chacha.h diff --git a/symm/chacha.h b/symm/chacha.h index 994cfa2b..6c380dca 100644 --- a/symm/chacha.h +++ b/symm/chacha.h @@ -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}@ --- * *