• Home
  • Raw
  • Download

Lines Matching refs:uint_8t

170 static const uint_8t sbox[256] = sb_data(f1);
171 static const uint_8t isbox[256] = isb_data(f1);
173 static const uint_8t gfm2_sbox[256] = sb_data(f2);
174 static const uint_8t gfm3_sbox[256] = sb_data(f3);
176 static const uint_8t gfmul_9[256] = mm_data(f9);
177 static const uint_8t gfmul_b[256] = mm_data(fb);
178 static const uint_8t gfmul_d[256] = mm_data(fd);
179 static const uint_8t gfmul_e[256] = mm_data(fe);
197 static uint_8t hibit(const uint_8t x) { in hibit()
198 uint_8t r = (uint_8t)((x >> 1) | (x >> 2)); in hibit()
207 static uint_8t gf_inv(const uint_8t x) { in gf_inv()
208 uint_8t p1 = x, p2 = BPOLY, n1 = hibit(x), n2 = 0x80, v1 = 1, v2 = 0; in gf_inv()
237 uint_8t fwd_affine(const uint_8t x) { in fwd_affine()
247 uint_8t inv_affine(const uint_8t x) { in inv_affine()
284 ((uint_8t*)d)[0] = ((uint_8t*)s)[0]; in copy_block()
285 ((uint_8t*)d)[1] = ((uint_8t*)s)[1]; in copy_block()
286 ((uint_8t*)d)[2] = ((uint_8t*)s)[2]; in copy_block()
287 ((uint_8t*)d)[3] = ((uint_8t*)s)[3]; in copy_block()
288 ((uint_8t*)d)[4] = ((uint_8t*)s)[4]; in copy_block()
289 ((uint_8t*)d)[5] = ((uint_8t*)s)[5]; in copy_block()
290 ((uint_8t*)d)[6] = ((uint_8t*)s)[6]; in copy_block()
291 ((uint_8t*)d)[7] = ((uint_8t*)s)[7]; in copy_block()
292 ((uint_8t*)d)[8] = ((uint_8t*)s)[8]; in copy_block()
293 ((uint_8t*)d)[9] = ((uint_8t*)s)[9]; in copy_block()
294 ((uint_8t*)d)[10] = ((uint_8t*)s)[10]; in copy_block()
295 ((uint_8t*)d)[11] = ((uint_8t*)s)[11]; in copy_block()
296 ((uint_8t*)d)[12] = ((uint_8t*)s)[12]; in copy_block()
297 ((uint_8t*)d)[13] = ((uint_8t*)s)[13]; in copy_block()
298 ((uint_8t*)d)[14] = ((uint_8t*)s)[14]; in copy_block()
299 ((uint_8t*)d)[15] = ((uint_8t*)s)[15]; in copy_block()
303 static void copy_block_nn(void* d, const void* s, uint_8t nn) { in copy_block_nn()
304 while (nn--) *((uint_8t*)d)++ = *((uint_8t*)s)++; in copy_block_nn()
315 ((uint_8t*)d)[0] ^= ((uint_8t*)s)[0]; in xor_block()
316 ((uint_8t*)d)[1] ^= ((uint_8t*)s)[1]; in xor_block()
317 ((uint_8t*)d)[2] ^= ((uint_8t*)s)[2]; in xor_block()
318 ((uint_8t*)d)[3] ^= ((uint_8t*)s)[3]; in xor_block()
319 ((uint_8t*)d)[4] ^= ((uint_8t*)s)[4]; in xor_block()
320 ((uint_8t*)d)[5] ^= ((uint_8t*)s)[5]; in xor_block()
321 ((uint_8t*)d)[6] ^= ((uint_8t*)s)[6]; in xor_block()
322 ((uint_8t*)d)[7] ^= ((uint_8t*)s)[7]; in xor_block()
323 ((uint_8t*)d)[8] ^= ((uint_8t*)s)[8]; in xor_block()
324 ((uint_8t*)d)[9] ^= ((uint_8t*)s)[9]; in xor_block()
325 ((uint_8t*)d)[10] ^= ((uint_8t*)s)[10]; in xor_block()
326 ((uint_8t*)d)[11] ^= ((uint_8t*)s)[11]; in xor_block()
327 ((uint_8t*)d)[12] ^= ((uint_8t*)s)[12]; in xor_block()
328 ((uint_8t*)d)[13] ^= ((uint_8t*)s)[13]; in xor_block()
329 ((uint_8t*)d)[14] ^= ((uint_8t*)s)[14]; in xor_block()
330 ((uint_8t*)d)[15] ^= ((uint_8t*)s)[15]; in xor_block()
341 ((uint_8t*)d)[0] = ((uint_8t*)s)[0] ^ ((uint_8t*)k)[0]; in copy_and_key()
342 ((uint_8t*)d)[1] = ((uint_8t*)s)[1] ^ ((uint_8t*)k)[1]; in copy_and_key()
343 ((uint_8t*)d)[2] = ((uint_8t*)s)[2] ^ ((uint_8t*)k)[2]; in copy_and_key()
344 ((uint_8t*)d)[3] = ((uint_8t*)s)[3] ^ ((uint_8t*)k)[3]; in copy_and_key()
345 ((uint_8t*)d)[4] = ((uint_8t*)s)[4] ^ ((uint_8t*)k)[4]; in copy_and_key()
346 ((uint_8t*)d)[5] = ((uint_8t*)s)[5] ^ ((uint_8t*)k)[5]; in copy_and_key()
347 ((uint_8t*)d)[6] = ((uint_8t*)s)[6] ^ ((uint_8t*)k)[6]; in copy_and_key()
348 ((uint_8t*)d)[7] = ((uint_8t*)s)[7] ^ ((uint_8t*)k)[7]; in copy_and_key()
349 ((uint_8t*)d)[8] = ((uint_8t*)s)[8] ^ ((uint_8t*)k)[8]; in copy_and_key()
350 ((uint_8t*)d)[9] = ((uint_8t*)s)[9] ^ ((uint_8t*)k)[9]; in copy_and_key()
351 ((uint_8t*)d)[10] = ((uint_8t*)s)[10] ^ ((uint_8t*)k)[10]; in copy_and_key()
352 ((uint_8t*)d)[11] = ((uint_8t*)s)[11] ^ ((uint_8t*)k)[11]; in copy_and_key()
353 ((uint_8t*)d)[12] = ((uint_8t*)s)[12] ^ ((uint_8t*)k)[12]; in copy_and_key()
354 ((uint_8t*)d)[13] = ((uint_8t*)s)[13] ^ ((uint_8t*)k)[13]; in copy_and_key()
355 ((uint_8t*)d)[14] = ((uint_8t*)s)[14] ^ ((uint_8t*)k)[14]; in copy_and_key()
356 ((uint_8t*)d)[15] = ((uint_8t*)s)[15] ^ ((uint_8t*)k)[15]; in copy_and_key()
363 static void add_round_key(uint_8t d[N_BLOCK], const uint_8t k[N_BLOCK]) { in add_round_key()
367 static void shift_sub_rows(uint_8t st[N_BLOCK]) { in shift_sub_rows()
368 uint_8t tt; in shift_sub_rows()
395 static void inv_shift_sub_rows(uint_8t st[N_BLOCK]) { in inv_shift_sub_rows()
396 uint_8t tt; in inv_shift_sub_rows()
424 static void mix_sub_columns(uint_8t dt[N_BLOCK]) {
425 uint_8t st[N_BLOCK];
428 static void mix_sub_columns(uint_8t dt[N_BLOCK], uint_8t st[N_BLOCK]) {
452 static void inv_mix_sub_columns(uint_8t dt[N_BLOCK]) {
453 uint_8t st[N_BLOCK];
456 static void inv_mix_sub_columns(uint_8t dt[N_BLOCK], uint_8t st[N_BLOCK]) {
489 uint_8t cc, rc, hi;
512 uint_8t tt, t0, t1, t2, t3;
548 uint_8t s1[N_BLOCK], r;
559 uint_8t s2[N_BLOCK];
593 uint_8t s1[N_BLOCK], r;
605 uint_8t s2[N_BLOCK];
621 uint_8t tmp[N_BLOCK];
639 static void update_encrypt_key_128(uint_8t k[N_BLOCK], uint_8t* rc) {
640 uint_8t cc;
663 uint_8t s1[N_BLOCK], r, rc = 1;
677 uint_8t s2[N_BLOCK];
695 static void update_decrypt_key_128(uint_8t k[N_BLOCK], uint_8t* rc) {
696 uint_8t cc;
718 uint_8t s1[N_BLOCK], r, rc = 0x6c;
733 uint_8t s2[N_BLOCK];
749 static void update_encrypt_key_256(uint_8t k[2 * N_BLOCK], uint_8t* rc) {
750 uint_8t cc;
785 uint_8t s1[N_BLOCK], r, rc = 1;
805 uint_8t s2[N_BLOCK];
827 static void update_decrypt_key_256(uint_8t k[2 * N_BLOCK], uint_8t* rc) {
828 uint_8t cc;
864 uint_8t s1[N_BLOCK], r, rc = 0x80;
886 uint_8t s2[N_BLOCK];