Lines Matching refs:i

51 #define GET_UINT32_BE(n,b,i)                            \  argument
53 (n) = ( (uint32_t) (b)[(i) ] << 24 ) \
54 | ( (uint32_t) (b)[(i) + 1] << 16 ) \
55 | ( (uint32_t) (b)[(i) + 2] << 8 ) \
56 | ( (uint32_t) (b)[(i) + 3] ); \
61 #define PUT_UINT32_BE(n,b,i) \ argument
63 (b)[(i) ] = (unsigned char) ( (n) >> 24 ); \
64 (b)[(i) + 1] = (unsigned char) ( (n) >> 16 ); \
65 (b)[(i) + 2] = (unsigned char) ( (n) >> 8 ); \
66 (b)[(i) + 3] = (unsigned char) ( (n) ); \
103 short i; in blowfish_enc() local
108 for( i = 0; i < MBEDTLS_BLOWFISH_ROUNDS; ++i ) in blowfish_enc()
110 Xl = Xl ^ ctx->P[i]; in blowfish_enc()
132 short i; in blowfish_dec() local
137 for( i = MBEDTLS_BLOWFISH_ROUNDS + 1; i > 1; --i ) in blowfish_dec()
139 Xl = Xl ^ ctx->P[i]; in blowfish_dec()
177 unsigned int i, j, k; in mbedtls_blowfish_setkey() local
188 for( i = 0; i < 4; i++ ) in mbedtls_blowfish_setkey()
191 ctx->S[i][j] = S[i][j]; in mbedtls_blowfish_setkey()
195 for( i = 0; i < MBEDTLS_BLOWFISH_ROUNDS + 2; ++i ) in mbedtls_blowfish_setkey()
204 ctx->P[i] = P[i] ^ data; in mbedtls_blowfish_setkey()
210 for( i = 0; i < MBEDTLS_BLOWFISH_ROUNDS + 2; i += 2 ) in mbedtls_blowfish_setkey()
213 ctx->P[i] = datal; in mbedtls_blowfish_setkey()
214 ctx->P[i + 1] = datar; in mbedtls_blowfish_setkey()
217 for( i = 0; i < 4; i++ ) in mbedtls_blowfish_setkey()
222 ctx->S[i][j] = datal; in mbedtls_blowfish_setkey()
223 ctx->S[i][j + 1] = datar; in mbedtls_blowfish_setkey()
268 int i; in mbedtls_blowfish_crypt_cbc() local
281 for( i = 0; i < MBEDTLS_BLOWFISH_BLOCKSIZE;i++ ) in mbedtls_blowfish_crypt_cbc()
282 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_blowfish_crypt_cbc()
295 for( i = 0; i < MBEDTLS_BLOWFISH_BLOCKSIZE; i++ ) in mbedtls_blowfish_crypt_cbc()
296 output[i] = (unsigned char)( input[i] ^ iv[i] ); in mbedtls_blowfish_crypt_cbc()
371 int c, i; in mbedtls_blowfish_crypt_ctr() local
380 for( i = MBEDTLS_BLOWFISH_BLOCKSIZE; i > 0; i-- ) in mbedtls_blowfish_crypt_ctr()
381 if( ++nonce_counter[i - 1] != 0 ) in mbedtls_blowfish_crypt_ctr()