• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/crypto/

Lines Matching refs:q0

57 /* These two tables are the q0 and q1 permutations, exactly as described in
60 static const u8 q0[256] = {
110 /* These MDS tables are actually tables of MDS composed with q0 and q1,
116 * mds[0][i] = MDS (q1[i] 0 0 0)^T mds[1][i] = MDS (0 q0[i] 0 0)^T
117 * mds[2][i] = MDS (0 0 q1[i] 0)^T mds[3][i] = MDS (0 0 0 q0[i])^T
409 * S-box entries, preprocessed through q0 and q1. */
494 * are the index numbers preprocessed through the q0 and q1 tables
498 ctx->s[0][i] = mds[0][q0[(a) ^ sa] ^ se]; \
499 ctx->s[1][i] = mds[1][q0[(b) ^ sb] ^ sf]; \
506 ctx->s[0][i] = mds[0][q0[q0[(b) ^ sa] ^ se] ^ si]; \
507 ctx->s[1][i] = mds[1][q0[q1[(b) ^ sb] ^ sf] ^ sj]; \
508 ctx->s[2][i] = mds[2][q1[q0[(a) ^ sc] ^ sg] ^ sk]; \
514 ctx->s[0][i] = mds[0][q0[q0[q1[(b) ^ sa] ^ se] ^ si] ^ sm]; \
515 ctx->s[1][i] = mds[1][q0[q1[q1[(a) ^ sb] ^ sf] ^ sj] ^ sn]; \
516 ctx->s[2][i] = mds[2][q1[q0[q0[(a) ^ sc] ^ sg] ^ sk] ^ so]; \
517 ctx->s[3][i] = mds[3][q1[q1[q0[(b) ^ sd] ^ sh] ^ sl] ^ sp];
523 * preprocessed through q0 and q1 respectively; for longer keys they are the
533 * are the index preprocessed through q0, and a = b are the index
539 * preprocessed through q0 and q1 respectively; j is the index of the first
544 mds[0][q0[a ^ key[(j) + 8]] ^ key[j]] \
545 ^ mds[1][q0[b ^ key[(j) + 9]] ^ key[(j) + 1]] \
557 CALC_K_2 (q0[a ^ key[(j) + 16]], \
559 q0[c ^ key[(j) + 18]], \
572 q0[a ^ key[(j) + 26]], \
573 q0[b ^ key[(j) + 27]], j)
659 * indices of subkeys, preprocessed through q0 and q1. */
687 * indices of subkeys, preprocessed through q0 and q1. */
715 * indices of subkeys, preprocessed through q0 and q1. */