Lines Matching defs:in

4  * Redistribution and use in source and binary forms, with or without
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in
19 * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
27 * nor may "OpenSSL" appear in their names without prior written
33 * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
64 * 128bit block we have used is contained in *num;
66 void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out,
74 assert(in && out && key && ivec && num);
82 *(out++) = ivec[n] ^= *(in++);
87 if (((size_t)in|(size_t)out|(size_t)ivec)%sizeof(size_t) != 0)
94 *(size_t*)(ivec+n) ^= *(size_t*)(in+n);
98 in += 16;
104 out[n] = ivec[n] ^= in[n];
117 out[l] = ivec[n] ^= in[l];
127 *(out++) = ivec[n] ^ (c = *(in++)); ivec[n] = c;
132 if (((size_t)in|(size_t)out|(size_t)ivec)%sizeof(size_t) != 0)
138 size_t t = *(size_t*)(in+n);
144 in += 16;
151 out[n] = ivec[n] ^ (c = in[n]); ivec[n] = c;
165 out[l] = ivec[n] ^ (c = in[l]); ivec[n] = c;
173 /* This expects a single block of size nbits for both in and out. Note that
174 it corrupts any extra bits in the last byte of out */
175 static void cfbr_encrypt_block(const unsigned char *in,unsigned char *out,
185 /* fill in the first half of the new IV with the current IV */
192 out[n] = (ovec[16+n] = in[n] ^ ivec[n]);
195 out[n] = (ovec[16+n] = in[n]) ^ ivec[n];
209 void CRYPTO_cfb128_1_encrypt(const unsigned char *in, unsigned char *out,
217 assert(in && out && key && ivec && num);
222 c[0]=(in[n/8]&(1 << (7-n%8))) ? 0x80 : 0;
229 void CRYPTO_cfb128_8_encrypt(const unsigned char *in, unsigned char *out,
236 assert(in && out && key && ivec && num);
240 cfbr_encrypt_block(&in[n],&out[n],8,key,ivec,enc,block);