• Home
  • Raw
  • Download

Lines Matching refs:uint_8t

218 static const uint_8t sbox[256] = sb_data(f1);
219 static const uint_8t isbox[256] = isb_data(f1);
221 static const uint_8t gfm2_sbox[256] = sb_data(f2);
222 static const uint_8t gfm3_sbox[256] = sb_data(f3);
224 static const uint_8t gfmul_9[256] = mm_data(f9);
225 static const uint_8t gfmul_b[256] = mm_data(fb);
226 static const uint_8t gfmul_d[256] = mm_data(fd);
227 static const uint_8t gfmul_e[256] = mm_data(fe);
245 static uint_8t hibit(const uint_8t x) { in hibit()
246 uint_8t r = (uint_8t)((x >> 1) | (x >> 2)); in hibit()
255 static uint_8t gf_inv(const uint_8t x) { in gf_inv()
256 uint_8t p1 = x, p2 = BPOLY, n1 = hibit(x), n2 = 0x80, v1 = 1, v2 = 0; in gf_inv()
285 uint_8t fwd_affine(const uint_8t x) { in fwd_affine()
296 uint_8t inv_affine(const uint_8t x) { in inv_affine()
333 ((uint_8t*)d)[0] = ((uint_8t*)s)[0]; in copy_block()
334 ((uint_8t*)d)[1] = ((uint_8t*)s)[1]; in copy_block()
335 ((uint_8t*)d)[2] = ((uint_8t*)s)[2]; in copy_block()
336 ((uint_8t*)d)[3] = ((uint_8t*)s)[3]; in copy_block()
337 ((uint_8t*)d)[4] = ((uint_8t*)s)[4]; in copy_block()
338 ((uint_8t*)d)[5] = ((uint_8t*)s)[5]; in copy_block()
339 ((uint_8t*)d)[6] = ((uint_8t*)s)[6]; in copy_block()
340 ((uint_8t*)d)[7] = ((uint_8t*)s)[7]; in copy_block()
341 ((uint_8t*)d)[8] = ((uint_8t*)s)[8]; in copy_block()
342 ((uint_8t*)d)[9] = ((uint_8t*)s)[9]; in copy_block()
343 ((uint_8t*)d)[10] = ((uint_8t*)s)[10]; in copy_block()
344 ((uint_8t*)d)[11] = ((uint_8t*)s)[11]; in copy_block()
345 ((uint_8t*)d)[12] = ((uint_8t*)s)[12]; in copy_block()
346 ((uint_8t*)d)[13] = ((uint_8t*)s)[13]; in copy_block()
347 ((uint_8t*)d)[14] = ((uint_8t*)s)[14]; in copy_block()
348 ((uint_8t*)d)[15] = ((uint_8t*)s)[15]; in copy_block()
352 static void copy_block_nn(void* d, const void* s, uint_8t nn) { in copy_block_nn()
353 while (nn--) *((uint_8t*)d)++ = *((uint_8t*)s)++; in copy_block_nn()
364 ((uint_8t*)d)[0] ^= ((uint_8t*)s)[0]; in xor_block()
365 ((uint_8t*)d)[1] ^= ((uint_8t*)s)[1]; in xor_block()
366 ((uint_8t*)d)[2] ^= ((uint_8t*)s)[2]; in xor_block()
367 ((uint_8t*)d)[3] ^= ((uint_8t*)s)[3]; in xor_block()
368 ((uint_8t*)d)[4] ^= ((uint_8t*)s)[4]; in xor_block()
369 ((uint_8t*)d)[5] ^= ((uint_8t*)s)[5]; in xor_block()
370 ((uint_8t*)d)[6] ^= ((uint_8t*)s)[6]; in xor_block()
371 ((uint_8t*)d)[7] ^= ((uint_8t*)s)[7]; in xor_block()
372 ((uint_8t*)d)[8] ^= ((uint_8t*)s)[8]; in xor_block()
373 ((uint_8t*)d)[9] ^= ((uint_8t*)s)[9]; in xor_block()
374 ((uint_8t*)d)[10] ^= ((uint_8t*)s)[10]; in xor_block()
375 ((uint_8t*)d)[11] ^= ((uint_8t*)s)[11]; in xor_block()
376 ((uint_8t*)d)[12] ^= ((uint_8t*)s)[12]; in xor_block()
377 ((uint_8t*)d)[13] ^= ((uint_8t*)s)[13]; in xor_block()
378 ((uint_8t*)d)[14] ^= ((uint_8t*)s)[14]; in xor_block()
379 ((uint_8t*)d)[15] ^= ((uint_8t*)s)[15]; in xor_block()
390 ((uint_8t*)d)[0] = ((uint_8t*)s)[0] ^ ((uint_8t*)k)[0]; in copy_and_key()
391 ((uint_8t*)d)[1] = ((uint_8t*)s)[1] ^ ((uint_8t*)k)[1]; in copy_and_key()
392 ((uint_8t*)d)[2] = ((uint_8t*)s)[2] ^ ((uint_8t*)k)[2]; in copy_and_key()
393 ((uint_8t*)d)[3] = ((uint_8t*)s)[3] ^ ((uint_8t*)k)[3]; in copy_and_key()
394 ((uint_8t*)d)[4] = ((uint_8t*)s)[4] ^ ((uint_8t*)k)[4]; in copy_and_key()
395 ((uint_8t*)d)[5] = ((uint_8t*)s)[5] ^ ((uint_8t*)k)[5]; in copy_and_key()
396 ((uint_8t*)d)[6] = ((uint_8t*)s)[6] ^ ((uint_8t*)k)[6]; in copy_and_key()
397 ((uint_8t*)d)[7] = ((uint_8t*)s)[7] ^ ((uint_8t*)k)[7]; in copy_and_key()
398 ((uint_8t*)d)[8] = ((uint_8t*)s)[8] ^ ((uint_8t*)k)[8]; in copy_and_key()
399 ((uint_8t*)d)[9] = ((uint_8t*)s)[9] ^ ((uint_8t*)k)[9]; in copy_and_key()
400 ((uint_8t*)d)[10] = ((uint_8t*)s)[10] ^ ((uint_8t*)k)[10]; in copy_and_key()
401 ((uint_8t*)d)[11] = ((uint_8t*)s)[11] ^ ((uint_8t*)k)[11]; in copy_and_key()
402 ((uint_8t*)d)[12] = ((uint_8t*)s)[12] ^ ((uint_8t*)k)[12]; in copy_and_key()
403 ((uint_8t*)d)[13] = ((uint_8t*)s)[13] ^ ((uint_8t*)k)[13]; in copy_and_key()
404 ((uint_8t*)d)[14] = ((uint_8t*)s)[14] ^ ((uint_8t*)k)[14]; in copy_and_key()
405 ((uint_8t*)d)[15] = ((uint_8t*)s)[15] ^ ((uint_8t*)k)[15]; in copy_and_key()
412 static void add_round_key(uint_8t d[N_BLOCK], const uint_8t k[N_BLOCK]) { in add_round_key()
416 static void shift_sub_rows(uint_8t st[N_BLOCK]) { in shift_sub_rows()
417 uint_8t tt; in shift_sub_rows()
444 static void inv_shift_sub_rows(uint_8t st[N_BLOCK]) { in inv_shift_sub_rows()
445 uint_8t tt; in inv_shift_sub_rows()
473 static void mix_sub_columns(uint_8t dt[N_BLOCK]) {
474 uint_8t st[N_BLOCK];
477 static void mix_sub_columns(uint_8t dt[N_BLOCK], uint_8t st[N_BLOCK]) {
501 static void inv_mix_sub_columns(uint_8t dt[N_BLOCK]) {
502 uint_8t st[N_BLOCK];
505 static void inv_mix_sub_columns(uint_8t dt[N_BLOCK], uint_8t st[N_BLOCK]) {
541 uint_8t cc, rc, hi;
564 uint_8t tt, t0, t1, t2, t3;
601 uint_8t s1[N_BLOCK], r;
612 uint_8t s2[N_BLOCK];
648 uint_8t s1[N_BLOCK], r;
660 uint_8t s2[N_BLOCK];
677 uint_8t tmp[N_BLOCK];
695 static void update_encrypt_key_128(uint_8t k[N_BLOCK], uint_8t* rc) {
696 uint_8t cc;
718 uint_8t s1[N_BLOCK], r, rc = 1;
732 uint_8t s2[N_BLOCK];
750 static void update_decrypt_key_128(uint_8t k[N_BLOCK], uint_8t* rc) {
751 uint_8t cc;
772 uint_8t s1[N_BLOCK], r, rc = 0x6c;
787 uint_8t s2[N_BLOCK];
803 static void update_encrypt_key_256(uint_8t k[2 * N_BLOCK], uint_8t* rc) {
804 uint_8t cc;
838 uint_8t s1[N_BLOCK], r, rc = 1;
858 uint_8t s2[N_BLOCK];
880 static void update_decrypt_key_256(uint_8t k[2 * N_BLOCK], uint_8t* rc) {
881 uint_8t cc;
916 uint_8t s1[N_BLOCK], r, rc = 0x80;
938 uint_8t s2[N_BLOCK];