Lines Matching refs:n
60 unsigned int n; in CRYPTO_cfb128_encrypt() local
66 n = *num; in CRYPTO_cfb128_encrypt()
69 while (n && len) { in CRYPTO_cfb128_encrypt()
70 *(out++) = ivec[n] ^= *(in++); in CRYPTO_cfb128_encrypt()
72 n = (n + 1) % 16; in CRYPTO_cfb128_encrypt()
77 if (n == 0) { in CRYPTO_cfb128_encrypt()
80 out[l] = ivec[n] ^= in[l]; in CRYPTO_cfb128_encrypt()
82 n = (n + 1) % 16; in CRYPTO_cfb128_encrypt()
84 *num = n; in CRYPTO_cfb128_encrypt()
90 for (; n < 16; n += sizeof(size_t)) { in CRYPTO_cfb128_encrypt()
91 *(size_t *)(out + n) = *(size_t *)(ivec + n) ^= *(size_t *)(in + n); in CRYPTO_cfb128_encrypt()
96 n = 0; in CRYPTO_cfb128_encrypt()
101 out[n] = ivec[n] ^= in[n]; in CRYPTO_cfb128_encrypt()
102 ++n; in CRYPTO_cfb128_encrypt()
105 *num = n; in CRYPTO_cfb128_encrypt()
108 while (n && len) { in CRYPTO_cfb128_encrypt()
110 *(out++) = ivec[n] ^ (c = *(in++)); in CRYPTO_cfb128_encrypt()
111 ivec[n] = c; in CRYPTO_cfb128_encrypt()
113 n = (n + 1) % 16; in CRYPTO_cfb128_encrypt()
118 if (n == 0) { in CRYPTO_cfb128_encrypt()
121 out[l] = ivec[n] ^ (c = in[l]); in CRYPTO_cfb128_encrypt()
122 ivec[n] = c; in CRYPTO_cfb128_encrypt()
124 n = (n + 1) % 16; in CRYPTO_cfb128_encrypt()
126 *num = n; in CRYPTO_cfb128_encrypt()
131 for (; n < 16; n += sizeof(size_t)) { in CRYPTO_cfb128_encrypt()
132 size_t t = *(size_t *)(in + n); in CRYPTO_cfb128_encrypt()
133 *(size_t *)(out + n) = *(size_t *)(ivec + n) ^ t; in CRYPTO_cfb128_encrypt()
134 *(size_t *)(ivec + n) = t; in CRYPTO_cfb128_encrypt()
139 n = 0; in CRYPTO_cfb128_encrypt()
145 out[n] = ivec[n] ^ (c = in[n]); in CRYPTO_cfb128_encrypt()
146 ivec[n] = c; in CRYPTO_cfb128_encrypt()
147 ++n; in CRYPTO_cfb128_encrypt()
150 *num = n; in CRYPTO_cfb128_encrypt()
161 int n, rem, num; in cfbr_encrypt_block() local
176 for (n = 0; n < num; ++n) { in cfbr_encrypt_block()
177 out[n] = (ovec[16 + n] = in[n] ^ ivec[n]); in cfbr_encrypt_block()
181 for (n = 0; n < num; ++n) { in cfbr_encrypt_block()
182 out[n] = (ovec[16 + n] = in[n]) ^ ivec[n]; in cfbr_encrypt_block()
191 for (n = 0; n < 16; ++n) { in cfbr_encrypt_block()
192 ivec[n] = ovec[n + num] << rem | ovec[n + num + 1] >> (8 - rem); in cfbr_encrypt_block()
203 size_t n; in CRYPTO_cfb128_1_encrypt() local
209 for (n = 0; n < bits; ++n) { in CRYPTO_cfb128_1_encrypt()
210 c[0] = (in[n / 8] & (1 << (7 - n % 8))) ? 0x80 : 0; in CRYPTO_cfb128_1_encrypt()
212 out[n / 8] = (out[n / 8] & ~(1 << (unsigned int)(7 - n % 8))) | in CRYPTO_cfb128_1_encrypt()
213 ((d[0] & 0x80) >> (unsigned int)(n % 8)); in CRYPTO_cfb128_1_encrypt()
221 size_t n; in CRYPTO_cfb128_8_encrypt() local
226 for (n = 0; n < length; ++n) { in CRYPTO_cfb128_8_encrypt()
227 cfbr_encrypt_block(&in[n], &out[n], 8, key, ivec, enc, block); in CRYPTO_cfb128_8_encrypt()