• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/crypto/aes/

Lines Matching refs:AES_BLOCK_SIZE

81 	unsigned char tmp[AES_BLOCK_SIZE];
82 unsigned char tmp2[AES_BLOCK_SIZE];
83 unsigned char prev[AES_BLOCK_SIZE];
85 const unsigned char *iv2 = ivec + AES_BLOCK_SIZE;
89 OPENSSL_assert((length%AES_BLOCK_SIZE) == 0);
95 while (len >= AES_BLOCK_SIZE)
97 /* hexdump(stdout, "in", in, AES_BLOCK_SIZE); */
98 /* hexdump(stdout, "iv", iv, AES_BLOCK_SIZE); */
99 for(n=0 ; n < AES_BLOCK_SIZE ; ++n)
101 /* hexdump(stdout, "in ^ iv", out, AES_BLOCK_SIZE); */
103 /* hexdump(stdout,"enc", out, AES_BLOCK_SIZE); */
104 /* hexdump(stdout,"iv2", iv2, AES_BLOCK_SIZE); */
105 for(n=0 ; n < AES_BLOCK_SIZE ; ++n)
107 /* hexdump(stdout,"out", out, AES_BLOCK_SIZE); */
109 memcpy(prev, in, AES_BLOCK_SIZE);
111 len -= AES_BLOCK_SIZE;
112 in += AES_BLOCK_SIZE;
113 out += AES_BLOCK_SIZE;
115 memcpy(ivec, iv, AES_BLOCK_SIZE);
116 memcpy(ivec + AES_BLOCK_SIZE, iv2, AES_BLOCK_SIZE);
120 while (len >= AES_BLOCK_SIZE)
122 memcpy(tmp, in, AES_BLOCK_SIZE);
123 memcpy(tmp2, in, AES_BLOCK_SIZE);
124 /* hexdump(stdout, "in", in, AES_BLOCK_SIZE); */
125 /* hexdump(stdout, "iv2", iv2, AES_BLOCK_SIZE); */
126 for(n=0 ; n < AES_BLOCK_SIZE ; ++n)
128 /* hexdump(stdout, "in ^ iv2", tmp, AES_BLOCK_SIZE); */
130 /* hexdump(stdout, "dec", out, AES_BLOCK_SIZE); */
131 /* hexdump(stdout, "iv", ivec, AES_BLOCK_SIZE); */
132 for(n=0 ; n < AES_BLOCK_SIZE ; ++n)
134 /* hexdump(stdout, "out", out, AES_BLOCK_SIZE); */
135 memcpy(ivec, tmp2, AES_BLOCK_SIZE);
137 len -= AES_BLOCK_SIZE;
138 in += AES_BLOCK_SIZE;
139 out += AES_BLOCK_SIZE;
141 memcpy(ivec + AES_BLOCK_SIZE, iv2, AES_BLOCK_SIZE);
159 unsigned char tmp[AES_BLOCK_SIZE];
160 unsigned char tmp2[AES_BLOCK_SIZE];
161 unsigned char tmp3[AES_BLOCK_SIZE];
162 unsigned char prev[AES_BLOCK_SIZE];
168 OPENSSL_assert((length%AES_BLOCK_SIZE) == 0);
177 iv2 = ivec + AES_BLOCK_SIZE;
178 while (len >= AES_BLOCK_SIZE)
180 /* hexdump(stdout, "in", in, AES_BLOCK_SIZE); */
181 /* hexdump(stdout, "iv", iv, AES_BLOCK_SIZE); */
182 for(n=0 ; n < AES_BLOCK_SIZE ; ++n)
184 /* hexdump(stdout, "in ^ iv", out, AES_BLOCK_SIZE); */
186 /* hexdump(stdout,"enc", out, AES_BLOCK_SIZE); */
187 /* hexdump(stdout,"iv2", iv2, AES_BLOCK_SIZE); */
188 for(n=0 ; n < AES_BLOCK_SIZE ; ++n)
190 /* hexdump(stdout,"out", out, AES_BLOCK_SIZE); */
192 memcpy(prev, in, AES_BLOCK_SIZE);
194 len -= AES_BLOCK_SIZE;
195 in += AES_BLOCK_SIZE;
196 out += AES_BLOCK_SIZE;
200 iv = ivec + AES_BLOCK_SIZE*2;
201 iv2 = ivec + AES_BLOCK_SIZE*3;
203 while(len >= AES_BLOCK_SIZE)
205 out -= AES_BLOCK_SIZE;
206 /* hexdump(stdout, "intermediate", out, AES_BLOCK_SIZE); */
207 /* hexdump(stdout, "iv", iv, AES_BLOCK_SIZE); */
209 memcpy(tmp, out, AES_BLOCK_SIZE);
210 for(n=0 ; n < AES_BLOCK_SIZE ; ++n)
212 /* hexdump(stdout, "out ^ iv", out, AES_BLOCK_SIZE); */
214 /* hexdump(stdout,"enc", out, AES_BLOCK_SIZE); */
215 /* hexdump(stdout,"iv2", iv2, AES_BLOCK_SIZE); */
216 for(n=0 ; n < AES_BLOCK_SIZE ; ++n)
218 /* hexdump(stdout,"out", out, AES_BLOCK_SIZE); */
220 memcpy(prev, tmp, AES_BLOCK_SIZE);
222 len -= AES_BLOCK_SIZE;
228 iv = ivec + AES_BLOCK_SIZE*2;
229 iv2 = ivec + AES_BLOCK_SIZE*3;
232 while (len >= AES_BLOCK_SIZE)
234 in -= AES_BLOCK_SIZE;
235 out -= AES_BLOCK_SIZE;
236 memcpy(tmp, in, AES_BLOCK_SIZE);
237 memcpy(tmp2, in, AES_BLOCK_SIZE);
238 /* hexdump(stdout, "in", in, AES_BLOCK_SIZE); */
239 /* hexdump(stdout, "iv2", iv2, AES_BLOCK_SIZE); */
240 for(n=0 ; n < AES_BLOCK_SIZE ; ++n)
242 /* hexdump(stdout, "in ^ iv2", tmp, AES_BLOCK_SIZE); */
244 /* hexdump(stdout, "dec", out, AES_BLOCK_SIZE); */
245 /* hexdump(stdout, "iv", iv, AES_BLOCK_SIZE); */
246 for(n=0 ; n < AES_BLOCK_SIZE ; ++n)
248 /* hexdump(stdout, "out", out, AES_BLOCK_SIZE); */
249 memcpy(tmp3, tmp2, AES_BLOCK_SIZE);
252 len -= AES_BLOCK_SIZE;
257 iv2 = ivec + AES_BLOCK_SIZE;
259 while (len >= AES_BLOCK_SIZE)
261 memcpy(tmp, out, AES_BLOCK_SIZE);
262 memcpy(tmp2, out, AES_BLOCK_SIZE);
263 /* hexdump(stdout, "intermediate", out, AES_BLOCK_SIZE); */
264 /* hexdump(stdout, "iv2", iv2, AES_BLOCK_SIZE); */
265 for(n=0 ; n < AES_BLOCK_SIZE ; ++n)
267 /* hexdump(stdout, "out ^ iv2", tmp, AES_BLOCK_SIZE); */
269 /* hexdump(stdout, "dec", out, AES_BLOCK_SIZE); */
270 /* hexdump(stdout, "iv", ivec, AES_BLOCK_SIZE); */
271 for(n=0 ; n < AES_BLOCK_SIZE ; ++n)
273 /* hexdump(stdout, "out", out, AES_BLOCK_SIZE); */
274 memcpy(tmp3, tmp2, AES_BLOCK_SIZE);
277 len -= AES_BLOCK_SIZE;
278 in += AES_BLOCK_SIZE;
279 out += AES_BLOCK_SIZE;