Beispiel #1
0
/*
 * This is called 'cipher in counter mode'.
 */
static void
encrypt_counter(FState * st, uint8 *dst)
{
	ciph_encrypt(&st->ciph, st->counter, dst);
	inc_counter(st);
}
Beispiel #2
0
/*
 * This is called 'cipher in counter mode'.
 */
static void
encrypt_counter(FState * st, unsigned char *dst)
{
    ciph_encrypt(&st->ciph, st->counter, dst);
    inc_counter(st);
}