| cipher-chachapoly.c | 34 struct chacha_ctx main_ctx, header_ctx; member in struct:chachapoly_ctx 47 chacha_keysetup(&ctx->header_ctx, key + 32, 256); 98 chacha_ivsetup(&ctx->header_ctx, seqbuf, NULL); 99 chacha_encrypt_bytes(&ctx->header_ctx, src, dest, aadlen); 130 chacha_ivsetup(&ctx->header_ctx, seqbuf, NULL); 131 chacha_encrypt_bytes(&ctx->header_ctx, cp, buf, 4);
|