Lines Matching refs:in
5 * Redistribution and use in source and binary forms, with or without
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in
20 * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
28 * nor may "OpenSSL" appear in their names without prior written
34 * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
64 void Camellia_cbc_encrypt(const unsigned char *in, unsigned char *out,
76 assert(in && out && key && ivec);
79 if(((size_t)in|(size_t)out|(size_t)ivec) % sizeof(u32) == 0)
86 (u32 *)in, (u32 *)iv);
94 in += CAMELLIA_BLOCK_SIZE;
100 out[n] = in[n] ^ iv[n];
112 else if (in != out)
116 memcpy(out,in,CAMELLIA_BLOCK_SIZE);
123 iv = in;
125 in += CAMELLIA_BLOCK_SIZE;
130 memcpy(tmp.t8, in, CAMELLIA_BLOCK_SIZE);
138 iv = in;
142 else /* in == out */
146 memcpy(tmp.t8, in, CAMELLIA_BLOCK_SIZE);
155 in += CAMELLIA_BLOCK_SIZE;
160 memcpy(tmp.t8, in, CAMELLIA_BLOCK_SIZE);
181 tmp.t8[n] = in[n] ^ iv[n];
190 in += CAMELLIA_BLOCK_SIZE;
196 tmp.t8[n] = in[n] ^ iv[n];
209 else if (in != out)
213 memcpy(tmp.t8,in,CAMELLIA_BLOCK_SIZE);
221 iv = in;
223 in += CAMELLIA_BLOCK_SIZE;
228 memcpy(tmp.t8, in, CAMELLIA_BLOCK_SIZE);
236 iv = in;
244 memcpy(tmp.t8, in, CAMELLIA_BLOCK_SIZE);
252 memcpy(ivec, in, CAMELLIA_BLOCK_SIZE);
255 in += CAMELLIA_BLOCK_SIZE;
260 memcpy(tmp.t8, in, CAMELLIA_BLOCK_SIZE);
268 memcpy(ivec, in, CAMELLIA_BLOCK_SIZE);