Lines Matching refs:i

68 #define GET_UINT64_BE(n,b,i)                            \  argument
70 (n) = ( (uint64_t) (b)[(i) ] << 56 ) \
71 | ( (uint64_t) (b)[(i) + 1] << 48 ) \
72 | ( (uint64_t) (b)[(i) + 2] << 40 ) \
73 | ( (uint64_t) (b)[(i) + 3] << 32 ) \
74 | ( (uint64_t) (b)[(i) + 4] << 24 ) \
75 | ( (uint64_t) (b)[(i) + 5] << 16 ) \
76 | ( (uint64_t) (b)[(i) + 6] << 8 ) \
77 | ( (uint64_t) (b)[(i) + 7] ); \
82 #define PUT_UINT64_BE(n,b,i) \ argument
84 (b)[(i) ] = (unsigned char) ( (n) >> 56 ); \
85 (b)[(i) + 1] = (unsigned char) ( (n) >> 48 ); \
86 (b)[(i) + 2] = (unsigned char) ( (n) >> 40 ); \
87 (b)[(i) + 3] = (unsigned char) ( (n) >> 32 ); \
88 (b)[(i) + 4] = (unsigned char) ( (n) >> 24 ); \
89 (b)[(i) + 5] = (unsigned char) ( (n) >> 16 ); \
90 (b)[(i) + 6] = (unsigned char) ( (n) >> 8 ); \
91 (b)[(i) + 7] = (unsigned char) ( (n) ); \
201 int i; in mbedtls_sha512_process() local
224 for( i = 0; i < 16; i++ ) in mbedtls_sha512_process()
226 GET_UINT64_BE( W[i], data, i << 3 ); in mbedtls_sha512_process()
229 for( ; i < 80; i++ ) in mbedtls_sha512_process()
231 W[i] = S1(W[i - 2]) + W[i - 7] + in mbedtls_sha512_process()
232 S0(W[i - 15]) + W[i - 16]; in mbedtls_sha512_process()
243 i = 0; in mbedtls_sha512_process()
247 P( A, B, C, D, E, F, G, H, W[i], K[i] ); i++; in mbedtls_sha512_process()
248 P( H, A, B, C, D, E, F, G, W[i], K[i] ); i++; in mbedtls_sha512_process()
249 P( G, H, A, B, C, D, E, F, W[i], K[i] ); i++; in mbedtls_sha512_process()
250 P( F, G, H, A, B, C, D, E, W[i], K[i] ); i++; in mbedtls_sha512_process()
251 P( E, F, G, H, A, B, C, D, W[i], K[i] ); i++; in mbedtls_sha512_process()
252 P( D, E, F, G, H, A, B, C, W[i], K[i] ); i++; in mbedtls_sha512_process()
253 P( C, D, E, F, G, H, A, B, W[i], K[i] ); i++; in mbedtls_sha512_process()
254 P( B, C, D, E, F, G, H, A, W[i], K[i] ); i++; in mbedtls_sha512_process()
256 while( i < 80 ); in mbedtls_sha512_process()
450 int i, j, k, buflen, ret = 0; in mbedtls_sha512_self_test() local
466 for( i = 0; i < 6; i++ ) in mbedtls_sha512_self_test()
468 j = i % 3; in mbedtls_sha512_self_test()
469 k = i < 3; in mbedtls_sha512_self_test()
489 if( memcmp( sha512sum, sha512_test_sum[i], 64 - k * 16 ) != 0 ) in mbedtls_sha512_self_test()