• Home
  • Raw
  • Download

Lines Matching refs:n

62   unsigned int n;  in CRYPTO_cfb128_encrypt()  local
67 n = *num; in CRYPTO_cfb128_encrypt()
70 while (n && len) { in CRYPTO_cfb128_encrypt()
71 *(out++) = ivec[n] ^= *(in++); in CRYPTO_cfb128_encrypt()
73 n = (n + 1) % 16; in CRYPTO_cfb128_encrypt()
78 if (n == 0) { in CRYPTO_cfb128_encrypt()
81 out[l] = ivec[n] ^= in[l]; in CRYPTO_cfb128_encrypt()
83 n = (n + 1) % 16; in CRYPTO_cfb128_encrypt()
85 *num = n; in CRYPTO_cfb128_encrypt()
91 for (; n < 16; n += sizeof(size_t)) { in CRYPTO_cfb128_encrypt()
92 *(size_t *)(out + n) = *(size_t *)(ivec + n) ^= *(size_t *)(in + n); in CRYPTO_cfb128_encrypt()
97 n = 0; in CRYPTO_cfb128_encrypt()
102 out[n] = ivec[n] ^= in[n]; in CRYPTO_cfb128_encrypt()
103 ++n; in CRYPTO_cfb128_encrypt()
106 *num = n; in CRYPTO_cfb128_encrypt()
109 while (n && len) { in CRYPTO_cfb128_encrypt()
111 *(out++) = ivec[n] ^ (c = *(in++)); in CRYPTO_cfb128_encrypt()
112 ivec[n] = c; in CRYPTO_cfb128_encrypt()
114 n = (n + 1) % 16; in CRYPTO_cfb128_encrypt()
119 if (n == 0) { in CRYPTO_cfb128_encrypt()
122 out[l] = ivec[n] ^ (c = in[l]); in CRYPTO_cfb128_encrypt()
123 ivec[n] = c; in CRYPTO_cfb128_encrypt()
125 n = (n + 1) % 16; in CRYPTO_cfb128_encrypt()
127 *num = n; in CRYPTO_cfb128_encrypt()
132 for (; n < 16; n += sizeof(size_t)) { in CRYPTO_cfb128_encrypt()
133 size_t t = *(size_t *)(in + n); in CRYPTO_cfb128_encrypt()
134 *(size_t *)(out + n) = *(size_t *)(ivec + n) ^ t; in CRYPTO_cfb128_encrypt()
135 *(size_t *)(ivec + n) = t; in CRYPTO_cfb128_encrypt()
140 n = 0; in CRYPTO_cfb128_encrypt()
146 out[n] = ivec[n] ^ (c = in[n]); in CRYPTO_cfb128_encrypt()
147 ivec[n] = c; in CRYPTO_cfb128_encrypt()
148 ++n; in CRYPTO_cfb128_encrypt()
151 *num = n; in CRYPTO_cfb128_encrypt()
162 int n, rem, num; in cfbr_encrypt_block() local
177 for (n = 0; n < num; ++n) { in cfbr_encrypt_block()
178 out[n] = (ovec[16 + n] = in[n] ^ ivec[n]); in cfbr_encrypt_block()
182 for (n = 0; n < num; ++n) { in cfbr_encrypt_block()
183 out[n] = (ovec[16 + n] = in[n]) ^ ivec[n]; in cfbr_encrypt_block()
192 for (n = 0; n < 16; ++n) { in cfbr_encrypt_block()
193 ivec[n] = ovec[n + num] << rem | ovec[n + num + 1] >> (8 - rem); in cfbr_encrypt_block()
204 size_t n; in CRYPTO_cfb128_1_encrypt() local
210 for (n = 0; n < bits; ++n) { in CRYPTO_cfb128_1_encrypt()
211 c[0] = (in[n / 8] & (1 << (7 - n % 8))) ? 0x80 : 0; in CRYPTO_cfb128_1_encrypt()
213 out[n / 8] = (out[n / 8] & ~(1 << (unsigned int)(7 - n % 8))) | in CRYPTO_cfb128_1_encrypt()
214 ((d[0] & 0x80) >> (unsigned int)(n % 8)); in CRYPTO_cfb128_1_encrypt()
222 size_t n; in CRYPTO_cfb128_8_encrypt() local
227 for (n = 0; n < length; ++n) { in CRYPTO_cfb128_8_encrypt()
228 cfbr_encrypt_block(&in[n], &out[n], 8, key, ivec, enc, block); in CRYPTO_cfb128_8_encrypt()