static void salsa20r12_encrypt_stream (void *context, byte *outbuf, const byte *inbuf, unsigned int length) { SALSA20_context_t *ctx = (SALSA20_context_t *)context; if (length) salsa20_do_encrypt_stream (ctx, outbuf, inbuf, length, SALSA20R12_ROUNDS); }
static void salsa20_encrypt_stream (void *context, byte *outbuf, const byte *inbuf, unsigned int length) { SALSA20_context_t *ctx = (SALSA20_context_t *)context; if (length) { salsa20_do_encrypt_stream (ctx, outbuf, inbuf, length); _gcry_burn_stack (/* salsa20_do_encrypt_stream: */ 2*sizeof (void*) + 3*sizeof (void*) + sizeof (unsigned int) /* salsa20_core: */ + 2*sizeof (void*) + 2*sizeof (void*) + 64 + sizeof (unsigned int) + sizeof (u32) ); } }