• Home
  • Raw
  • Download

Lines Matching +full:- +full:j4

2 chacha-merged.c version 20080118
25 (U32V((v) << (n)) | ((v) >> (32 - (n))))
52 static const char sigma[16] = "expand 32-byte k";
53 static const char tau[16] = "expand 16-byte k";
60 x->input[4] = U8TO32_LITTLE(k + 0); in chacha_keysetup()
61 x->input[5] = U8TO32_LITTLE(k + 4); in chacha_keysetup()
62 x->input[6] = U8TO32_LITTLE(k + 8); in chacha_keysetup()
63 x->input[7] = U8TO32_LITTLE(k + 12); in chacha_keysetup()
70 x->input[8] = U8TO32_LITTLE(k + 0); in chacha_keysetup()
71 x->input[9] = U8TO32_LITTLE(k + 4); in chacha_keysetup()
72 x->input[10] = U8TO32_LITTLE(k + 8); in chacha_keysetup()
73 x->input[11] = U8TO32_LITTLE(k + 12); in chacha_keysetup()
74 x->input[0] = U8TO32_LITTLE(constants + 0); in chacha_keysetup()
75 x->input[1] = U8TO32_LITTLE(constants + 4); in chacha_keysetup()
76 x->input[2] = U8TO32_LITTLE(constants + 8); in chacha_keysetup()
77 x->input[3] = U8TO32_LITTLE(constants + 12); in chacha_keysetup()
83 x->input[12] = counter == NULL ? 0 : U8TO32_LITTLE(counter + 0); in chacha_ivsetup()
84 x->input[13] = counter == NULL ? 0 : U8TO32_LITTLE(counter + 4); in chacha_ivsetup()
85 x->input[14] = U8TO32_LITTLE(iv + 0); in chacha_ivsetup()
86 x->input[15] = U8TO32_LITTLE(iv + 4); in chacha_ivsetup()
93 u32 j0, j1, j2, j3, j4, j5, j6, j7, j8, j9, j10, j11, j12, j13, j14, j15; in chacha_encrypt_bytes() local
100 j0 = x->input[0]; in chacha_encrypt_bytes()
101 j1 = x->input[1]; in chacha_encrypt_bytes()
102 j2 = x->input[2]; in chacha_encrypt_bytes()
103 j3 = x->input[3]; in chacha_encrypt_bytes()
104 j4 = x->input[4]; in chacha_encrypt_bytes()
105 j5 = x->input[5]; in chacha_encrypt_bytes()
106 j6 = x->input[6]; in chacha_encrypt_bytes()
107 j7 = x->input[7]; in chacha_encrypt_bytes()
108 j8 = x->input[8]; in chacha_encrypt_bytes()
109 j9 = x->input[9]; in chacha_encrypt_bytes()
110 j10 = x->input[10]; in chacha_encrypt_bytes()
111 j11 = x->input[11]; in chacha_encrypt_bytes()
112 j12 = x->input[12]; in chacha_encrypt_bytes()
113 j13 = x->input[13]; in chacha_encrypt_bytes()
114 j14 = x->input[14]; in chacha_encrypt_bytes()
115 j15 = x->input[15]; in chacha_encrypt_bytes()
128 x4 = j4; in chacha_encrypt_bytes()
140 for (i = 20;i > 0;i -= 2) { in chacha_encrypt_bytes()
154 x4 = PLUS(x4,j4); in chacha_encrypt_bytes()
211 x->input[12] = j12; in chacha_encrypt_bytes()
212 x->input[13] = j13; in chacha_encrypt_bytes()
215 bytes -= 64; in chacha_encrypt_bytes()