Lines Matching refs:i

60 #define GET_UINT32_BE(n,b,i)                            \  argument
62 (n) = ( (uint32_t) (b)[(i) ] << 24 ) \
63 | ( (uint32_t) (b)[(i) + 1] << 16 ) \
64 | ( (uint32_t) (b)[(i) + 2] << 8 ) \
65 | ( (uint32_t) (b)[(i) + 3] ); \
70 #define PUT_UINT32_BE(n,b,i) \ argument
72 (b)[(i) ] = (unsigned char) ( (n) >> 24 ); \
73 (b)[(i) + 1] = (unsigned char) ( (n) >> 16 ); \
74 (b)[(i) + 2] = (unsigned char) ( (n) >> 8 ); \
75 (b)[(i) + 3] = (unsigned char) ( (n) ); \
348 int i; in mbedtls_des_key_set_parity() local
350 for( i = 0; i < MBEDTLS_DES_KEY_SIZE; i++ ) in mbedtls_des_key_set_parity()
351 key[i] = odd_parity_table[key[i] / 2]; in mbedtls_des_key_set_parity()
359 int i; in mbedtls_des_key_check_key_parity() local
361 for( i = 0; i < MBEDTLS_DES_KEY_SIZE; i++ ) in mbedtls_des_key_check_key_parity()
362 if( key[i] != odd_parity_table[key[i] / 2] ) in mbedtls_des_key_check_key_parity()
414 int i; in mbedtls_des_key_check_weak() local
416 for( i = 0; i < WEAK_KEY_COUNT; i++ ) in mbedtls_des_key_check_weak()
417 if( memcmp( weak_key_table[i], key, MBEDTLS_DES_KEY_SIZE) == 0 ) in mbedtls_des_key_check_weak()
426 int i; in mbedtls_des_setkey() local
454 for( i = 0; i < 16; i++ ) in mbedtls_des_setkey()
456 if( i < 2 || i == 8 || i == 15 ) in mbedtls_des_setkey()
509 int i; in mbedtls_des_setkey_dec() local
513 for( i = 0; i < 16; i += 2 ) in mbedtls_des_setkey_dec()
515 SWAP( ctx->sk[i ], ctx->sk[30 - i] ); in mbedtls_des_setkey_dec()
516 SWAP( ctx->sk[i + 1], ctx->sk[31 - i] ); in mbedtls_des_setkey_dec()
526 int i; in des3_set2key() local
531 for( i = 0; i < 32; i += 2 ) in des3_set2key()
533 dsk[i ] = esk[30 - i]; in des3_set2key()
534 dsk[i + 1] = esk[31 - i]; in des3_set2key()
536 esk[i + 32] = dsk[62 - i]; in des3_set2key()
537 esk[i + 33] = dsk[63 - i]; in des3_set2key()
539 esk[i + 64] = esk[i ]; in des3_set2key()
540 esk[i + 65] = esk[i + 1]; in des3_set2key()
542 dsk[i + 64] = dsk[i ]; in des3_set2key()
543 dsk[i + 65] = dsk[i + 1]; in des3_set2key()
579 int i; in des3_set3key() local
585 for( i = 0; i < 32; i += 2 ) in des3_set3key()
587 dsk[i ] = esk[94 - i]; in des3_set3key()
588 dsk[i + 1] = esk[95 - i]; in des3_set3key()
590 esk[i + 32] = dsk[62 - i]; in des3_set3key()
591 esk[i + 33] = dsk[63 - i]; in des3_set3key()
593 dsk[i + 64] = esk[30 - i]; in des3_set3key()
594 dsk[i + 65] = esk[31 - i]; in des3_set3key()
634 int i; in mbedtls_des_crypt_ecb() local
644 for( i = 0; i < 8; i++ ) in mbedtls_des_crypt_ecb()
670 int i; in mbedtls_des_crypt_cbc() local
680 for( i = 0; i < 8; i++ ) in mbedtls_des_crypt_cbc()
681 output[i] = (unsigned char)( input[i] ^ iv[i] ); in mbedtls_des_crypt_cbc()
698 for( i = 0; i < 8; i++ ) in mbedtls_des_crypt_cbc()
699 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_des_crypt_cbc()
721 int i; in mbedtls_des3_crypt_ecb() local
731 for( i = 0; i < 8; i++ ) in mbedtls_des3_crypt_ecb()
737 for( i = 0; i < 8; i++ ) in mbedtls_des3_crypt_ecb()
743 for( i = 0; i < 8; i++ ) in mbedtls_des3_crypt_ecb()
769 int i; in mbedtls_des3_crypt_cbc() local
779 for( i = 0; i < 8; i++ ) in mbedtls_des3_crypt_cbc()
780 output[i] = (unsigned char)( input[i] ^ iv[i] ); in mbedtls_des3_crypt_cbc()
797 for( i = 0; i < 8; i++ ) in mbedtls_des3_crypt_cbc()
798 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_des3_crypt_cbc()
872 int i, j, u, v, ret = 0; in mbedtls_des_self_test() local
886 for( i = 0; i < 6; i++ ) in mbedtls_des_self_test()
888 u = i >> 1; in mbedtls_des_self_test()
889 v = i & 1; in mbedtls_des_self_test()
898 switch( i ) in mbedtls_des_self_test()
959 for( i = 0; i < 6; i++ ) in mbedtls_des_self_test()
961 u = i >> 1; in mbedtls_des_self_test()
962 v = i & 1; in mbedtls_des_self_test()
973 switch( i ) in mbedtls_des_self_test()